Chromium Code Reviews| Index: mozilla/security/nss/lib/freebl/gcm.c |
| =================================================================== |
| --- mozilla/security/nss/lib/freebl/gcm.c (revision 182578) |
| +++ mozilla/security/nss/lib/freebl/gcm.c (working copy) |
| @@ -230,7 +230,7 @@ |
| PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); |
| return SECFailure; |
| } |
| - gcm_reverse(T, X, blocksize); |
| + gcm_reverse(T, tmp_buf, blocksize); |
|
wtc
2013/03/26 18:24:46
The original code passes |X| as the second argumen
wtc
2013/03/26 18:41:56
If this bug in gcm_getX() only affects the zero-le
|
| return SECSuccess; |
| } |
| @@ -575,11 +575,11 @@ |
| if (rv != SECSuccess) { |
| return SECFailure; |
| } |
| - rv = gcmHash_Sync(ghash, blocksize); |
| - if (rv != SECSuccess) { |
| - return SECFailure; |
| - } |
| } |
| + rv = gcmHash_Sync(ghash, blocksize); |
| + if (rv != SECSuccess) { |
| + return SECFailure; |
| + } |
|
wtc
2013/03/26 18:24:46
This change is not necessary (because ghash->count
|
| return SECSuccess; |
| } |