Lines Matching refs:algo
59 enum rte_crypto_cipher_algorithm *algo) in cipher_algo_transform() argument
63 *algo = RTE_CRYPTO_CIPHER_AES_CBC; in cipher_algo_transform()
66 *algo = RTE_CRYPTO_CIPHER_AES_CTR; in cipher_algo_transform()
69 *algo = -VIRTIO_CRYPTO_NOTSUPP; in cipher_algo_transform()
72 *algo = RTE_CRYPTO_CIPHER_DES_CBC; in cipher_algo_transform()
75 *algo = RTE_CRYPTO_CIPHER_3DES_ECB; in cipher_algo_transform()
78 *algo = RTE_CRYPTO_CIPHER_3DES_CBC; in cipher_algo_transform()
81 *algo = RTE_CRYPTO_CIPHER_3DES_CTR; in cipher_algo_transform()
84 *algo = RTE_CRYPTO_CIPHER_KASUMI_F8; in cipher_algo_transform()
87 *algo = RTE_CRYPTO_CIPHER_SNOW3G_UEA2; in cipher_algo_transform()
90 *algo = RTE_CRYPTO_CIPHER_AES_F8; in cipher_algo_transform()
93 *algo = RTE_CRYPTO_CIPHER_AES_XTS; in cipher_algo_transform()
96 *algo = RTE_CRYPTO_CIPHER_ZUC_EEA3; in cipher_algo_transform()
108 enum rte_crypto_auth_algorithm *algo) in auth_algo_transform() argument
112 *algo = RTE_CRYPTO_AUTH_NULL; in auth_algo_transform()
115 *algo = RTE_CRYPTO_AUTH_MD5_HMAC; in auth_algo_transform()
118 *algo = RTE_CRYPTO_AUTH_SHA1_HMAC; in auth_algo_transform()
121 *algo = RTE_CRYPTO_AUTH_SHA224_HMAC; in auth_algo_transform()
124 *algo = RTE_CRYPTO_AUTH_SHA256_HMAC; in auth_algo_transform()
127 *algo = RTE_CRYPTO_AUTH_SHA384_HMAC; in auth_algo_transform()
130 *algo = RTE_CRYPTO_AUTH_SHA512_HMAC; in auth_algo_transform()
133 *algo = RTE_CRYPTO_AUTH_AES_CMAC; in auth_algo_transform()
136 *algo = RTE_CRYPTO_AUTH_KASUMI_F9; in auth_algo_transform()
139 *algo = RTE_CRYPTO_AUTH_SNOW3G_UIA2; in auth_algo_transform()
142 *algo = RTE_CRYPTO_AUTH_AES_GMAC; in auth_algo_transform()
145 *algo = RTE_CRYPTO_AUTH_AES_CBC_MAC; in auth_algo_transform()
148 *algo = RTE_CRYPTO_AUTH_AES_XCBC_MAC; in auth_algo_transform()
161 static int get_iv_len(enum rte_crypto_cipher_algorithm algo) in get_iv_len() argument
165 switch (algo) { in get_iv_len()
244 ret = cipher_algo_transform(param->cipher_algo, &xform->cipher.algo); in transform_cipher_param()
266 ret = get_iv_len(xform->cipher.algo); in transform_cipher_param()
300 &xform_cipher->cipher.algo); in transform_chain_param()
312 ret = get_iv_len(xform_cipher->cipher.algo); in transform_chain_param()
320 ret = auth_algo_transform(param->hash_algo, &xform_auth->auth.algo); in transform_chain_param()