 WebKit GIT trees - WebKit-https.gitblob - SourceWebCorecryptoalgorithmsCryptoAlgorithmAES_KW.cppRename CryptoAlgorithmParameters to CryptoAlgorithmParametersDeprecatedWebKit-https.git Source WebCore crypto algorithms CryptoAlgorithmAES_KW.cpp27 include CryptoAlgorithmAES_KW.h31 include CryptoAlgorithmAesKeyGenParamsDeprecated.h33 include CryptoKeyDataOctetSequence.h34 include ExceptionCode.h38 const char const CryptoAlgorithmAES_KW::s_name AES-KW;40 CryptoAlgorithmAES_KW::CryptoAlgorithmAES_KW44 CryptoAlgorithmAES_KW::CryptoAlgorithmAES_KW48 Ref CryptoAlgorithmAES_KW::create50 return adoptRefnew CryptoAlgorithmAES_KW;53 CryptoAlgorithmIdentifier CryptoAlgorithmAES_KW::identifier const55 return s_identifier;58 bool CryptoAlgorithmAES_KW::keyAlgorithmMatchesconst CryptoKey key const60 if key.algorithmIdentifier ! s_identifier62 ASSERTiskey;67 void CryptoAlgorithmAES_KW::encryptForWrapKeyconst CryptoAlgorithmParametersDeprecated, const CryptoKey key, const CryptoOperationData data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode ec69 if !keyAlgorithmMatcheskey 70 ec NOT_SUPPORTED_ERR;74 platformEncryptdowncastkey, data, WTFMovecallback, WTFMovefailureCallback, ec;77 void CryptoAlgorithmAES_KW::decryptForUnwrapKeyconst CryptoAlgorithmParametersDeprecated, const CryptoKey key, const CryptoOperationData data, VectorCallback callback, VoidCallback failureCallback, ExceptionCode ec79 if !keyAlgorithmMatcheskey 80 ec NOT_SUPPORTED_ERR;84 platformDecryptdowncastkey, data, WTFMovecallback, WTFMovefailureCallback, ec;87 void CryptoAlgorithmAES_KW::generateKeyconst CryptoAlgorithmParametersDeprecated parameters, bool extractable, CryptoKeyUsage usages, KeyOrKeyPairCallback callback, VoidCallback failureCallback, ExceptionCode89 const CryptoAlgorithmAesKeyGenParamsDeprecated aesParameters downcastparameters;91 RefPtr result CryptoKeyAES::generateCryptoAlgorithmIdentifier::AES_KW, aesParameters.length, extractable, usages;92 if !result 93 failureCallback;97 callbackresult.get, nullptr;100 void CryptoAlgorithmAES_KW::importKeyconst CryptoAlgorithmParametersDeprecated, const CryptoKeyData keyData, bool extractable, CryptoKeyUsage usage, KeyCallback callback, VoidCallback, ExceptionCode ec102 if !iskeyData 103 ec NOT_SUPPORTED_ERR;106 const CryptoKeyDataOctetSequence keyDataOctetSequence downcastkeyData;107 RefPtr result CryptoKeyAES::createCryptoAlgorithmIdentifier::AES_KW, keyDataOctetSequence.octetSequence, extractable, usage;108 callbackresult;113 endif ENABLESUBTLE_CRYPTO 