Home
last modified time | relevance | path

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

/system/keymaster/cppcose/
Dcppcose.cpp157 bytevec protParms = protectedParams.add(ALGORITHM, EDDSA).canonicalize().encode(); in constructCoseSign1() local
158 auto signature = createCoseSign1Signature(key, protParms, payload, aad); in constructCoseSign1()
162 .add(std::move(protParms)) in constructCoseSign1()
279 auto& protParms = recipient->asArray()->get(0); in getSenderPubKeyFromCoseEncrypt() local
280 if (!protParms || !protParms->asBstr()) return "Invalid protected params"; in getSenderPubKeyFromCoseEncrypt()
281 auto [parsedProtParms, _, errMsg] = cppbor::parse(protParms->asBstr()); in getSenderPubKeyFromCoseEncrypt()
328 auto& protParms = coseEncrypt->asArray()->get(kCoseEncryptProtectedParams); in decryptCoseEncrypt() local
333 if (!protParms || !protParms->asBstr() || !unprotParms || !ciphertext || !recipients) { in decryptCoseEncrypt()
337 auto [parsedProtParams, _, errMsg] = cppbor::parse(protParms->asBstr()->value()); in decryptCoseEncrypt()
363 .add(protParms->asBstr()->value()) // Protected in decryptCoseEncrypt()