Home
last modified time | relevance | path

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

/system/netd/server/
DXfrmController.cpp610 int XfrmController::fillNlAttrXfrmAlgoEnc(const XfrmAlgo& inAlgo, nlattr_algo_crypt* algo) { in fillNlAttrXfrmAlgoEnc() argument
612 strncpy(algo->crypt.alg_name, inAlgo.name.c_str(), sizeof(algo->crypt.alg_name)); in fillNlAttrXfrmAlgoEnc()
613 algo->crypt.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoEnc()
614 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); // FIXME :safety checks in fillNlAttrXfrmAlgoEnc()
616 fillXfrmNlaHdr(&algo->hdr, XFRMA_ALG_CRYPT, len); in fillNlAttrXfrmAlgoEnc()
620 int XfrmController::fillNlAttrXfrmAlgoAuth(const XfrmAlgo& inAlgo, nlattr_algo_auth* algo) { in fillNlAttrXfrmAlgoAuth() argument
622 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth()
623 algo->auth.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAuth()
626 algo->auth.alg_trunc_len = inAlgo.truncLenBits; in fillNlAttrXfrmAlgoAuth()
628 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); // FIXME :safety checks in fillNlAttrXfrmAlgoAuth()
[all …]
DXfrmController.h194 static int fillNlAttrXfrmAlgoEnc(const XfrmAlgo& in_algo, nlattr_algo_crypt* algo);
195 static int fillNlAttrXfrmAlgoAuth(const XfrmAlgo& in_algo, nlattr_algo_auth* algo);
/system/security/keystore/
Dkey_store_service.cpp1754 auto algo = authorizationValue(TAG_ALGORITHM, characteristics.teeEnforced[i]); in getKeyAlgoritmFromKeyCharacteristics() local
1755 if (algo.isOk()) return algo.value(); in getKeyAlgoritmFromKeyCharacteristics()
1758 auto algo = authorizationValue(TAG_ALGORITHM, characteristics.softwareEnforced[i]); in getKeyAlgoritmFromKeyCharacteristics() local
1759 if (algo.isOk()) return algo.value(); in getKeyAlgoritmFromKeyCharacteristics()