Home
last modified time | relevance | path

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

/reactos/dll/3rdparty/mbedtls/
H A Dpk_wrap.c97 static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_verify_wrap() argument
106 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_verify_wrap()
114 MBEDTLS_RSA_PUBLIC, md_alg, in rsa_verify_wrap()
129 static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_sign_wrap() argument
137 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_sign_wrap()
144 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap()
257 static int ecdsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
279 static int eckey_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_sign_wrap() argument
505 ((void) md_alg); in ecdsa_verify_wrap()
532 ((void) md_alg); in ecdsa_verify_rs_wrap()
[all …]
H A Dpk.c228 if( *hash_len != 0 && md_alg == MBEDTLS_MD_NONE ) in pk_hashlen_helper()
231 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in pk_hashlen_helper()
269 mbedtls_md_type_t md_alg, in mbedtls_pk_verify_restartable() argument
275 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_verify_restartable()
280 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_verify_restartable()
328 mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify_ext() argument
350 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in mbedtls_pk_verify_ext()
364 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext()
391 mbedtls_md_type_t md_alg, in mbedtls_pk_sign_restartable() argument
403 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_sign_restartable()
[all …]
H A Doid.c339 mbedtls_md_type_t md_alg; member
439 FN_OID_GET_ATTR2(mbedtls_oid_get_sig_alg, oid_sig_alg_t, sig_alg, mbedtls_md_type_t, md_alg, mbedtl…
440 …t_oid_by_sig_alg, oid_sig_alg_t, oid_sig_alg, mbedtls_pk_type_t, pk_alg, mbedtls_md_type_t, md_alg)
598 mbedtls_md_type_t md_alg; member
653 FN_OID_TYPED_FROM_ASN1(oid_md_alg_t, md_alg, oid_md_alg)
654 FN_OID_GET_ATTR1(mbedtls_oid_get_md_alg, oid_md_alg_t, md_alg, mbedtls_md_type_t, md_alg)
655 …ID_GET_OID_BY_ATTR1(mbedtls_oid_get_oid_by_md, oid_md_alg_t, oid_md_alg, mbedtls_md_type_t, md_alg)
709 mbedtls_md_type_t md_alg; member
730 …pkcs12_pbe_alg, oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, mbedtls_md_type_t, md_alg, mbedtls_cipher_ty… in FN_OID_TYPED_FROM_ASN1()
H A Dpkcs11.c194 mbedtls_md_type_t md_alg, in mbedtls_pkcs11_sign() argument
209 if( md_alg != MBEDTLS_MD_NONE ) in mbedtls_pkcs11_sign()
211 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_pkcs11_sign()
215 if( mbedtls_oid_get_oid_by_md( md_alg, &oid, &oid_size ) != 0 ) in mbedtls_pkcs11_sign()
229 if( md_alg != MBEDTLS_MD_NONE ) in mbedtls_pkcs11_sign()
H A Dx509write_csr.c103 void mbedtls_x509write_csr_set_md_alg( mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg ) in mbedtls_x509write_csr_set_md_alg() argument
105 ctx->md_alg = md_alg; in mbedtls_x509write_csr_set_md_alg()
276 ret = mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c, len, hash ); in x509write_csr_der_internal()
280 if( ( ret = mbedtls_pk_sign( ctx->key, ctx->md_alg, hash, 0, sig, &sig_len, in x509write_csr_der_internal()
293 if( ( ret = mbedtls_oid_get_oid_by_sig_alg( pk_alg, ctx->md_alg, in x509write_csr_der_internal()
H A Drsa.c1826 mbedtls_md_type_t md_alg, in mbedtls_rsa_rsassa_pss_sign() argument
1842 RSA_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && in mbedtls_rsa_rsassa_pss_sign()
1855 if( md_alg != MBEDTLS_MD_NONE ) in mbedtls_rsa_rsassa_pss_sign()
1978 if( md_alg != MBEDTLS_MD_NONE ) in rsa_rsassa_pkcs1_v15_encode()
2033 if( md_alg == MBEDTLS_MD_NONE ) in rsa_rsassa_pkcs1_v15_encode()
2096 RSA_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && in mbedtls_rsa_rsassa_pkcs1_v15_sign()
2165 mbedtls_md_type_t md_alg, in mbedtls_rsa_pkcs1_sign() argument
2252 if( md_alg != MBEDTLS_MD_NONE ) in mbedtls_rsa_rsassa_pss_verify_ext()
2355 mbedtls_md_type_t md_alg, in mbedtls_rsa_rsassa_pss_verify() argument
2371 : md_alg; in mbedtls_rsa_rsassa_pss_verify()
[all …]
H A Decdsa.c443 mbedtls_md_type_t md_alg, in ecdsa_sign_det_restartable() argument
456 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in ecdsa_sign_det_restartable()
573 mbedtls_md_type_t md_alg ) in mbedtls_ecdsa_sign_det() argument
581 return( ecdsa_sign_det_restartable( grp, r, s, d, buf, blen, md_alg, in mbedtls_ecdsa_sign_det()
588 mbedtls_md_type_t md_alg, in mbedtls_ecdsa_sign_det_ext() argument
600 return( ecdsa_sign_det_restartable( grp, r, s, d, buf, blen, md_alg, in mbedtls_ecdsa_sign_det_ext()
762 mbedtls_md_type_t md_alg, in mbedtls_ecdsa_write_signature_restartable() argument
781 hash, hlen, md_alg, f_rng, in mbedtls_ecdsa_write_signature_restartable()
784 (void) md_alg; in mbedtls_ecdsa_write_signature_restartable()
812 mbedtls_md_type_t md_alg, in mbedtls_ecdsa_write_signature() argument
[all …]
H A Dx509.c174 static int x509_get_hash_alg( const mbedtls_x509_buf *alg, mbedtls_md_type_t *md_alg ) in x509_get_hash_alg() argument
204 if( ( ret = mbedtls_oid_get_md_alg( &md_oid, md_alg ) ) != 0 ) in x509_get_hash_alg()
234 mbedtls_md_type_t *md_alg, mbedtls_md_type_t *mgf_md, in mbedtls_x509_get_rsassa_pss_params() argument
244 *md_alg = MBEDTLS_MD_SHA1; in mbedtls_x509_get_rsassa_pss_params()
271 if( ( ret = mbedtls_oid_get_md_alg( &alg_id, md_alg ) ) != 0 ) in mbedtls_x509_get_rsassa_pss_params()
687 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg, in mbedtls_x509_get_sig_alg() argument
695 if( ( ret = mbedtls_oid_get_sig_alg( sig_oid, md_alg, pk_alg ) ) != 0 ) in mbedtls_x509_get_sig_alg()
708 md_alg, in mbedtls_x509_get_sig_alg()
868 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, in mbedtls_x509_sig_alg_gets() argument
891 md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_x509_sig_alg_gets()
[all …]
H A Dx509write_crt.c109 mbedtls_md_type_t md_alg ) in mbedtls_x509write_crt_set_md_alg() argument
111 ctx->md_alg = md_alg; in mbedtls_x509write_crt_set_md_alg()
413 if( ( ret = mbedtls_oid_get_oid_by_sig_alg( pk_alg, ctx->md_alg, in mbedtls_x509write_crt_der()
527 if( ( ret = mbedtls_md( mbedtls_md_info_from_type( ctx->md_alg ), c, in mbedtls_x509write_crt_der()
533 if( ( ret = mbedtls_pk_sign( ctx->issuer_key, ctx->md_alg, in mbedtls_x509write_crt_der()
H A Dssl_cli.c2464 *md_alg = MBEDTLS_MD_NONE; in ssl_parse_signature_algorithm()
2756 mbedtls_md_type_t md_alg = MBEDTLS_MD_NONE; in ssl_parse_server_key_exchange() local
2802 md_alg = MBEDTLS_MD_SHA1; in ssl_parse_server_key_exchange()
2844 if( md_alg == MBEDTLS_MD_NONE ) in ssl_parse_server_key_exchange()
2857 if( md_alg != MBEDTLS_MD_NONE ) in ssl_parse_server_key_exchange()
3494 mbedtls_md_type_t md_alg = MBEDTLS_MD_NONE; in ssl_write_certificate_verify() local
3567 md_alg = MBEDTLS_MD_NONE; in ssl_write_certificate_verify()
3576 md_alg = MBEDTLS_MD_SHA1; in ssl_write_certificate_verify()
3604 md_alg = MBEDTLS_MD_SHA384; in ssl_write_certificate_verify()
3609 md_alg = MBEDTLS_MD_SHA256; in ssl_write_certificate_verify()
[all …]
H A Dssl_srv.c3127 mbedtls_md_type_t md_alg; in ssl_prepare_server_key_exchange() local
3153 md_alg = MBEDTLS_MD_SHA1; in ssl_prepare_server_key_exchange()
3160 md_alg = MBEDTLS_MD_NONE; in ssl_prepare_server_key_exchange()
3170 if( md_alg == MBEDTLS_MD_NONE ) in ssl_prepare_server_key_exchange()
3184 if( md_alg != MBEDTLS_MD_NONE ) in ssl_prepare_server_key_exchange()
3226 mbedtls_ssl_hash_from_md_alg( md_alg ); in ssl_prepare_server_key_exchange()
4052 mbedtls_md_type_t md_alg; in ssl_parse_certificate_verify() local
4100 md_alg = MBEDTLS_MD_NONE; in ssl_parse_certificate_verify()
4109 md_alg = MBEDTLS_MD_SHA1; in ssl_parse_certificate_verify()
4137 if( MBEDTLS_MD_SHA1 == md_alg ) in ssl_parse_certificate_verify()
[all …]
H A Dpkparse.c1136 mbedtls_md_type_t md_alg; in pk_parse_key_pkcs8_encrypted_der() local
1180 if( mbedtls_oid_get_pkcs12_pbe_alg( &pbe_alg_oid, &md_alg, &cipher_alg ) == 0 ) in pk_parse_key_pkcs8_encrypted_der()
1183 cipher_alg, md_alg, in pk_parse_key_pkcs8_encrypted_der()
H A Dx509_crt.c188 mbedtls_md_type_t md_alg ) in x509_profile_check_md_alg() argument
190 if( md_alg == MBEDTLS_MD_NONE ) in x509_profile_check_md_alg()
193 if( ( profile->allowed_mds & MBEDTLS_X509_ID_FLAG( md_alg ) ) != 0 ) in x509_profile_check_md_alg()
H A Dssl_tls.c1856 const mbedtls_md_type_t md_alg = mbedtls_md_get_type( ctx->md_info ); in mbedtls_ssl_cf_hmac() local
1859 const size_t block_size = md_alg == MBEDTLS_MD_SHA384 ? 128 : 64; in mbedtls_ssl_cf_hmac()
9454 mbedtls_md_type_t md_alg ) in mbedtls_ssl_sig_hash_set_add() argument
9460 set->rsa = md_alg; in mbedtls_ssl_sig_hash_set_add()
9465 set->ecdsa = md_alg; in mbedtls_ssl_sig_hash_set_add()
9475 mbedtls_md_type_t md_alg ) in mbedtls_ssl_sig_hash_set_const_hash() argument
9477 set->rsa = md_alg; in mbedtls_ssl_sig_hash_set_const_hash()
9478 set->ecdsa = md_alg; in mbedtls_ssl_sig_hash_set_const_hash()
9866 mbedtls_md_type_t md_alg ) in mbedtls_ssl_get_key_exchange_md_tls1_2() argument
9870 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_ssl_get_key_exchange_md_tls1_2()
/reactos/sdk/include/reactos/libs/mbedtls/
H A Drsa.h946 mbedtls_md_type_t md_alg,
994 mbedtls_md_type_t md_alg,
1056 mbedtls_md_type_t md_alg,
1109 mbedtls_md_type_t md_alg,
1155 mbedtls_md_type_t md_alg,
1212 mbedtls_md_type_t md_alg,
1260 mbedtls_md_type_t md_alg,
H A Decdsa.h240 mbedtls_md_type_t md_alg );
283 mbedtls_md_type_t md_alg,
374 mbedtls_md_type_t md_alg,
420 mbedtls_md_type_t md_alg,
480 mbedtls_md_type_t md_alg ) MBEDTLS_DEPRECATED;
H A Dpk.h210 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen,
356 int mbedtls_pk_verify( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg,
381 mbedtls_md_type_t md_alg,
416 mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg,
449 int mbedtls_pk_sign( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg,
482 mbedtls_md_type_t md_alg,
H A Dpk_internal.h76 int (*verify_func)( void *ctx, mbedtls_md_type_t md_alg,
81 int (*sign_func)( void *ctx, mbedtls_md_type_t md_alg,
89 int (*verify_rs_func)( void *ctx, mbedtls_md_type_t md_alg,
95 int (*sign_rs_func)( void *ctx, mbedtls_md_type_t md_alg,
H A Dpkcs11.h162 mbedtls_md_type_t md_alg,
180 int mode, mbedtls_md_type_t md_alg, unsigned int hashlen, in mbedtls_ssl_pkcs11_sign() argument
185 return mbedtls_pkcs11_sign( (mbedtls_pkcs11_context *) ctx, mode, md_alg, in mbedtls_ssl_pkcs11_sign()
H A Doid.h532 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg );
554 int mbedtls_oid_get_oid_by_sig_alg( mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
565 int mbedtls_oid_get_md_alg( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_alg );
597 int mbedtls_oid_get_oid_by_md( mbedtls_md_type_t md_alg, const char **oid, size_t *olen );
622 int mbedtls_oid_get_pkcs12_pbe_alg( const mbedtls_asn1_buf *oid, mbedtls_md_type_t *md_alg,
H A Dx509.h320 mbedtls_md_type_t *md_alg, mbedtls_md_type_t *mgf_md,
325 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg,
334 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
H A Dx509_csr.h103 mbedtls_md_type_t md_alg; member
223 void mbedtls_x509write_csr_set_md_alg( mbedtls_x509write_csr *ctx, mbedtls_md_type_t md_alg );
H A Dx509_crt.h164 mbedtls_md_type_t md_alg; member
679 void mbedtls_x509write_crt_set_md_alg( mbedtls_x509write_cert *ctx, mbedtls_md_type_t md_alg );
H A Dssl_internal.h583 mbedtls_md_type_t md_alg );
586 mbedtls_md_type_t md_alg );
858 mbedtls_md_type_t md_alg );
H A Dssl.h678 mbedtls_md_type_t md_alg,