Lines Matching refs:cipher_id
98 static int cipher_reset_key(mbedtls_cipher_context_t *ctx, int cipher_id,
110 mbedtls_cipher_info_from_type(cipher_id),
116 mbedtls_cipher_info_from_type(cipher_id)));
365 void enc_dec_buf(int cipher_id, char *cipher_string, int key_len,
390 cipher_info = mbedtls_cipher_info_from_type(cipher_id);
504 void enc_fail(int cipher_id, int pad_mode, int key_len, int length_val,
528 cipher_info = mbedtls_cipher_info_from_type(cipher_id);
650 void enc_dec_buf_multipart(int cipher_id, int key_len, int first_length_val,
685 cipher_info = mbedtls_cipher_info_from_type(cipher_id);
784 void decrypt_test_vec(int cipher_id, int pad_mode, data_t *key,
804 mbedtls_cipher_info_from_type(cipher_id)));
850 void auth_crypt_tv(int cipher_id, data_t *key, data_t *iv,
901 using_nist_kw_padding = cipher_id == MBEDTLS_CIPHER_AES_128_KWP ||
902 cipher_id == MBEDTLS_CIPHER_AES_192_KWP ||
903 cipher_id == MBEDTLS_CIPHER_AES_256_KWP;
904 using_nist_kw = cipher_id == MBEDTLS_CIPHER_AES_128_KW ||
905 cipher_id == MBEDTLS_CIPHER_AES_192_KW ||
906 cipher_id == MBEDTLS_CIPHER_AES_256_KW ||
912 if (!cipher_reset_key(&ctx, cipher_id, use_psa, tag->len, key,
978 if (!cipher_reset_key(&ctx, cipher_id, use_psa, tag->len, key,
1045 void test_vec_ecb(int cipher_id, int operation, data_t *key,
1059 mbedtls_cipher_info_from_type(cipher_id)));
1084 void test_vec_crypt(int cipher_id, int operation, data_t *key,
1103 mbedtls_cipher_info_from_type(cipher_id), 0));
1107 mbedtls_cipher_info_from_type(cipher_id)));
1132 void set_padding(int cipher_id, int pad_mode, int ret)
1139 cipher_info = mbedtls_cipher_info_from_type(cipher_id);
1174 void iv_len_validity(int cipher_id, char *cipher_string,
1194 cipher_info = mbedtls_cipher_info_from_type(cipher_id);
1214 void check_set_padding(int cipher_id)
1227 cipher_info = mbedtls_cipher_info_from_type(cipher_id);