Changeset 275678 in webkit
- Timestamp:
- Apr 8, 2021 2:30:02 PM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275675 r275678 1 2021-04-08 Jiewen Tan <jiewen_tan@apple.com> 2 3 Unreviewed, a comment fix 4 5 * crypto/mac/CryptoAlgorithmAES_GCMMac.cpp: 6 (WebCore::encryptAES_GCM): 7 (WebCore::decyptAES_GCM): 8 Removes unnecessary comments. 9 1 10 2021-04-08 Rob Buis <rbuis@igalia.com> 2 11 -
trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_GCMMac.cpp
r275535 r275678 38 38 static ExceptionOr<Vector<uint8_t>> encryptAES_GCM(const Vector<uint8_t>& iv, const Vector<uint8_t>& key, const Vector<uint8_t>& plainText, const Vector<uint8_t>& additionalData, size_t desiredTagLengthInBytes) 39 39 { 40 // This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.41 40 Vector<uint8_t> cipherText(plainText.size() + desiredTagLengthInBytes); // Per section 5.2.1.2: http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf 42 41 Vector<uint8_t> tag(desiredTagLengthInBytes); … … 55 54 static ExceptionOr<Vector<uint8_t>> decyptAES_GCM(const Vector<uint8_t>& iv, const Vector<uint8_t>& key, const Vector<uint8_t>& cipherText, const Vector<uint8_t>& additionalData, size_t desiredTagLengthInBytes) 56 55 { 57 // This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.58 56 Vector<uint8_t> plainText(cipherText.size()); // Per section 5.2.1.2: http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf 59 57 Vector<uint8_t> tag(desiredTagLengthInBytes); … … 70 68 return Exception { OperationError }; 71 69 72 // This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.73 70 plainText.shrink(offset); 74 71 return WTFMove(plainText);
Note: See TracChangeset
for help on using the changeset viewer.