[webkit-changes] [WebKit/WebKit] 5eeccd: [OpenSSL] Use AES_wrap_key/AES_unwrap_key directly...
Yoshiaki JITSUKAWA
noreply at github.com
Mon Sep 5 19:48:17 PDT 2022
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 5eeccd33fb42f133005c6a210eefcb3492233ec3
https://github.com/WebKit/WebKit/commit/5eeccd33fb42f133005c6a210eefcb3492233ec3
Author: Yoshiaki Jitsukawa <yoshiaki.jitsukawa at sony.com>
Date: 2022-09-05 (Mon, 05 Sep 2022)
Changed paths:
M Source/WebCore/crypto/openssl/CryptoAlgorithmAES_KWOpenSSL.cpp
M Source/WebCore/crypto/openssl/OpenSSLUtilities.cpp
M Source/WebCore/crypto/openssl/OpenSSLUtilities.h
Log Message:
-----------
[OpenSSL] Use AES_wrap_key/AES_unwrap_key directly to wrap/unwrap keys
https://bugs.webkit.org/show_bug.cgi?id=244784
Reviewed by Don Olmstead.
EVP_aes_*_wrap functions are not present in boringssl. Use
AES_wrap_key/AES_unwrap_key directly to compile this with boringssl.
AESKey OpenSSL utility class is introduced to wrap the AES_KEY struct
to force clear the memory in its destructor.
* Source/WebCore/crypto/openssl/CryptoAlgorithmAES_KWOpenSSL.cpp:
(WebCore::cryptWrapKey):
(WebCore::cryptUnwrapKey):
(WebCore::aesAlgorithm): Deleted.
* Source/WebCore/crypto/openssl/OpenSSLUtilities.cpp:
(WebCore::AESKey::setKey):
(WebCore::AESKey::~AESKey):
* Source/WebCore/crypto/openssl/OpenSSLUtilities.h:
(WebCore::AESKey::key):
Canonical link: https://commits.webkit.org/254171@main
More information about the webkit-changes
mailing list