Codebase list libcryptx-perl / 44c5edc
GCM: counter incrementation isn't stopped at 2^32 blocks Karel Miko 7 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1313 0.041 2016/XX/XX
1414 - ECC: ltc_ecc_is_point memory leak
1515 - DSA: properly handle FIPS 186-4 (4.6 + 4.7)
16 - GCM: counter incrementation isn't stopped at 2^32 blocks, which breaks GCM
1617 - fix issue #24 Crypt::PK::ECC needs $VERSION (all *.pm have $VERSION)
1718
1819 0.040 2016/09/12
4646
4747 if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) {
4848 return err;
49 }
50
51 /* 0xFFFFFFFE0 = ((2^39)-256)/8 */
52 if (gcm->pttotlen / 8 + (ulong64)gcm->buflen + (ulong64)ptlen >= CONST64(0xFFFFFFFE0)) {
53 return CRYPT_INVALID_ARG;
4954 }
5055
5156 /* in AAD mode? */