* include/grub/crypto.h: Add maximums on hash size and cipher block

size.
This commit is contained in:
Vladimir Serbinenko committed 2013-11-12 01:20:45 +01:00
1 parent 44a387e0ea
commit 5ccaf90415
2 files changed
+9

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
* include/grub/crypto.h: Add maximums on hash size and cipher block
size.
2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/xnu_uuid.c: Remove variable length arrays.
+4
View File
@@ -85,6 +85,10 @@ enum gcry_cipher_modes
};
#endif
/* Don't rely on this. Check! */
#define GRUB_CRYPTO_MAX_MDLEN 64
#define GRUB_CRYPTO_MAX_CIPHER_BLOCKSIZE 16
/* Type for the cipher_setkey function. */
typedef gcry_err_code_t (*gcry_cipher_setkey_t) (void *c,
const unsigned char *key,