Set the algorithm member on cipher_t when allocating AES crypto instance. Apply same fix to NULL cipher.

This commit is contained in:
jfigus authored and Travis Cross committed 2014-06-30 19:18:20 +00:00
1 parent aa4261d11f
commit b9da5149e2
2 files changed
+12

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ null_cipher_alloc(cipher_t **c, int key_len) {
/* set pointers */
*c = (cipher_t *)pointer;
(*c)->algorithm = NULL_CIPHER;
(*c)->type = &null_cipher;
(*c)->state = pointer + sizeof(cipher_t);