Changeset 275678 in webkit


Ignore:
Timestamp:
Apr 8, 2021 2:30:02 PM (3 years ago)
Author:
jiewen_tan@apple.com
Message:

Unreviewed, a comment fix

  • crypto/mac/CryptoAlgorithmAES_GCMMac.cpp:

(WebCore::encryptAES_GCM):
(WebCore::decyptAES_GCM):
Removes unnecessary comments.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275675 r275678  
     12021-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
    1102021-04-08  Rob Buis  <rbuis@igalia.com>
    211
  • trunk/Source/WebCore/crypto/mac/CryptoAlgorithmAES_GCMMac.cpp

    r275535 r275678  
    3838static 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);
     
    5554static 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);
     
    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);
Note: See TracChangeset for help on using the changeset viewer.