/net-tools-3.6.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecdsa.function | 50 unsigned char hash[66], rnd_buf[66]; 58 memset( hash, 0, sizeof( hash ) ); 66 hlen = unhexify(hash, hash_str); 82 TEST_ASSERT( mbedtls_ecdsa_sign( &grp, &r, &s, &d, hash, hlen, 88 TEST_ASSERT( mbedtls_ecdsa_verify( &grp, hash, hlen, &Q, &r_check, &s_check ) == 0 ); 104 unsigned char hash[MBEDTLS_MD_MAX_SIZE]; 111 memset( hash, 0, sizeof( hash ) ); 121 mbedtls_md( md_info, (const unsigned char *) msg, strlen( msg ), hash ); 123 TEST_ASSERT( mbedtls_ecdsa_sign_det( &grp, &r, &s, &d, hash, hlen, md_alg ) == 0 ); 140 unsigned char hash[32]; [all …]
|
D | test_suite_pk.function | 49 const unsigned char *hash, unsigned char *sig ) 52 md_alg, hashlen, hash, sig ) ); 227 unsigned char hash[100], sig[500], key[500]; 232 memset( hash, 0, sizeof( hash ) ); hash_len = unhexify(hash, hash_str); 246 hash, hash_len, sig, sig_len ) == ret ); 257 unsigned char hash[50], sig[5000]; 262 memset( hash, 0x2a, sizeof hash ); 268 TEST_ASSERT( mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, sizeof hash, 272 hash, sizeof hash, sig, sig_len ) == verify_ret ); 428 unsigned char hash[50], sig[1000]; [all …]
|
D | test_suite_pkcs1_v15.function | 13 char *input_E, int hash, 28 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V15, hash ); 58 int hash, char *result_hex_str, char *seed, 71 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V15, hash ); 114 int radix_E, char *input_E, int digest, int hash, 132 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V15, hash ); 177 char *input_E, int digest, int hash, 188 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V15, hash );
|
D | test_suite_pkcs1_v21.function | 13 char *input_E, int hash, 28 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V21, hash ); 58 int hash, char *result_hex_str, char *seed, 71 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V21, hash ); 114 int radix_E, char *input_E, int digest, int hash, 132 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V21, hash ); 177 char *input_E, int digest, int hash, 188 mbedtls_rsa_init( &ctx, MBEDTLS_RSA_PKCS_V21, hash );
|
/net-tools-3.6.0/tinydtls-0.8.2/sha2/ |
D | sha2prog.c | 52 int quiet = 0, hash = 0; in main() local 74 hash |= 1; in main() 76 hash |= 2; in main() 78 hash |= 4; in main() 80 hash = 7; in main() 97 if (hash == 0) in main() 98 hash = 7; /* Default to ALL */ in main() 111 if (hash & 1) { in main() 117 if (hash & 2) { in main() 123 if (hash & 4) { in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/library/ |
D | pk_wrap.c | 72 const unsigned char *hash, size_t hash_len, in rsa_verify_wrap() argument 82 (unsigned int) hash_len, hash, sig ) ) != 0 ) in rsa_verify_wrap() 92 const unsigned char *hash, size_t hash_len, in rsa_sign_wrap() argument 99 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap() 198 const unsigned char *hash, size_t hash_len, 202 const unsigned char *hash, size_t hash_len, 207 const unsigned char *hash, size_t hash_len, in eckey_verify_wrap() argument 216 ret = ecdsa_verify_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len ); in eckey_verify_wrap() 224 const unsigned char *hash, size_t hash_len, in eckey_sign_wrap() argument 234 ret = ecdsa_sign_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len, in eckey_sign_wrap() [all …]
|
D | pk.c | 178 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument 188 return( ctx->pk_info->verify_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_verify() 197 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument 222 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext() 242 return( mbedtls_pk_verify( ctx, md_alg, hash, hash_len, sig, sig_len ) ); in mbedtls_pk_verify_ext() 249 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument 260 return( ctx->pk_info->sign_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_sign()
|
D | ecdsa.c | 309 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature() argument 325 hash, hlen, md_alg ) ); in mbedtls_ecdsa_write_signature() 330 hash, hlen, f_rng, p_rng ) ); in mbedtls_ecdsa_write_signature() 345 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_write_signature_det() argument 349 return( mbedtls_ecdsa_write_signature( ctx, md_alg, hash, hlen, sig, slen, in mbedtls_ecdsa_write_signature_det() 358 const unsigned char *hash, size_t hlen, in mbedtls_ecdsa_read_signature() argument 391 if( ( ret = mbedtls_ecdsa_verify( &ctx->grp, hash, hlen, in mbedtls_ecdsa_read_signature()
|
D | rsa.c | 927 const unsigned char *hash, in mbedtls_rsa_rsassa_pss_sign() argument 990 mbedtls_md_update( &md_ctx, hash, hashlen ); in mbedtls_rsa_rsassa_pss_sign() 1028 const unsigned char *hash, in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument 1073 memcpy( p, hash, hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1098 memcpy( p, hash, hashlen ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() 1152 const unsigned char *hash, in mbedtls_rsa_pkcs1_sign() argument 1160 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign() 1166 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign() 1184 const unsigned char *hash, in mbedtls_rsa_rsassa_pss_verify_ext() argument 1289 mbedtls_md_update( &md_ctx, hash, hashlen ); in mbedtls_rsa_rsassa_pss_verify_ext() [all …]
|
D | x509write_csr.c | 137 unsigned char hash[64]; in mbedtls_x509write_csr_der() local 195 mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c, len, hash ); in mbedtls_x509write_csr_der() 201 if( ( ret = mbedtls_pk_sign( ctx->key, ctx->md_alg, hash, 0, sig, &sig_len, in mbedtls_x509write_csr_der()
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/pkey/ |
D | ecdsa.c | 104 unsigned char hash[] = "This should be the hash of a message."; in main() local 164 hash, sizeof( hash ), in main() 173 dump_buf( " + Hash: ", hash, sizeof hash ); in main() 207 hash, sizeof( hash ), in main()
|
D | pk_verify.c | 61 unsigned char hash[32]; in main() local 113 argv[2], hash ) ) != 0 ) in main() 119 if( ( ret = mbedtls_pk_verify( &pk, MBEDTLS_MD_SHA256, hash, 0, in main()
|
D | rsa_verify_pss.c | 65 unsigned char hash[32]; in main() local 127 argv[2], hash ) ) != 0 ) in main() 133 if( ( ret = mbedtls_pk_verify( &pk, MBEDTLS_MD_SHA256, hash, 0, in main()
|
D | rsa_verify.c | 60 unsigned char hash[32]; in main() local 134 argv[1], hash ) ) != 0 ) in main() 141 MBEDTLS_MD_SHA256, 20, hash, buf ) ) != 0 ) in main()
|
D | pk_sign.c | 66 unsigned char hash[32]; in main() local 117 argv[2], hash ) ) != 0 ) in main() 123 if( ( ret = mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in main()
|
D | rsa_sign_pss.c | 67 unsigned char hash[32]; in main() local 128 argv[2], hash ) ) != 0 ) in main() 134 if( ( ret = mbedtls_pk_sign( &pk, MBEDTLS_MD_SHA256, hash, 0, buf, &olen, in main()
|
D | rsa_sign.c | 61 unsigned char hash[32]; in main() local 125 argv[1], hash ) ) != 0 ) in main() 132 20, hash, buf ) ) != 0 ) in main()
|
D | dh_client.c | 80 unsigned char hash[32]; in main() local 215 mbedtls_sha1( buf, (int)( p - 2 - buf ), hash ); in main() 218 MBEDTLS_MD_SHA256, 0, hash, p ) ) != 0 ) in main()
|
D | dh_server.c | 79 unsigned char hash[32]; in main() local 206 mbedtls_sha1( buf, n, hash ); in main() 212 0, hash, buf + n + 2 ) ) != 0 ) in main()
|
/net-tools-3.6.0/mbedtls-2.4.0/programs/ |
D | .gitignore | 7 hash/generic_sum 8 hash/hello 9 hash/md5sum 10 hash/sha1sum 11 hash/sha2sum
|
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/ |
D | rsa.h | 430 const unsigned char *hash, 457 const unsigned char *hash, 490 const unsigned char *hash, 522 const unsigned char *hash, 549 const unsigned char *hash, 583 const unsigned char *hash, 616 const unsigned char *hash,
|
D | pkcs11.h | 137 const unsigned char *hash, 154 const unsigned char *hash, unsigned char *sig ) in mbedtls_ssl_pkcs11_sign() argument 159 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
|
D | ecdsa.h | 144 const unsigned char *hash, size_t hlen, 180 const unsigned char *hash, size_t hlen, 203 const unsigned char *hash, size_t hlen,
|
D | pk.h | 168 const unsigned char *hash, unsigned char *sig ); 284 const unsigned char *hash, size_t hash_len, 318 const unsigned char *hash, size_t hash_len, 346 const unsigned char *hash, size_t hash_len,
|
D | pk_internal.h | 51 const unsigned char *hash, size_t hash_len, 56 const unsigned char *hash, size_t hash_len,
|