]> git.ipfire.org Git - u-boot.git/blobdiff - common/image-sig.c
image: Add RSA support for image signing
[u-boot.git] / common / image-sig.c
index 9b222daa0fd1dc2fcb90df721cde96f1c8e2f56b..9928bfcecafb03f08afe1ebf0d77490a848b0f50 100644 (file)
@@ -27,8 +27,15 @@ DECLARE_GLOBAL_DATA_PTR;
 #endif /* !USE_HOSTCC*/
 #include <errno.h>
 #include <image.h>
+#include <rsa.h>
 
 struct image_sig_algo image_sig_algos[] = {
+       {
+               "sha1,rsa2048",
+               rsa_sign,
+               rsa_add_verify_data,
+               rsa_verify,
+       }
 };
 
 struct image_sig_algo *image_get_sig_algo(const char *name)