/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 71 KeyParameter algo; in createKey() local 72 algo.tag = Tag::ALGORITHM; in createKey() 73 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in createKey() 74 params.push_back(algo); in createKey() 162 KeyParameter algo; in getVerifyOpParameters() local 163 algo.tag = Tag::ALGORITHM; in getVerifyOpParameters() 164 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in getVerifyOpParameters() 165 opParameters.push_back(algo); in getVerifyOpParameters() 183 KeyParameter algo; in getSignOpParameters() local 184 algo.tag = Tag::ALGORITHM; in getSignOpParameters() [all …]
|
D | KeystoreKey.cpp | 78 KeyParameter algo; in createKey() local 79 algo.tag = Tag::ALGORITHM; in createKey() 80 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in createKey() 81 params.push_back(algo); in createKey() 270 KeyParameter algo; in getSignOpParameters() local 271 algo.tag = Tag::ALGORITHM; in getSignOpParameters() 272 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in getSignOpParameters() 273 opParameters.push_back(algo); in getSignOpParameters()
|
/system/keymaster/km_openssl/ |
D | ckdf.cpp | 53 auto algo = EVP_aes_128_cbc(); in DEFINE_OPENSSL_OBJECT_POINTER() local 59 algo = EVP_aes_256_cbc(); in DEFINE_OPENSSL_OBJECT_POINTER() 65 if (!CMAC_Init(ctx.get(), key.key_material, key.key_material_size, algo, in DEFINE_OPENSSL_OBJECT_POINTER()
|
/system/keymaster/android_keymaster/ |
D | remote_provisioning_utils.cpp | 154 auto& algo = protectedMap->asMap()->get(ALGORITHM); in validateAndExtractPubkeys() local 155 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in validateAndExtractPubkeys()
|
/system/netd/server/ |
D | XfrmController.cpp | 1040 int XfrmController::fillNlAttrXfrmAlgoEnc(const XfrmAlgo& inAlgo, nlattr_algo_crypt* algo) { in fillNlAttrXfrmAlgoEnc() argument 1047 strncpy(algo->crypt.alg_name, inAlgo.name.c_str(), sizeof(algo->crypt.alg_name)); in fillNlAttrXfrmAlgoEnc() 1048 algo->crypt.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoEnc() 1049 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoEnc() 1051 fillXfrmNlaHdr(&algo->hdr, XFRMA_ALG_CRYPT, len); in fillNlAttrXfrmAlgoEnc() 1055 int XfrmController::fillNlAttrXfrmAlgoAuth(const XfrmAlgo& inAlgo, nlattr_algo_auth* algo) { in fillNlAttrXfrmAlgoAuth() argument 1062 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth() 1063 algo->auth.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAuth() 1066 algo->auth.alg_trunc_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAuth() 1068 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoAuth() [all …]
|
D | XfrmController.h | 385 static int fillNlAttrXfrmAlgoEnc(const XfrmAlgo& in_algo, nlattr_algo_crypt* algo); 386 static int fillNlAttrXfrmAlgoAuth(const XfrmAlgo& in_algo, nlattr_algo_auth* algo); 387 static int fillNlAttrXfrmAlgoAead(const XfrmAlgo& in_algo, nlattr_algo_aead* algo);
|
/system/security/keystore2/src/crypto/ |
D | certificate_utils.cpp | 520 CertUtilsError makeAndSetAlgo(X509_ALGOR* algo_field, Algo algo, Padding padding, Digest digest) { in makeAndSetAlgo() argument 527 switch (algo) { in makeAndSetAlgo() 603 Algo algo, Padding padding, Digest digest) { in signCertWith() argument 604 if (auto error = makeAndSetAlgo(certificate->sig_alg, algo, padding, digest)) { in signCertWith() 607 if (auto error = makeAndSetAlgo(certificate->cert_info->signature, algo, padding, digest)) { in signCertWith()
|
/system/keymaster/cppcose/ |
D | cppcose.cpp | 118 auto& algo = protectedMap->asMap()->get(ALGORITHM); in verifyAndParseCoseMac0() local 119 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in verifyAndParseCoseMac0()
|
/system/security/keystore2/src/crypto/include/ |
D | certificate_utils.h | 169 Algo algo, Padding padding, Digest digest);
|
/system/incremental_delivery/incfs/tests/include/ |
D | IncFsTestBase.h | 99 uint32_t algo = INCFS_HASH_TREE_SHA256; in makeFileWithHash() member
|
/system/security/keystore2/src/km_compat/ |
D | km_compat.cpp | 1066 auto algo = std::get<keystore::Algo>(algoOrError); in signCertificate() local 1115 algo, padding, digest); in signCertificate()
|