Lines Matching refs:add
240 .add("MAC0") in generateCoseMac0Mac()
241 .add(cppbor::Map().add(ALGORITHM, HMAC_256).canonicalize().encode()) in generateCoseMac0Mac()
242 .add(externalAad) in generateCoseMac0Mac()
243 .add(payload) in generateCoseMac0Mac()
260 .add(cppbor::Map().add(ALGORITHM, HMAC_256).canonicalize().encode()) in constructCoseMac0()
261 .add(cppbor::Map() /* unprotected */) in constructCoseMac0()
262 .add(payload) in constructCoseMac0()
263 .add(std::pair(tag->begin(), tag->end())); in constructCoseMac0()
307 .add("Signature1") // in createECDSACoseSign1Signature()
308 .add(protectedParams) in createECDSACoseSign1Signature()
309 .add(aad) in createECDSACoseSign1Signature()
310 .add(payload) in createECDSACoseSign1Signature()
321 .add("Signature1") // in createCoseSign1Signature()
322 .add(protectedParams) in createCoseSign1Signature()
323 .add(aad) in createCoseSign1Signature()
324 .add(payload) in createCoseSign1Signature()
338 bytevec protParms = protectedParams.add(ALGORITHM, ES256).canonicalize().encode(); in constructECDSACoseSign1()
343 .add(std::move(protParms)) in constructECDSACoseSign1()
344 .add(cppbor::Map() /* unprotected parameters */) in constructECDSACoseSign1()
345 .add(std::move(payload)) in constructECDSACoseSign1()
346 .add(std::move(*signature)); in constructECDSACoseSign1()
351 bytevec protParms = protectedParams.add(ALGORITHM, EDDSA).canonicalize().encode(); in constructCoseSign1()
356 .add(std::move(protParms)) in constructCoseSign1()
357 .add(cppbor::Map() /* unprotected parameters */) in constructCoseSign1()
358 .add(std::move(payload)) in constructCoseSign1()
359 .add(std::move(*signature)); in constructCoseSign1()
403 cppbor::Array().add("Signature1").add(*protectedParams).add(aad).add(*payload).encode(); in verifyAndParseCoseSign1()
462 .add("Encrypt") // Context in createCoseEncryptCiphertext()
463 .add(protectedParams) // Protected in createCoseEncryptCiphertext()
464 .add(aad) // External AAD in createCoseEncryptCiphertext()
476 .add(ALGORITHM, AES_GCM_256) in constructCoseEncrypt()
485 .add(encryptProtectedHeader) // Protected in constructCoseEncrypt()
486 .add(cppbor::Map().add(IV, nonce).canonicalize()) // Unprotected in constructCoseEncrypt()
487 .add(*ciphertext) // Payload in constructCoseEncrypt()
488 .add(std::move(recipients)); in constructCoseEncrypt()
616 .add("Encrypt") // Context in decryptCoseEncrypt()
617 .add(protParms->asBstr()->value()) // Protected in decryptCoseEncrypt()
618 .add(external_aad) // External AAD in decryptCoseEncrypt()
631 .add(AES_GCM_256) in consructKdfContext()
632 .add(cppbor::Array() // Sender Info in consructKdfContext()
633 .add(cppbor::Bstr("client")) in consructKdfContext()
634 .add(bytevec{} /* nonce */) in consructKdfContext()
635 .add(senderIsA ? pubKeyA : pubKeyB)) in consructKdfContext()
636 .add(cppbor::Array() // Recipient Info in consructKdfContext()
637 .add(cppbor::Bstr("server")) in consructKdfContext()
638 .add(bytevec{} /* nonce */) in consructKdfContext()
639 .add(senderIsA ? pubKeyB : pubKeyA)) in consructKdfContext()
640 .add(cppbor::Array() // SuppPubInfo in consructKdfContext()
641 .add(kAesGcmKeySizeBits) // output key length in consructKdfContext()
642 .add(bytevec{})) // protected in consructKdfContext()