Home
last modified time | relevance | path

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

/system/netd/server/
DXfrmController.cpp976 int XfrmController::fillNlAttrXfrmAlgoEnc(const XfrmAlgo& inAlgo, nlattr_algo_crypt* algo) { in fillNlAttrXfrmAlgoEnc() argument
977 if (inAlgo.name.empty()) { // Do not fill anything if algorithm not provided in fillNlAttrXfrmAlgoEnc()
983 strncpy(algo->crypt.alg_name, inAlgo.name.c_str(), sizeof(algo->crypt.alg_name)); in fillNlAttrXfrmAlgoEnc()
984 algo->crypt.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoEnc()
985 memcpy(algo->key, &inAlgo.key[0], inAlgo.key.size()); in fillNlAttrXfrmAlgoEnc()
986 len += inAlgo.key.size(); in fillNlAttrXfrmAlgoEnc()
991 int XfrmController::fillNlAttrXfrmAlgoAuth(const XfrmAlgo& inAlgo, nlattr_algo_auth* algo) { in fillNlAttrXfrmAlgoAuth() argument
992 if (inAlgo.name.empty()) { // Do not fill anything if algorithm not provided in fillNlAttrXfrmAlgoAuth()
998 strncpy(algo->auth.alg_name, inAlgo.name.c_str(), sizeof(algo->auth.alg_name)); in fillNlAttrXfrmAlgoAuth()
999 algo->auth.alg_key_len = inAlgo.key.size() * 8; // bits in fillNlAttrXfrmAlgoAuth()
[all …]