Home
last modified time | relevance | path

Searched refs:aad (Results 1 – 4 of 4) sorted by relevance

/system/keymaster/cppcose/
Dcppcose.cpp33 const bytevec& aad, in aesGcmInitAndProcessAad() argument
46 if (!aad.empty() && !EVP_CipherUpdate(ctx.get(), nullptr /* out; null means AAD */, &outlen, in aesGcmInitAndProcessAad()
47 aad.data(), aad.size())) { in aesGcmInitAndProcessAad()
138 const bytevec& payload, const bytevec& aad) { in createCoseSign1Signature() argument
142 .add(aad) in createCoseSign1Signature()
156 const bytevec& payload, const bytevec& aad) { in constructCoseSign1() argument
158 auto signature = createCoseSign1Signature(key, protParms, payload, aad); in constructCoseSign1()
169 const bytevec& aad) { in constructCoseSign1() argument
170 return constructCoseSign1(key, {} /* protectedParams */, payload, aad); in constructCoseSign1()
174 const bytevec& signingCoseKey, const bytevec& aad) { in verifyAndParseCoseSign1() argument
[all …]
/system/keymaster/include/keymaster/cppcose/
Dcppcose.h250 const bytevec& payload, const bytevec& aad);
252 const bytevec& aad);
254 const bytevec& payload, const bytevec& aad);
266 const bytevec& aad);
269 const bytevec& protectedParams, const bytevec& aad);
271 const bytevec& plaintextPayload, const bytevec& aad,
281 decryptCoseEncrypt(const bytevec& key, const cppbor::Item* encryptItem, const bytevec& aad);
287 const bytevec& aad,
290 const bytevec& aad,
/system/keymaster/km_openssl/
Dblock_cipher_operation.cpp295 keymaster_blob_t aad; in HandleAad() local
296 if (input_params.GetTagValue(TAG_ASSOCIATED_DATA, &aad)) { in HandleAad()
303 FillBufferedAadBlock(&aad); in HandleAad()
309 size_t blocks_to_process = aad.data_length / block_size; in HandleAad()
310 if (blocks_to_process && !ProcessAadBlocks(aad.data, blocks_to_process, error)) in HandleAad()
312 aad.data += blocks_to_process * block_size; in HandleAad()
313 aad.data_length -= blocks_to_process * block_size; in HandleAad()
315 FillBufferedAadBlock(&aad); in HandleAad()
316 assert(aad.data_length == 0); in HandleAad()
354 void BlockCipherEvpOperation::FillBufferedAadBlock(keymaster_blob_t* aad) { in FillBufferedAadBlock() argument
[all …]
Dblock_cipher_operation.h95 void FillBufferedAadBlock(keymaster_blob_t* aad);