/net-tools-3.4.0/mbedtls-2.4.0/tests/suites/ |
D | test_suite_ecdsa.function | 141 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 …]
|
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]; 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-3.4.0/mbedtls-2.4.0/library/ |
D | pk_wrap.c | 73 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 …]
|
D | rsa.c | 928 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 …]
|
D | ecdsa.c | 285 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()
|
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 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()
|
D | pkcs11.c | 172 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()
|
D | x509write_csr.c | 138 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()
|
D | x509write_crt.c | 304 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()
|
D | x509_create.c | 257 unsigned char *sig, size_t size ) in mbedtls_x509_write_sig() argument 267 memcpy( *p, sig, len ); in mbedtls_x509_write_sig()
|
D | x509.c | 590 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()
|
D | x509_crt.c | 899 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()
|
D | x509_csr.c | 247 if( ( ret = mbedtls_x509_get_sig( &p, end, &csr->sig ) ) != 0 ) in mbedtls_x509_csr_parse_der()
|
/net-tools-3.4.0/mbedtls-2.4.0/programs/pkey/ |
D | ecdsa.c | 105 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-3.4.0/mbedtls-2.4.0/include/mbedtls/ |
D | rsa.h | 431 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 );
|
D | pkcs11.h | 138 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()
|
D | ecdsa.h | 145 unsigned char *sig, size_t *slen, 181 unsigned char *sig, size_t *slen, 204 const unsigned char *sig, size_t slen );
|
D | pk.h | 168 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,
|
D | pk_internal.h | 52 const unsigned char *sig, size_t sig_len ); 57 unsigned char *sig, size_t *sig_len,
|
D | x509.h | 292 int mbedtls_x509_get_sig( unsigned char **p, const unsigned char *end, mbedtls_x509_buf *sig ); 316 unsigned char *sig, size_t size );
|
D | x509_crl.h | 89 mbedtls_x509_buf sig; member
|
D | x509_csr.h | 63 mbedtls_x509_buf sig; member
|
D | x509_crt.h | 87 …mbedtls_x509_buf sig; /**< Signature: hash of the tbs part signed with the private k… member
|
D | ssl_internal.h | 387 mbedtls_pk_type_t mbedtls_ssl_pk_alg_from_sig( unsigned char sig );
|
/net-tools-3.4.0/tinydtls-0.8.2/tests/ |
D | dtls-client.c | 232 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()
|