]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/rsa.h
fpga: zynq: Use helper functions for zynq dma
[karo-tx-uboot.git] / include / rsa.h
index e9ae870622c97bee4b02109bdf9a8ddca21ad34d..a5680ab88c134ded0f3c4814d7d645fc0b0de3bd 100644 (file)
@@ -103,4 +103,14 @@ static inline int rsa_verify(struct image_sign_info *info,
 }
 #endif
 
+#define RSA2048_BYTES  (2048 / 8)
+#define RSA4096_BYTES  (4096 / 8)
+
+/* This is the minimum/maximum key size we support, in bits */
+#define RSA_MIN_KEY_BITS       2048
+#define RSA_MAX_KEY_BITS       4096
+
+/* This is the maximum signature length that we support, in bits */
+#define RSA_MAX_SIG_BITS       4096
+
 #endif