Lines Matching refs:md_alg

77 static int rsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,  in rsa_verify_wrap()  argument
86 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_verify_wrap()
94 MBEDTLS_RSA_PUBLIC, md_alg, in rsa_verify_wrap()
109 static int rsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_sign_wrap() argument
117 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in rsa_sign_wrap()
124 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_sign_wrap()
233 static int ecdsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg,
237 static int ecdsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg,
242 static int eckey_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_verify_wrap() argument
252 ret = ecdsa_verify_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len ); in eckey_verify_wrap()
259 static int eckey_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_sign_wrap() argument
270 ret = ecdsa_sign_wrap( &ecdsa, md_alg, hash, hash_len, sig, sig_len, in eckey_sign_wrap()
280 static int ecdsa_verify_rs_wrap( void *ctx, mbedtls_md_type_t md_alg,
285 static int ecdsa_sign_rs_wrap( void *ctx, mbedtls_md_type_t md_alg,
333 static int eckey_verify_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_verify_rs_wrap() argument
350 md_alg, hash, hash_len, in eckey_verify_rs_wrap()
357 static int eckey_sign_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in eckey_sign_rs_wrap() argument
374 MBEDTLS_MPI_CHK( ecdsa_sign_rs_wrap( &rs->ecdsa_ctx, md_alg, in eckey_sign_rs_wrap()
539 static int ecdsa_verify_wrap( void *ctx_arg, mbedtls_md_type_t md_alg, in ecdsa_verify_wrap() argument
559 ((void) md_alg); in ecdsa_verify_wrap()
622 static int ecdsa_verify_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_verify_wrap() argument
627 ((void) md_alg); in ecdsa_verify_wrap()
639 static int ecdsa_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_sign_wrap() argument
645 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng ) ); in ecdsa_sign_wrap()
649 static int ecdsa_verify_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_verify_rs_wrap() argument
655 ((void) md_alg); in ecdsa_verify_rs_wrap()
668 static int ecdsa_sign_rs_wrap( void *ctx, mbedtls_md_type_t md_alg, in ecdsa_sign_rs_wrap() argument
676 md_alg, hash, hash_len, sig, sig_len, f_rng, p_rng, in ecdsa_sign_rs_wrap()
757 static int rsa_alt_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in rsa_alt_sign_wrap() argument
774 md_alg, (unsigned int) hash_len, hash, sig ) ); in rsa_alt_sign_wrap()
995 static int pk_opaque_sign_wrap( void *ctx, mbedtls_md_type_t md_alg, in pk_opaque_sign_wrap() argument
1002 ((void) md_alg); in pk_opaque_sign_wrap()
1013 psa_algorithm_t alg = PSA_ALG_ECDSA( mbedtls_psa_translate_md( md_alg ) ); in pk_opaque_sign_wrap()