Home
last modified time | relevance | path

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

/system/security/ondevice-signing/
DKeystoreHmacKey.cpp71 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 …]
DKeystoreKey.cpp78 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/
Dckdf.cpp53 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/
Dremote_provisioning_utils.cpp154 auto& algo = protectedMap->asMap()->get(ALGORITHM); in validateAndExtractPubkeys() local
155 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in validateAndExtractPubkeys()
/system/netd/server/
DXfrmController.cpp1040 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 …]
DXfrmController.h385 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/
Dcertificate_utils.cpp520 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/
Dcppcose.cpp118 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/
Dcertificate_utils.h169 Algo algo, Padding padding, Digest digest);
/system/incremental_delivery/incfs/tests/include/
DIncFsTestBase.h99 uint32_t algo = INCFS_HASH_TREE_SHA256; in makeFileWithHash() member
/system/security/keystore2/src/km_compat/
Dkm_compat.cpp1066 auto algo = std::get<keystore::Algo>(algoOrError); in signCertificate() local
1115 algo, padding, digest); in signCertificate()