/mbedtls-3.4.0/tests/suites/ |
D | test_suite_gcm.function | 9 const data_t *iv, 10 const data_t *add, 11 const data_t *input, 12 const data_t *expected_output, 13 const data_t *tag, 67 const data_t *iv, 68 const data_t *input, 69 const data_t *expected_output, 70 const data_t *tag, 110 const data_t *iv, [all …]
|
D | test_suite_des.function | 11 void des_check_weak( data_t * key, int ret ) 18 void des_encrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst ) 38 void des_decrypt_ecb( data_t * key_str, data_t * src_str, data_t * dst ) 58 void des_encrypt_cbc( data_t * key_str, data_t * iv_str, 59 data_t * src_str, data_t * dst, int cbc_result ) 83 void des_decrypt_cbc( data_t * key_str, data_t * iv_str, 84 data_t * src_str, data_t * dst, 109 void des3_encrypt_ecb( int key_count, data_t * key_str, 110 data_t * src_str, data_t * dst ) 136 void des3_decrypt_ecb( int key_count, data_t * key_str, [all …]
|
D | test_suite_aria.function | 62 void aria_encrypt_ecb( data_t *key_str, data_t *src_str, 63 data_t *expected_output, int setkey_result ) 92 void aria_decrypt_ecb( data_t *key_str, data_t *src_str, 93 data_t *expected_output, int setkey_result ) 122 void aria_encrypt_cbc( data_t *key_str, data_t *iv_str, 123 data_t *src_str, data_t *expected_output, 148 void aria_decrypt_cbc( data_t *key_str, data_t *iv_str, 149 data_t *src_str, data_t *expected_output, 174 void aria_encrypt_cfb128( data_t *key_str, data_t *iv_str, 175 data_t *src_str, data_t *expected_output, [all …]
|
D | test_suite_camellia.function | 47 void camellia_encrypt_ecb( data_t * key_str, data_t * src_str, 48 data_t * dst, int setkey_result ) 71 void camellia_decrypt_ecb( data_t * key_str, data_t * src_str, 72 data_t * dst, int setkey_result ) 95 void camellia_encrypt_cbc( data_t * key_str, data_t * iv_str, 96 data_t * src_str, data_t * dst, int cbc_result ) 120 void camellia_decrypt_cbc( data_t * key_str, data_t * iv_str, 121 data_t * src_str, data_t * dst, 146 void camellia_encrypt_cfb128( data_t * key_str, data_t * iv_str, 147 data_t * src_str, data_t * dst ) [all …]
|
D | test_suite_ccm.function | 9 const data_t *iv, 10 const data_t *add, 11 const data_t *input, 12 const data_t *expected_output, 13 const data_t *tag, 179 void mbedtls_ccm_encrypt_and_tag( int cipher_id, data_t * key, 180 data_t * msg, data_t * iv, 181 data_t * add, data_t * result ) 207 /* Prepare data_t structures for multipart testing */ 208 const data_t encrypted_expected = { .x = result->x, [all …]
|
D | test_suite_pkcs1_v21.function | 12 void pkcs1_rsaes_oaep_encrypt( int mod, data_t * input_N, data_t * input_E, 13 int hash, data_t * message_str, data_t * rnd_buf, 14 data_t * result_str, int result ) 57 void pkcs1_rsaes_oaep_decrypt( int mod, data_t * input_P, data_t * input_Q, 58 data_t * input_N, data_t * input_E, int hash, 59 data_t * result_str, char * seed, data_t * message_str, 119 void pkcs1_rsassa_pss_sign( int mod, data_t * input_P, data_t * input_Q, 120 data_t * input_N, data_t * input_E, int digest, 121 int hash, data_t * hash_digest, data_t * rnd_buf, 122 data_t * result_str, int fixed_salt_length, [all …]
|
D | test_suite_aes.function | 11 void aes_encrypt_ecb( data_t * key_str, data_t * src_str, 12 data_t * dst, int setkey_result ) 35 void aes_decrypt_ecb( data_t * key_str, data_t * src_str, 36 data_t * dst, int setkey_result ) 59 void aes_encrypt_cbc( data_t * key_str, data_t * iv_str, 60 data_t * src_str, data_t * dst, 85 void aes_decrypt_cbc( data_t * key_str, data_t * iv_str, 86 data_t * src_str, data_t * dst, 233 void aes_encrypt_cfb128( data_t * key_str, data_t * iv_str, 234 data_t * src_str, data_t * dst ) [all …]
|
D | test_suite_ctr_drbg.function | 27 static void ctr_drbg_validate_internal( int reseed_mode, data_t * nonce, 28 int entropy_len_arg, data_t * entropy, 29 data_t * reseed, 30 data_t * add1, data_t * add2, 31 data_t * result ) 138 void ctr_drbg_validate_no_reseed( data_t * add_init, data_t * entropy, 139 data_t * add1, data_t * add2, 140 data_t * result_string ) 142 data_t empty = { 0, 0 }; 152 void ctr_drbg_validate_pr( data_t * add_init, data_t * entropy, [all …]
|
D | test_suite_chachapoly.function | 11 …id mbedtls_chachapoly_enc( data_t *key_str, data_t *nonce_str, data_t *aad_str, data_t *input_str,… 39 …id mbedtls_chachapoly_dec( data_t *key_str, data_t *nonce_str, data_t *aad_str, data_t *input_str,…
|
D | test_suite_shax.function | 8 void mbedtls_sha1( data_t * src_str, data_t * hash ) 42 void sha224( data_t * src_str, data_t * hash ) 56 void mbedtls_sha256( data_t * src_str, data_t * hash ) 90 void sha384( data_t * src_str, data_t * hash ) 104 void mbedtls_sha512( data_t * src_str, data_t * hash )
|
D | test_suite_cmac.function | 122 void mbedtls_cmac_multiple_blocks( int cipher_type, data_t * key, 124 data_t * block1, int block1_len, 125 data_t * block2, int block2_len, 126 data_t * block3, int block3_len, 127 data_t * block4, int block4_len, 128 data_t * expected_result ) 187 data_t * key, int keybits, 189 data_t * block_a1, 191 data_t * block_a2, 193 data_t * block_a3, [all …]
|
D | test_suite_psa_crypto_driver_wrappers.function | 16 const data_t *modulus, const data_t *private_exponent, 17 const data_t *input_data, 87 data_t *key_input, 88 data_t *data_input, 89 data_t *expected_output, 163 data_t *key_input, 164 data_t *data_input, 165 data_t *signature_input, 220 data_t *key_input, 221 data_t *data_input, [all …]
|
D | test_suite_lmots.function | 32 void lmots_sign_verify_test ( data_t *msg, data_t *key_id, int leaf_id, 33 data_t *seed ) 56 void lmots_sign_verify_null_msg_test ( data_t *key_id, int leaf_id, data_t *seed ) 79 void lmots_verify_test ( data_t *msg, data_t *sig, data_t *pub_key, 145 void lmots_import_export_test ( data_t * pub_key, int expected_import_rc ) 201 void lmots_reuse_test ( data_t *msg, data_t *key_id, int leaf_id, data_t *seed ) 225 void lmots_signature_leak_test ( data_t *msg, data_t *key_id, int leaf_id, 226 data_t *seed )
|
D | test_suite_pkcs5.function | 12 void pbkdf2_hmac( int hash, data_t * pw_str, data_t * salt_str, 13 int it_cnt, int key_len, data_t * result_key_string ) 29 void mbedtls_pkcs5_pbes2( int params_tag, data_t *params_hex, data_t *pw, 30 data_t *data, int ref_ret, data_t *ref_out )
|
D | test_suite_hkdf.function | 12 void test_hkdf( int md_alg, data_t *ikm, data_t *salt, data_t *info, 13 data_t *expected_okm ) 34 data_t *ikm, 35 data_t *salt, 36 data_t *prk ) 61 data_t *info, 62 data_t *prk, 63 data_t *okm )
|
D | test_suite_hmac_drbg.function | 178 void hmac_drbg_no_reseed( int md_alg, data_t * entropy, 179 data_t * custom, data_t * add1, 180 data_t * add2, data_t * output ) 226 void hmac_drbg_nopr( int md_alg, data_t * entropy, data_t * custom, 227 data_t * add1, data_t * add2, data_t * add3, 228 data_t * output ) 259 void hmac_drbg_pr( int md_alg, data_t * entropy, data_t * custom, 260 data_t * add1, data_t * add2, data_t * output )
|
D | test_suite_psa_crypto_hash.function | 13 void hash_finish( int alg_arg, data_t *input, data_t *expected_hash ) 38 void hash_verify( int alg_arg, data_t *input, data_t *expected_hash ) 60 void hash_multi_part( int alg_arg, data_t *input, data_t *expected_hash )
|
D | test_suite_md.function | 134 data_t * hash ) 159 void md_hex( char * text_md_name, data_t * src_str, data_t * hash ) 183 data_t * hash ) 239 void md_hex_multi( char * text_md_name, data_t * src_str, data_t * hash ) 291 data_t * key_str, data_t * src_str, 292 data_t * hash ) 314 void md_hmac_multi( char * text_md_name, int trunc_size, data_t * key_str, 315 data_t * src_str, data_t * hash ) 363 data_t * hash )
|
D | test_suite_asn1write.function | 31 const data_t *expected, int ret ) 61 void mbedtls_asn1_write_null( data_t *expected ) 82 void mbedtls_asn1_write_bool( int val, data_t *expected ) 110 void mbedtls_asn1_write_int( int val, data_t *expected ) 139 void mbedtls_asn1_write_enum( int val, data_t *expected ) 167 void mbedtls_asn1_write_mpi( data_t *val, data_t *expected ) 204 void mbedtls_asn1_write_string( int tag, data_t *content, data_t *expected ) 258 void mbedtls_asn1_write_algorithm_identifier( data_t *oid, 260 data_t *expected ) 350 void mbedtls_asn1_write_len( int len, data_t * asn1, int buf_len, [all …]
|
D | test_suite_psa_crypto.function | 342 static int aead_multipart_internal_func( int key_type_arg, data_t *key_data, 344 data_t *nonce, 345 data_t *additional_data, 347 data_t *input_data, 350 data_t *expected_output, 630 static int mac_multipart_internal_func( int key_type_arg, data_t *key_data, 632 data_t *input_data, 634 data_t *expected_output, 1411 void import_with_data( data_t *data, int type_arg, 1549 void import_export( data_t *data, [all …]
|
D | test_suite_ecdh.function | 4 static int load_public_key( int grp_id, data_t *point, 20 static int load_private_key( int grp_id, data_t *private_key, 105 void ecdh_primitive_testvec( int id, data_t * rnd_buf_A, char * xA_str, 106 char * yA_str, data_t * rnd_buf_B, 240 void ecdh_restart( int id, data_t *dA, data_t *dB, data_t *z, 369 data_t *our_private_key, 370 data_t *their_point, 372 data_t *expected ) 426 data_t *our_private_key, 428 data_t *their_point,
|
D | test_suite_chacha20.function | 11 void chacha20_crypt( data_t *key_str, 12 data_t *nonce_str, 14 data_t *src_str, 15 data_t *expected_output_str )
|
D | test_suite_lms.function | 12 void lms_sign_verify_test ( data_t *msg, data_t *seed ) 45 void lms_sign_verify_null_msg_test( data_t *seed ) 78 void lms_verify_test ( data_t * msg, data_t * sig, data_t * pub_key, 147 void lms_import_export_test ( data_t * pub_key, int expected_import_rc )
|
D | test_suite_oid.function | 15 void oid_get_certificate_policies( data_t *oid, char *result_str ) 39 void oid_get_extended_key_usage( data_t *oid, char *result_str ) 63 void oid_get_x509_extension( data_t *oid, int exp_type ) 87 void oid_get_md_alg_id( data_t *oid, int exp_md_id )
|
D | test_suite_pkcs12.function | 22 data_t *password_arg, int password_usage, 23 data_t *salt_arg, int salt_usage, 25 data_t* expected_output, int expected_status )
|