Home
last modified time | relevance | path

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

/system/security/ondevice-signing/
DKeystoreHmacKey.cpp68 KeyParameter algo; in createKey() local
69 algo.tag = Tag::ALGORITHM; in createKey()
70 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in createKey()
71 params.push_back(algo); in createKey()
159 KeyParameter algo; in getVerifyOpParameters() local
160 algo.tag = Tag::ALGORITHM; in getVerifyOpParameters()
161 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::HMAC); in getVerifyOpParameters()
162 opParameters.push_back(algo); in getVerifyOpParameters()
180 KeyParameter algo; in getSignOpParameters() local
181 algo.tag = Tag::ALGORITHM; in getSignOpParameters()
[all …]
DKeystoreKey.cpp75 KeyParameter algo; in createKey() local
76 algo.tag = Tag::ALGORITHM; in createKey()
77 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in createKey()
78 params.push_back(algo); in createKey()
271 KeyParameter algo; in getSignOpParameters() local
272 algo.tag = Tag::ALGORITHM; in getSignOpParameters()
273 algo.value = KeyParameterValue::make<KeyParameterValue::algorithm>(Algorithm::RSA); in getSignOpParameters()
274 opParameters.push_back(algo); in getSignOpParameters()
/system/update_engine/payload_generator/
Dpayload_generation_config.h90 CompressionAlgorithm algo; in GetDefaultCompressionParam() local
91 algo.set_type(CompressionAlgorithm::LZ4HC); in GetDefaultCompressionParam()
92 algo.set_level(9); in GetDefaultCompressionParam()
93 return algo; in GetDefaultCompressionParam()
Derofs_filesystem.cc156 const std::string& filename, const CompressionAlgorithm& algo) { in CreateFromFile() argument
185 if (!ErofsFilesystem::GetFiles(filename, &files, algo)) { in CreateFromFile()
192 LOG(INFO) << "Using compression algo " << algo << " for " << filename; in CreateFromFile()
205 const CompressionAlgorithm& algo) { in GetFiles() argument
246 file.compressed_file_info.algo = algo; in GetFiles()
Derofs_filesystem.h34 const CompressionAlgorithm& algo =
55 const CompressionAlgorithm& algo);
Dpayload_generation_config.cc396 CompressionAlgorithm algo; in ParseCompressionParam() local
403 algo.set_type(CompressionAlgorithm::LZ4); in ParseCompressionParam()
408 algo.set_type(CompressionAlgorithm::LZ4HC); in ParseCompressionParam()
416 algo.set_level(level_num); in ParseCompressionParam()
422 return algo; in ParseCompressionParam()
/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.cpp1048 int XfrmController::fillNlAttrXfrmAlgoEnc(const XfrmAlgo& inAlgo, nlattr_algo_crypt* algo) { in fillNlAttrXfrmAlgoEnc() argument
1055 strncpy(algo->crypt.alg_name, inAlgo.name.c_str(), sizeof(algo->crypt.alg_name)); in fillNlAttrXfrmAlgoEnc()
1056 algo->crypt.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoEnc()
1057 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoEnc()
1059 fillXfrmNlaHdr(&algo->hdr, XFRMA_ALG_CRYPT, len); in fillNlAttrXfrmAlgoEnc()
1063 int XfrmController::fillNlAttrXfrmAlgoAuth(const XfrmAlgo& inAlgo, nlattr_algo_auth* algo) { in fillNlAttrXfrmAlgoAuth() argument
1070 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth()
1071 algo->auth.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAuth()
1074 algo->auth.alg_trunc_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAuth()
1076 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoAuth()
[all …]
DXfrmController.h402 static int fillNlAttrXfrmAlgoEnc(const XfrmAlgo& in_algo, nlattr_algo_crypt* algo);
403 static int fillNlAttrXfrmAlgoAuth(const XfrmAlgo& in_algo, nlattr_algo_auth* algo);
404 static int fillNlAttrXfrmAlgoAead(const XfrmAlgo& in_algo, nlattr_algo_aead* algo);
/system/security/keystore2/tests/
Dkeystore2_client_attest_key_tests.rs47 for algo in [Algorithm::RSA, Algorithm::EC] { in keystore2_attest_rsa_signing_key_success()
50 key_generations::generate_attestation_key(&sec_level, algo, att_challenge).unwrap(); in keystore2_attest_rsa_signing_key_success()
95 for algo in [Algorithm::RSA, Algorithm::EC] { in keystore2_attest_rsa_encrypt_key_success()
98 key_generations::generate_attestation_key(&sec_level, algo, att_challenge).unwrap(); in keystore2_attest_rsa_encrypt_key_success()
144 for algo in [Algorithm::RSA, Algorithm::EC] { in keystore2_attest_ec_key_success()
147 key_generations::generate_attestation_key(&sec_level, algo, att_challenge).unwrap(); in keystore2_attest_ec_key_success()
/system/update_engine/lz4diff/
Dlz4diff_format.h65 CompressionAlgorithm algo; member
Dlz4diff.cc42 *output->mutable_dst_info()->mutable_algo() = dst_file_info.algo; in StoreDstCompressedFileInfo()
166 *header->mutable_src_info()->mutable_algo() = src_file_info.algo; in StoreSrcCompressedFileInfo()
224 dst_file_info.algo); in Lz4Diff()
Dlz4diff_unittest.cc96 new_delta_generator.compressed_file_info.algo.set_level(5); in TEST_F()
Dlz4patch.cc262 patch.pb_header.dst_info().algo(), in Lz4Patch()
306 patch.pb_header.dst_info().algo(), in Lz4Patch()
360 << ", algo: " << info.algo() << "}"; in operator <<()
Dlz4diff.proto50 CompressionAlgorithm algo = 1; field
/system/security/keystore2/src/crypto/
Dcertificate_utils.cpp521 std::variant<CertUtilsError, X509_ALGOR_Ptr> makeAlgo(Algo algo, Padding padding, Digest digest) { in makeAlgo() argument
525 switch (algo) { in makeAlgo()
605 Algo algo, Padding padding, Digest digest) { in signCertWith() argument
606 auto algo_objV = makeAlgo(algo, padding, digest); in signCertWith()
/system/security/keystore2/src/crypto/include/
Dcertificate_utils.h171 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/keymaster/cppcose/
Dcppcose.cpp285 auto& algo = protectedMap->asMap()->get(ALGORITHM); in verifyAndParseCoseMac0() local
286 if (!algo || !algo->asInt() || algo->asInt()->value() != HMAC_256) { in verifyAndParseCoseMac0()
/system/keymint/common/src/
Dtag.rs935 let algo = get_algorithm(chars)?; in check_begin_params() localVariable
937 (algo, purpose), in check_begin_params()
956 algo in check_begin_params()
977 let check = match algo { in check_begin_params()
Dcrypto.rs207 let algo: i32 = match a.remove(0) { in from_cbor_value() localVariable
212 match algo { in from_cbor_value()
/system/security/keystore2/src/km_compat/
Dkm_compat.cpp1175 auto algo = std::get<keystore::Algo>(algoOrError); in signCertificate() local
1224 algo, padding, digest); in signCertificate()