Searched refs:protectedParams (Results 1 – 2 of 2) sorted by relevance
/system/keymaster/cppcose/ |
D | cppcose.cpp | 137 ErrMsgOr<bytevec> createCoseSign1Signature(const bytevec& key, const bytevec& protectedParams, in createCoseSign1Signature() argument 141 .add(protectedParams) in createCoseSign1Signature() 155 ErrMsgOr<cppbor::Array> constructCoseSign1(const bytevec& key, cppbor::Map protectedParams, in constructCoseSign1() argument 157 bytevec protParms = protectedParams.add(ALGORITHM, EDDSA).canonicalize().encode(); in constructCoseSign1() 179 const cppbor::Bstr* protectedParams = coseSign1->get(kCoseSign1ProtectedParams)->asBstr(); in verifyAndParseCoseSign1() local 183 if (!protectedParams || !unprotectedParams || !payload) { in verifyAndParseCoseSign1() 187 auto [parsedProtParams, _, errMsg] = cppbor::parse(protectedParams); in verifyAndParseCoseSign1() 212 cppbor::Array().add("Signature1").add(*protectedParams).add(aad).add(*payload).encode(); in verifyAndParseCoseSign1() 223 const bytevec& protectedParams, in createCoseEncryptCiphertext() argument 228 .add(protectedParams) // Protected in createCoseEncryptCiphertext()
|
/system/keymaster/include/keymaster/cppcose/ |
D | cppcose.h | 249 ErrMsgOr<bytevec> createCoseSign1Signature(const bytevec& key, const bytevec& protectedParams, 269 const bytevec& protectedParams, const bytevec& aad);
|