Skip to content

Commit 0ebbd8f

Browse files
author
Jiewen Tan
committed
Unreviewed, a comment fix
* crypto/mac/CryptoAlgorithmAES_GCMMac.cpp: (WebCore::encryptAES_GCM): (WebCore::decyptAES_GCM): Removes unnecessary comments. Canonical link: https://commits.webkit.org/236314@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 494b081 commit 0ebbd8f

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Source/WebCore/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
2021-04-08 Rob Buis <rbuis@igalia.com>
211

312
Remove virtual from RenderBox::availableLogicalWidth

Source/WebCore/crypto/mac/CryptoAlgorithmAES_GCMMac.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ namespace WebCore {
3737

3838
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)
3939
{
40-
// This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.
4140
Vector<uint8_t> cipherText(plainText.size() + desiredTagLengthInBytes); // Per section 5.2.1.2: http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
4241
Vector<uint8_t> tag(desiredTagLengthInBytes);
4342
// tagLength is actual an input <rdar://problem/30660074>
@@ -54,7 +53,6 @@ static ExceptionOr<Vector<uint8_t>> encryptAES_GCM(const Vector<uint8_t>& iv, co
5453

5554
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)
5655
{
57-
// This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.
5856
Vector<uint8_t> plainText(cipherText.size()); // Per section 5.2.1.2: http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
5957
Vector<uint8_t> tag(desiredTagLengthInBytes);
6058
size_t offset = cipherText.size() - desiredTagLengthInBytes;
@@ -69,7 +67,6 @@ static ExceptionOr<Vector<uint8_t>> decyptAES_GCM(const Vector<uint8_t>& iv, con
6967
if (constantTimeMemcmp(tag.data(), cipherText.data() + offset, desiredTagLengthInBytes))
7068
return Exception { OperationError };
7169

72-
// This is a wordaround for rdar://75093377. Force the buffer to be a non null pointer.
7370
plainText.shrink(offset);
7471
return WTFMove(plainText);
7572
}

0 commit comments

Comments
 (0)