ensure the cksum content length is sufficient
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8024
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue May 14 19:31:58 1996 Richard Basch <basch@lehman.com>
+
+ * md4crypto.c md4glue.c:
+ ensure the cksum content length is sufficient
+
Fri Apr 12 21:38:33 1996 Richard Basch <basch@lehman.com>
* md4driver.c md4glue.c md4.c rsa-md4.h md4crypto.c:
krb5_encrypt_block eblock;
krb5_keyblock keyblock;
krb5_error_code retval;
-
krb5_MD4_CTX working;
+ if (outcksum->length < RSA_MD4_DES_CKSUM_LENGTH)
+ return KRB5_BAD_MSIZE;
+
krb5_MD4Init(&working);
krb5_MD4Update(&working, input, in_length);
krb5_MD4Final(&working);
krb5_octet *input = (krb5_octet *)in;
krb5_MD4_CTX working;
+ if (outcksum->length < RSA_MD4_CKSUM_LENGTH)
+ return KRB5_BAD_MSIZE;
+
krb5_MD4Init(&working);
krb5_MD4Update(&working, input, in_length);
krb5_MD4Final(&working);