Lines Matching refs:hash_len
160 static inline int pk_hashlen_helper( mbedtls_md_type_t md_alg, size_t *hash_len ) in pk_hashlen_helper() argument
164 if( *hash_len != 0 ) in pk_hashlen_helper()
170 *hash_len = mbedtls_md_get_size( md_info ); in pk_hashlen_helper()
178 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument
182 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_verify()
188 return( ctx->pk_info->verify_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_verify()
197 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument
222 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext()
242 return( mbedtls_pk_verify( ctx, md_alg, hash, hash_len, sig, sig_len ) ); in mbedtls_pk_verify_ext()
249 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument
254 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_sign()
260 return( ctx->pk_info->sign_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_sign()