Home
last modified time | relevance | path

Searched refs:sig_len (Results 1 – 14 of 14) sorted by relevance

/net-tools-3.7.0/mbedtls-2.4.0/library/
Dpk_wrap.c73 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 …]
Dpkcs11.c174 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()
Dpk.c179 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()
Dx509write_csr.c140 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()
Dx509write_crt.c306 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()
Dssl_cli.c2342 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 )
Dssl_srv.c3556 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/
Dtest_suite_ecdsa.function142 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 …]
Dtest_suite_pk.function228 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/
Decdsa.c106 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/
Dpk_internal.h52 const unsigned char *sig, size_t sig_len );
57 unsigned char *sig, size_t *sig_len,
Dpk.h285 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/
Dbenchmark.c716 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/
Dmain.cpp768 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()