/net-tools-3.7.0/mbedtls-2.4.0/library/ |
D | pk_wrap.c | 73 const unsigned char *sig, size_t sig_len ) in rsa_verify_wrap() argument 77 if( sig_len < ((mbedtls_rsa_context *) ctx)->len ) in rsa_verify_wrap() 85 if( sig_len > ((mbedtls_rsa_context *) ctx)->len ) in rsa_verify_wrap() 93 unsigned char *sig, size_t *sig_len, in rsa_sign_wrap() argument 96 *sig_len = ((mbedtls_rsa_context *) ctx)->len; in rsa_sign_wrap() 199 const unsigned char *sig, size_t sig_len ); 203 unsigned char *sig, size_t *sig_len, 208 const unsigned char *sig, size_t sig_len ) in eckey_verify_wrap() argument 216 ret = ecdsa_verify_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len ); in eckey_verify_wrap() 225 unsigned char *sig, size_t *sig_len, in eckey_sign_wrap() argument [all …]
|
D | pkcs11.c | 174 size_t sig_len = 0, asn_len = 0, oid_size = 0; in mbedtls_pkcs11_sign() local 197 sig_len = ctx->len; in mbedtls_pkcs11_sign() 198 if( hashlen > sig_len || asn_len > sig_len || in mbedtls_pkcs11_sign() 199 hashlen + asn_len > sig_len ) in mbedtls_pkcs11_sign() 232 asn_len + hashlen, sig, &sig_len ) != CKR_OK ) in mbedtls_pkcs11_sign()
|
D | pk.c | 179 const unsigned char *sig, size_t sig_len ) in mbedtls_pk_verify() argument 189 sig, sig_len ) ); in mbedtls_pk_verify() 198 const unsigned char *sig, size_t sig_len ) in mbedtls_pk_verify_ext() argument 217 if( sig_len < mbedtls_pk_get_len( ctx ) ) in mbedtls_pk_verify_ext() 229 if( sig_len > mbedtls_pk_get_len( ctx ) ) in mbedtls_pk_verify_ext() 242 return( mbedtls_pk_verify( ctx, md_alg, hash, hash_len, sig, sig_len ) ); in mbedtls_pk_verify_ext() 250 unsigned char *sig, size_t *sig_len, in mbedtls_pk_sign() argument 261 sig, sig_len, f_rng, p_rng ) ); in mbedtls_pk_sign()
|
D | x509write_csr.c | 140 size_t pub_len = 0, sig_and_oid_len = 0, sig_len; in mbedtls_x509write_csr_der() local 201 if( ( ret = mbedtls_pk_sign( ctx->key, ctx->md_alg, hash, 0, sig, &sig_len, in mbedtls_x509write_csr_der() 214 sig_oid, sig_oid_len, sig, sig_len ) ); in mbedtls_x509write_csr_der()
|
D | x509write_crt.c | 306 size_t sub_len = 0, pub_len = 0, sig_and_oid_len = 0, sig_len; in mbedtls_x509write_crt_der() local 403 if( ( ret = mbedtls_pk_sign( ctx->issuer_key, ctx->md_alg, hash, 0, sig, &sig_len, in mbedtls_x509write_crt_der() 414 sig_oid, sig_oid_len, sig, sig_len ) ); in mbedtls_x509write_crt_der()
|
D | ssl_cli.c | 2342 size_t sig_len, hashlen; local 2390 sig_len = ( p[0] << 8 ) | p[1]; 2393 if( end != p + sig_len ) 2399 MBEDTLS_SSL_DEBUG_BUF( 3, "signature", p, sig_len ); 2503 md_alg, hash, hashlen, p, sig_len ) ) != 0 )
|
D | ssl_srv.c | 3556 size_t i, sig_len; local 3702 sig_len = ( ssl->in_msg[i] << 8 ) | ssl->in_msg[i+1]; 3705 if( i + sig_len != ssl->in_hslen ) 3716 ssl->in_msg + i, sig_len ) ) != 0 )
|
/net-tools-3.7.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecdsa.function | 142 size_t sig_len, i; 158 sig, &sig_len, &rnd_pseudo_rand, &rnd_info ) == 0 ); 160 sig, sig_len ) == 0 ); 163 for( i = sig_len; i < sizeof( sig ); i++ ) 168 sig, sig_len - 1 ) != 0 ); 170 sig, sig_len + 1 ) != 0 ); 175 sig, sig_len ) != 0 ); 181 sig, sig_len ) != 0 ); 185 sig[sig_len - 1]++; 187 sig, sig_len ) != 0 ); [all …]
|
D | test_suite_pk.function | 228 size_t hash_len, sig_len, key_len; 233 memset( sig, 0, sizeof( sig ) ); sig_len = unhexify(sig, sig_str); 246 hash, hash_len, sig, sig_len ) == ret ); 258 size_t sig_len; 269 sig, &sig_len, rnd_std_rand, NULL ) == sign_ret ); 272 hash, sizeof hash, sig, sig_len ) == verify_ret ); 430 size_t sig_len, ciph_len, test_len; 463 sig, &sig_len, rnd_std_rand, NULL ) == 0 ); 464 TEST_ASSERT( sig_len == RSA_KEY_LEN ); 466 hash, sizeof hash, sig, sig_len ) == 0 ); [all …]
|
/net-tools-3.7.0/mbedtls-2.4.0/programs/pkey/ |
D | ecdsa.c | 106 size_t sig_len; in main() local 165 sig, &sig_len, in main() 171 mbedtls_printf( " ok (signature length = %u)\n", (unsigned int) sig_len ); in main() 174 dump_buf( " + Signature: ", sig, sig_len ); in main() 208 sig, sig_len ) ) != 0 ) in main()
|
/net-tools-3.7.0/mbedtls-2.4.0/include/mbedtls/ |
D | pk_internal.h | 52 const unsigned char *sig, size_t sig_len ); 57 unsigned char *sig, size_t *sig_len,
|
D | pk.h | 285 const unsigned char *sig, size_t sig_len ); 319 const unsigned char *sig, size_t sig_len ); 347 unsigned char *sig, size_t *sig_len,
|
/net-tools-3.7.0/mbedtls-2.4.0/programs/test/ |
D | benchmark.c | 716 size_t sig_len; in main() local 734 tmp, &sig_len, myrand, NULL ) ); in main() 747 tmp, &sig_len, myrand, NULL ) != 0 ) in main() 757 tmp, sig_len ) ); in main()
|
/net-tools-3.7.0/mbedtls-2.4.0/yotta/data/example-benchmark/ |
D | main.cpp | 768 size_t sig_len; in benchmark() local 786 tmp, &sig_len, myrand, NULL ) ); in benchmark() 799 tmp, &sig_len, myrand, NULL ) != 0 ) in benchmark() 809 tmp, sig_len ) ); in benchmark()
|