Lines Matching refs:md_alg

199 static inline int pk_hashlen_helper( mbedtls_md_type_t md_alg, size_t *hash_len )  in pk_hashlen_helper()  argument
206 if( ( md_info = mbedtls_md_info_from_type( md_alg ) ) == NULL ) in pk_hashlen_helper()
241 mbedtls_md_type_t md_alg, in mbedtls_pk_verify_restartable() argument
247 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_verify_restartable()
252 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_verify_restartable()
267 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx ); in mbedtls_pk_verify_restartable()
281 return( ctx->pk_info->verify_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_verify_restartable()
288 int mbedtls_pk_verify( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify() argument
292 return( mbedtls_pk_verify_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_verify()
300 mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_verify_ext() argument
305 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_verify_ext()
322 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in mbedtls_pk_verify_ext()
336 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext()
356 return( mbedtls_pk_verify( ctx, md_alg, hash, hash_len, sig, sig_len ) ); in mbedtls_pk_verify_ext()
363 mbedtls_md_type_t md_alg, in mbedtls_pk_sign_restartable() argument
370 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_sign_restartable()
375 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_sign_restartable()
389 ret = ctx->pk_info->sign_rs_func( ctx->pk_ctx, md_alg, in mbedtls_pk_sign_restartable()
404 return( ctx->pk_info->sign_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_sign_restartable()
411 int mbedtls_pk_sign( mbedtls_pk_context *ctx, mbedtls_md_type_t md_alg, in mbedtls_pk_sign() argument
416 return( mbedtls_pk_sign_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_sign()