[webkit-reviews] review denied: [Bug 133344] [GTK] Adds implementation of subtle crypto AES-CBC algorithm : [Attachment 238545] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 24 00:49:13 PDT 2014
Philippe Normand <pnormand at igalia.com> has denied Eduardo Lima Mitev
<elima at igalia.com>'s request for review:
Bug 133344: [GTK] Adds implementation of subtle crypto AES-CBC algorithm
https://bugs.webkit.org/show_bug.cgi?id=133344
Attachment 238545: Patch
https://bugs.webkit.org/attachment.cgi?id=238545&action=review
------- Additional Comments from Philippe Normand <pnormand at igalia.com>
View in context: https://bugs.webkit.org/attachment.cgi?id=238545&action=review
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:39
> +static gnutls_cipher_hd_t createCipher(const CryptoAlgorithmAesCbcParams&
parameters, const CryptoKeyAES& key, gnutls_cipher_algorithm_t *algorithm)
Misplaced * :) Also perhaps a smart pointer could be used instead of a raw
pointer here.
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:51
> + gnutlsKey.data = (unsigned char*) key.key().data();
We avoid C-style casts in WebCore, here I think a reinterpret_cast might work.
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:55
> + gnutlsIv.data = (unsigned char*) parameters.iv.data();
Ditto
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:68
> + gnutls_cipher_algorithm_t algo;
algorithm
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:71
> + failureCallback();
No need to set ExceptionCode here?
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:90
> + failureCallback();
No need to set ExceptionCode here?
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:104
> + failureCallback();
No need to set ExceptionCode here?
> Source/WebCore/crypto/gtk/CryptoAlgorithmAES_CBCGtk.cpp:112
> +void CryptoAlgorithmAES_CBC::platformDecrypt(const
CryptoAlgorithmAesCbcParams& parameters, const CryptoKeyAES& key, const
CryptoOperationData& data, VectorCallback callback, VoidCallback
failureCallback, ExceptionCode&)
Same comments as in previous method
More information about the webkit-reviews
mailing list