Lines Matching refs:aad

33                                                                   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
212 cppbor::Array().add("Signature1").add(*protectedParams).add(aad).add(*payload).encode(); in verifyAndParseCoseSign1()
224 const bytevec& plaintextPayload, const bytevec& aad) { in createCoseEncryptCiphertext() argument
229 .add(aad) // External AAD in createCoseEncryptCiphertext()
238 const bytevec& plaintextPayload, const bytevec& aad, in constructCoseEncrypt() argument
246 createCoseEncryptCiphertext(key, nonce, encryptProtectedHeader, plaintextPayload, aad); in constructCoseEncrypt()
361 auto aad = cppbor::Array() // Enc strucure as AAD in decryptCoseEncrypt() local
367 return aesGcmDecrypt(key, nonce->asBstr()->value(), aad, ciphertext->asBstr()->value()); in decryptCoseEncrypt()
409 ErrMsgOr<bytevec> aesGcmEncrypt(const bytevec& key, const bytevec& nonce, const bytevec& aad, in aesGcmEncrypt() argument
411 auto ctx = aesGcmInitAndProcessAad(key, nonce, aad, true /* encrypt */); in aesGcmEncrypt()
435 ErrMsgOr<bytevec> aesGcmDecrypt(const bytevec& key, const bytevec& nonce, const bytevec& aad, in aesGcmDecrypt() argument
437 auto ctx = aesGcmInitAndProcessAad(key, nonce, aad, false /* encrypt */); in aesGcmDecrypt()