Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 25 of 86) sorted by relevance

1234

/mbedtls-development/tests/suites/
A Dtest_suite_psa_crypto_hash.data1 PSA hash finish: SHA-1 Test Vector NIST CAVS #1
5 PSA hash finish: SHA-1 Test Vector NIST CAVS #2
9 PSA hash finish: SHA-1 Test Vector NIST CAVS #3
13 PSA hash finish: SHA-1 Test Vector NIST CAVS #4
221 PSA hash verify: SHA-1
225 PSA hash verify: SHA-224
229 PSA hash verify: SHA-256
233 PSA hash verify: SHA-384
237 PSA hash verify: SHA-512
241 PSA hash verify: MD5
[all …]
A Dtest_suite_ecdsa.function115 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, hash->x, hash->len,
128 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash->x, hash->len,
130 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash->x, hash->len,
132 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash->x, hash->len,
157 memset( hash, 0, sizeof( hash ) );
197 memset( hash, 0, sizeof( hash ) );
207 hash, sizeof( hash ),
210 TEST_ASSERT( mbedtls_ecdsa_read_signature( &ctx, hash, sizeof( hash ),
257 memset( hash, 0, sizeof( hash ) );
271 hash, sizeof( hash ),
[all …]
A Dtest_suite_shax.function8 void mbedtls_sha1( data_t * src_str, data_t * hash )
17 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 20, hash->len ) == 0 );
43 void sha224( data_t * src_str, data_t * hash )
52 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 28, hash->len ) == 0 );
57 void mbedtls_sha256( data_t * src_str, data_t * hash )
66 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 32, hash->len ) == 0 );
92 void sha384( data_t * src_str, data_t * hash )
101 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 48, hash->len ) == 0 );
106 void mbedtls_sha512( data_t * src_str, data_t * hash )
115 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x, 64, hash->len ) == 0 );
A Dtest_suite_md.function130 data_t * hash )
148 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
171 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
179 data_t * hash )
213 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
222 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
262 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
271 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
284 data_t * hash )
307 data_t * src_str, data_t * hash )
[all …]
A Dtest_suite_pk.function533 memset( hash, 0, sizeof( hash ) );
580 hash[0]++;
586 hash[0]--;
643 memset( hash, 0x2a, sizeof hash );
664 hash[0]++;
667 hash[0]--;
689 hash[0]++;
838 memset( hash, 0x2a, sizeof hash );
884 memset( hash, 0x2a, sizeof hash );
1002 memset( hash, 0x2a, sizeof hash );
[all …]
A Dtest_suite_mdx.function7 void md5_text( char * text_src_string, data_t * hash )
21 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
22 sizeof output, hash->len ) == 0 );
27 void ripemd160_text( char * text_src_string, data_t * hash )
41 TEST_ASSERT( mbedtls_test_hexcmp( output, hash->x,
42 sizeof output, hash->len ) == 0 );
A Dtest_suite_oid.data61 OID hash id - id-md5
65 OID hash id - id-sha1
69 OID hash id - id-sha224
73 OID hash id - id-sha256
77 OID hash id - id-sha384
81 OID hash id - id-sha512
85 OID hash id - id-ripemd160
89 OID hash id - invalid oid
/mbedtls-development/tests/src/drivers/
A Dtest_driver_signature.c51 const uint8_t *hash, in sign_hash() argument
64 alg, hash, hash_length, in sign_hash()
102 (void)hash; in sign_hash()
116 const uint8_t *hash, in verify_hash() argument
160 (void)hash; in verify_hash()
182 uint8_t hash[PSA_HASH_MAX_SIZE]; in mbedtls_test_transparent_signature_sign_message() local
203 hash, sizeof( hash ), &hash_length ); in mbedtls_test_transparent_signature_sign_message()
249 uint8_t hash[PSA_HASH_MAX_SIZE]; in mbedtls_test_transparent_signature_verify_message() local
258 hash, sizeof( hash ), &hash_length ); in mbedtls_test_transparent_signature_verify_message()
328 (void) hash; in mbedtls_test_opaque_signature_sign_hash()
[all …]
A Dhash.c33 uint8_t *hash, size_t hash_size, size_t *hash_length ) in mbedtls_test_transparent_hash_compute() argument
47 hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_compute()
118 uint8_t *hash, in mbedtls_test_transparent_hash_finish() argument
133 operation, hash, hash_size, hash_length ); in mbedtls_test_transparent_hash_finish()
/mbedtls-development/library/
A Dpk_wrap.c78 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap() argument
95 hash, sig ) ) != 0 ) in rsa_verify_wrap()
127 hash, sig ) ); in rsa_sign_wrap()
619 hash, hash_len, in ecdsa_verify_wrap()
678 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap()
821 unsigned char hash[32]; in rsa_alt_check_pair() local
828 memset( hash, 0x2a, sizeof( hash ) ); in rsa_alt_check_pair()
831 hash, sizeof( hash ), in rsa_alt_check_pair()
839 hash, sizeof( hash ), sig, sig_len ) != 0 ) in rsa_alt_check_pair()
1027 ((void) hash); in pk_opaque_sign_wrap()
[all …]
A Dpsa_crypto_hash.c353 uint8_t *hash, in hash_finish() argument
368 memset( hash, '!', hash_size ); in hash_finish()
380 ret = mbedtls_md5_finish( &operation->ctx.md5, hash ); in hash_finish()
414 (void) hash; in hash_finish()
429 uint8_t *hash, in hash_compute() argument
463 uint8_t *hash, in mbedtls_psa_hash_compute() argument
468 hash, hash_size, hash_length ) ); in mbedtls_psa_hash_compute()
495 uint8_t *hash, in mbedtls_psa_hash_finish() argument
555 uint8_t *hash, in mbedtls_transparent_test_driver_hash_compute() argument
561 hash, hash_size, hash_length ) ); in mbedtls_transparent_test_driver_hash_compute()
[all …]
A Dpk.c277 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() argument
283 hash != NULL ); in mbedtls_pk_verify_restartable()
324 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument
336 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument
341 hash != NULL ); in mbedtls_pk_verify_ext()
398 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign_restartable() argument
405 hash != NULL ); in mbedtls_pk_sign_restartable()
424 hash, hash_len, in mbedtls_pk_sign_restartable()
441 hash, hash_len, in mbedtls_pk_sign_restartable()
450 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument
[all …]
A Dpsa_crypto_rsa.c379 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in rsa_sign_hash() argument
416 hash, in rsa_sign_hash()
434 hash, in rsa_sign_hash()
515 hash, in rsa_verify_hash()
531 hash, in rsa_verify_hash()
610 alg, hash, hash_length, in mbedtls_psa_rsa_sign_hash()
623 alg, hash, hash_length, in mbedtls_psa_rsa_verify_hash()
684 alg, hash, hash_length, in mbedtls_transparent_test_driver_rsa_sign_hash()
691 (void)hash; in mbedtls_transparent_test_driver_rsa_sign_hash()
711 alg, hash, hash_length, in mbedtls_transparent_test_driver_rsa_verify_hash()
[all …]
A Dpsa_crypto_ecp.c365 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in ecdsa_sign_hash() argument
400 &ecp->d, hash, in ecdsa_sign_hash()
413 hash, hash_length, in ecdsa_sign_hash()
439 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, in ecdsa_verify_hash() argument
483 ret = mbedtls_ecdsa_verify( &ecp->grp, hash, hash_length, in ecdsa_verify_hash()
547 alg, hash, hash_length, in mbedtls_psa_ecdsa_sign_hash()
559 alg, hash, hash_length, in mbedtls_psa_ecdsa_verify_hash()
623 alg, hash, hash_length, in mbedtls_transparent_test_driver_ecdsa_sign_hash()
630 (void)hash; in mbedtls_transparent_test_driver_ecdsa_sign_hash()
648 alg, hash, hash_length, in mbedtls_transparent_test_driver_ecdsa_verify_hash()
[all …]
A Dpsa_crypto_hash.h67 uint8_t *hash,
203 uint8_t *hash,
244 uint8_t *hash,
263 uint8_t *hash,
A Dpk_wrap.h46 const unsigned char *hash, size_t hash_len,
51 const unsigned char *hash, size_t hash_len,
59 const unsigned char *hash, size_t hash_len,
65 const unsigned char *hash, size_t hash_len,
A Dpsa_crypto_ecp.h184 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
219 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
245 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
251 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
A Dpsa_crypto_rsa.h176 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
212 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
239 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
245 psa_algorithm_t alg, const uint8_t *hash, size_t hash_length,
/mbedtls-development/programs/pkey/
A Decdsa.c106 unsigned char hash[32]; in main() local
165 if( ( ret = mbedtls_sha256( message, sizeof( message ), hash, 0 ) ) != 0 ) in main()
173 dump_buf( " + Hash: ", hash, sizeof( hash ) ); in main()
182 hash, sizeof( hash ), in main()
222 hash, sizeof( hash ), in main()
/mbedtls-development/include/mbedtls/
A Drsa.h822 const unsigned char *hash,
854 const unsigned char *hash,
905 const unsigned char *hash,
955 const unsigned char *hash,
987 const unsigned char *hash,
1012 const unsigned char *hash,
1047 const unsigned char *hash,
1087 const unsigned char *hash,
A Decdsa.h309 const unsigned char *hash, size_t hlen,
356 const unsigned char *hash, size_t hlen,
390 const unsigned char *hash, size_t hlen,
425 const unsigned char *hash, size_t hlen,
/mbedtls-development/programs/
A D.gitignore16 hash/generic_sum
17 hash/hello
18 hash/md5sum
19 hash/sha1sum
20 hash/sha2sum
/mbedtls-development/tests/scripts/
A Ddepends-hashes.pl83 for my $hash (@$hash_config) {
84 system( "scripts/config.py $hash" )
85 and abort "Failed to $hash\n";
/mbedtls-development/include/psa/
A Dcrypto_extra.h1263 psa_algorithm_t hash
1751 psa_algorithm_t hash; member
1789 return(cipher_suite->hash); in psa_pake_cs_get_hash()
1794 psa_algorithm_t hash) in psa_pake_cs_set_hash() argument
1796 if(!PSA_ALG_IS_HASH(hash)) in psa_pake_cs_set_hash()
1797 cipher_suite->hash = 0; in psa_pake_cs_set_hash()
1799 cipher_suite->hash = hash; in psa_pake_cs_set_hash()
/mbedtls-development/tests/include/test/drivers/
A Dsignature.h99 const uint8_t *hash, size_t hash_length,
106 const uint8_t *hash, size_t hash_length,
113 const uint8_t *hash, size_t hash_length,
120 const uint8_t *hash, size_t hash_length,

Completed in 48 milliseconds

1234