+#ifdef USE_HOSTCC
+void *host_blob;
+void image_set_host_blob(void *blob)
+{
+ host_blob = blob;
+}
+void *image_get_host_blob(void)
+{
+ return host_blob;
+}
+#endif
+
+struct checksum_algo checksum_algos[] = {
+ {
+ .name = "sha1",
+ .checksum_len = SHA1_SUM_LEN,
+ .der_len = SHA1_DER_LEN,
+ .der_prefix = sha1_der_prefix,
+#if IMAGE_ENABLE_SIGN
+ .calculate_sign = EVP_sha1,
+#endif
+ .calculate = hash_calculate,
+ },
+ {
+ .name = "sha256",
+ .checksum_len = SHA256_SUM_LEN,
+ .der_len = SHA256_DER_LEN,
+ .der_prefix = sha256_der_prefix,
+#if IMAGE_ENABLE_SIGN
+ .calculate_sign = EVP_sha256,
+#endif
+ .calculate = hash_calculate,
+ }
+
+};
+
+struct crypto_algo crypto_algos[] = {