fix stream hmac check on multi data

This commit is contained in:
toddouska 2012-12-28 18:55:18 -08:00
parent 44bf986827
commit 640a0cb0e3
2 changed files with 9 additions and 1 deletions

View File

@ -3452,7 +3452,7 @@ int DoApplicationData(CYASSL* ssl, byte* input, word32* inOutIdx)
}
else if (ssl->specs.cipher_type == stream) {
ssl->hmac(ssl, verify, rawData, msgSz - digestSz, application_data, 1);
if (ConstantCompare(verify, input + msgSz - digestSz, digestSz) != 0) {
if (ConstantCompare(verify, rawData + msgSz - digestSz, digestSz) != 0){
return VERIFY_MAC_ERROR;
}
}

View File

@ -1,3 +1,11 @@
# server DTLSv1 RC4-SHA
-u
-l RC4-SHA
# client DTLSv1 RC4-SHA
-u
-l RC4-SHA
# server DTLSv1 DES-CBC3-SHA
-u
-l DES-CBC3-SHA