Home
last modified time | relevance | path

Searched refs:sig (Results 1 – 25 of 30) sorted by relevance

12

/net-tools-2.7.6/mbedtls-2.4.0/tests/suites/
Dtest_suite_ecdsa.function141 unsigned char sig[200];
147 memset( sig, 0x2a, sizeof( sig ) );
158 sig, &sig_len, &rnd_pseudo_rand, &rnd_info ) == 0 );
160 sig, sig_len ) == 0 );
163 for( i = sig_len; i < sizeof( sig ); i++ )
164 TEST_ASSERT( sig[i] == 0x2a );
168 sig, sig_len - 1 ) != 0 );
170 sig, sig_len + 1 ) != 0 );
173 sig[0]++;
175 sig, sig_len ) != 0 );
[all …]
Dtest_suite_pk.function49 const unsigned char *hash, unsigned char *sig )
52 md_alg, hashlen, hash, sig ) );
227 unsigned char hash[100], sig[500], key[500];
233 memset( sig, 0, sizeof( sig ) ); sig_len = unhexify(sig, sig_str);
246 hash, hash_len, sig, sig_len ) == ret );
257 unsigned char hash[50], sig[5000];
263 memset( sig, 0, sizeof sig );
269 sig, &sig_len, rnd_std_rand, NULL ) == sign_ret );
272 hash, sizeof hash, sig, sig_len ) == verify_ret );
428 unsigned char hash[50], sig[1000];
[all …]
/net-tools-2.7.6/mbedtls-2.4.0/library/
Dpk_wrap.c73 const unsigned char *sig, size_t sig_len ) in rsa_verify_wrap() argument
82 (unsigned int) hash_len, hash, sig ) ) != 0 ) in rsa_verify_wrap()
93 unsigned char *sig, size_t *sig_len, in rsa_sign_wrap() argument
99 md_alg, (unsigned int) hash_len, hash, sig ) ); 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
234 ret = ecdsa_sign_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len, in eckey_sign_wrap()
[all …]
Drsa.c928 unsigned char *sig ) in mbedtls_rsa_rsassa_pss_sign() argument
931 unsigned char *p = sig; in mbedtls_rsa_rsassa_pss_sign()
967 memset( sig, 0, olen ); in mbedtls_rsa_rsassa_pss_sign()
999 mgf_mask( sig + offset, olen - hlen - 1 - offset, p, hlen, &md_ctx ); in mbedtls_rsa_rsassa_pss_sign()
1004 sig[0] &= 0xFF >> ( olen * 8 - msb ); in mbedtls_rsa_rsassa_pss_sign()
1010 ? mbedtls_rsa_public( ctx, sig, sig ) in mbedtls_rsa_rsassa_pss_sign()
1011 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig ) ); in mbedtls_rsa_rsassa_pss_sign()
1029 unsigned char *sig ) in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1032 unsigned char *p = sig; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1102 return( mbedtls_rsa_public( ctx, sig, sig ) ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
[all …]
Decdsa.c285 unsigned char *sig, size_t *slen ) in ecdsa_signature_to_asn1() argument
299 memcpy( sig, p, len ); in ecdsa_signature_to_asn1()
310 unsigned char *sig, size_t *slen, in mbedtls_ecdsa_write_signature() argument
333 MBEDTLS_MPI_CHK( ecdsa_signature_to_asn1( &r, &s, sig, slen ) ); in mbedtls_ecdsa_write_signature()
346 unsigned char *sig, size_t *slen, 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()
359 const unsigned char *sig, size_t slen ) in mbedtls_ecdsa_read_signature() argument
362 unsigned char *p = (unsigned char *) sig; in mbedtls_ecdsa_read_signature()
363 const unsigned char *end = sig + slen; in mbedtls_ecdsa_read_signature()
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
225 sig ); 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()
Dpkcs11.c172 unsigned char *sig ) in mbedtls_pkcs11_sign() argument
175 unsigned char *p = sig; in mbedtls_pkcs11_sign()
231 if( pkcs11h_certificate_signAny( ctx->pkcs11h_cert, CKM_RSA_PKCS, sig, in mbedtls_pkcs11_sign()
232 asn_len + hashlen, sig, &sig_len ) != CKR_OK ) in mbedtls_pkcs11_sign()
Dx509write_csr.c138 unsigned char sig[MBEDTLS_MPI_MAX_SIZE]; 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.c304 unsigned char sig[MBEDTLS_MPI_MAX_SIZE]; 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()
Dx509_create.c257 unsigned char *sig, size_t size ) in mbedtls_x509_write_sig() argument
267 memcpy( *p, sig, len ); in mbedtls_x509_write_sig()
Dx509.c590 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig ) in mbedtls_x509_get_sig() argument
605 sig->tag = tag_type; in mbedtls_x509_get_sig()
606 sig->len = len; in mbedtls_x509_get_sig()
607 sig->p = *p; in mbedtls_x509_get_sig()
Dx509_crt.c899 if( ( ret = mbedtls_x509_get_sig( &p, end, &crt->sig ) ) != 0 ) in x509_crt_parse_der_core()
1688 crl_list->sig.p, crl_list->sig.len ) != 0 ) in x509_crt_verifycrl()
1973 child->sig.p, child->sig.len ) != 0 ) in x509_crt_verify_top()
2082 child->sig.p, child->sig.len ) != 0 ) in x509_crt_verify_child()
Dx509_csr.c247 if( ( ret = mbedtls_x509_get_sig( &p, end, &csr->sig ) ) != 0 ) in mbedtls_x509_csr_parse_der()
/net-tools-2.7.6/mbedtls-2.4.0/programs/pkey/
Decdsa.c105 unsigned char sig[512]; in main() local
114 memset(sig, 0, sizeof( sig ) ); in main()
165 sig, &sig_len, in main()
174 dump_buf( " + Signature: ", sig, sig_len ); in main()
208 sig, sig_len ) ) != 0 ) in main()
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Drsa.h431 unsigned char *sig );
458 unsigned char *sig );
491 unsigned char *sig );
523 const unsigned char *sig );
550 const unsigned char *sig );
584 const unsigned char *sig );
619 const unsigned char *sig );
Dpkcs11.h138 unsigned char *sig );
154 const unsigned char *hash, unsigned char *sig ) in mbedtls_ssl_pkcs11_sign() argument
159 hashlen, hash, sig ); in mbedtls_ssl_pkcs11_sign()
Decdsa.h145 unsigned char *sig, size_t *slen,
181 unsigned char *sig, size_t *slen,
204 const unsigned char *sig, size_t slen );
Dpk.h168 const unsigned char *hash, unsigned char *sig );
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,
Dpk_internal.h52 const unsigned char *sig, size_t sig_len );
57 unsigned char *sig, size_t *sig_len,
Dx509.h292 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig );
316 unsigned char *sig, size_t size );
Dx509_crl.h89 mbedtls_x509_buf sig; member
Dx509_csr.h63 mbedtls_x509_buf sig; member
Dx509_crt.h87 …mbedtls_x509_buf sig; /**< Signature: hash of the tbs part signed with the private k… member
Dssl_internal.h387 mbedtls_pk_type_t mbedtls_ssl_pk_alg_from_sig( unsigned char sig );
/net-tools-2.7.6/tinydtls-0.8.2/tests/
Ddtls-client.c232 static void dtls_handle_signal(int sig) in dtls_handle_signal() argument
235 signal(sig, SIG_DFL); in dtls_handle_signal()
236 kill(getpid(), sig); in dtls_handle_signal()

12