Lines Matching defs:algo
41 enum rte_crypto_cipher_algorithm algo;
49 enum rte_crypto_auth_algorithm algo;
58 enum rte_crypto_aead_algorithm algo;
70 .algo = RTE_CRYPTO_CIPHER_NULL,
77 .algo = RTE_CRYPTO_CIPHER_AES_CBC,
84 .algo = RTE_CRYPTO_CIPHER_AES_CBC,
91 .algo = RTE_CRYPTO_CIPHER_AES_CBC,
98 .algo = RTE_CRYPTO_CIPHER_AES_CTR,
106 .algo = RTE_CRYPTO_CIPHER_AES_CTR,
113 .algo = RTE_CRYPTO_CIPHER_AES_CTR,
120 .algo = RTE_CRYPTO_CIPHER_3DES_CBC,
127 .algo = RTE_CRYPTO_CIPHER_DES_CBC,
137 .algo = RTE_CRYPTO_AUTH_NULL,
144 .algo = RTE_CRYPTO_AUTH_SHA1_HMAC,
150 .algo = RTE_CRYPTO_AUTH_SHA256_HMAC,
156 .algo = RTE_CRYPTO_AUTH_SHA384_HMAC,
162 .algo = RTE_CRYPTO_AUTH_SHA512_HMAC,
168 .algo = RTE_CRYPTO_AUTH_AES_GMAC,
175 .algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC,
184 .algo = RTE_CRYPTO_AEAD_AES_GCM,
193 .algo = RTE_CRYPTO_AEAD_AES_GCM,
202 .algo = RTE_CRYPTO_AEAD_AES_GCM,
211 .algo = RTE_CRYPTO_AEAD_AES_CCM,
220 .algo = RTE_CRYPTO_AEAD_AES_CCM,
229 .algo = RTE_CRYPTO_AEAD_AES_CCM,
238 .algo = RTE_CRYPTO_AEAD_CHACHA20_POLY1305,
266 const struct supported_cipher_algo *algo =
269 if (strcmp(cipher_keyword, algo->keyword) == 0)
270 return algo;
282 const struct supported_auth_algo *algo =
285 if (strcmp(auth_keyword, algo->keyword) == 0)
286 return algo;
298 const struct supported_aead_algo *algo =
301 if (strcmp(aead_keyword, algo->keyword) == 0)
302 return algo;
452 const struct supported_cipher_algo *algo;
464 algo = find_match_cipher_algo(tokens[ti]);
466 APP_CHECK(algo != NULL, status, "unrecognized "
472 rule->cipher_algo = algo->algo;
473 rule->block_size = algo->block_size;
474 rule->iv_len = algo->iv_len;
475 rule->cipher_key_len = algo->key_len;
504 if (algo->algo == RTE_CRYPTO_CIPHER_AES_CBC ||
505 algo->algo == RTE_CRYPTO_CIPHER_3DES_CBC)
508 if (algo->algo == RTE_CRYPTO_CIPHER_AES_CTR) {
520 const struct supported_auth_algo *algo;
532 algo = find_match_auth_algo(tokens[ti]);
533 APP_CHECK(algo != NULL, status, "unrecognized "
539 rule->auth_algo = algo->algo;
540 rule->auth_key_len = algo->key_len;
541 rule->digest_len = algo->digest_len;
546 if (algo->key_not_req) {
572 if (algo->algo == RTE_CRYPTO_AUTH_AES_GMAC) {
575 rule->iv_len = algo->iv_len;
585 const struct supported_aead_algo *algo;
597 algo = find_match_aead_algo(tokens[ti]);
599 APP_CHECK(algo != NULL, status, "unrecognized "
605 rule->aead_algo = algo->algo;
606 rule->cipher_key_len = algo->key_len;
607 rule->digest_len = algo->digest_len;
608 rule->aad_len = algo->aad_len;
609 rule->block_size = algo->block_size;
610 rule->iv_len = algo->iv_len;
978 if (cipher_algos[i].algo == sa->cipher_algo &&
986 if (auth_algos[i].algo == sa->auth_algo) {
993 if (aead_algos[i].algo == sa->aead_algo &&
1300 sa_ctx->xf[idx].a.aead.algo = sa->aead_algo;
1343 sa_ctx->xf[idx].b.cipher.algo = sa->cipher_algo;
1354 sa_ctx->xf[idx].a.auth.algo = sa->auth_algo;
1367 sa_ctx->xf[idx].a.cipher.algo = sa->cipher_algo;
1378 sa_ctx->xf[idx].b.auth.algo = sa->auth_algo;