• Home
  • Raw
  • Download

Lines Matching refs:hash_len

234 static inline int pk_hashlen_helper( mbedtls_md_type_t md_alg, size_t *hash_len )  in pk_hashlen_helper()  argument
238 if( *hash_len != 0 ) in pk_hashlen_helper()
244 *hash_len = mbedtls_md_get_size( md_info ); in pk_hashlen_helper()
277 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_restartable() argument
282 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_verify_restartable()
287 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_verify_restartable()
302 md_alg, hash, hash_len, sig, sig_len, rs_ctx->rs_ctx ); in mbedtls_pk_verify_restartable()
316 return( ctx->pk_info->verify_func( ctx->pk_ctx, md_alg, hash, hash_len, in mbedtls_pk_verify_restartable()
324 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify() argument
327 return( mbedtls_pk_verify_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_verify()
336 const unsigned char *hash, size_t hash_len, in mbedtls_pk_verify_ext() argument
340 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_verify_ext()
357 if( md_alg == MBEDTLS_MD_NONE && UINT_MAX < hash_len ) in mbedtls_pk_verify_ext()
370 md_alg, (unsigned int) hash_len, hash, in mbedtls_pk_verify_ext()
390 return( mbedtls_pk_verify( ctx, md_alg, hash, hash_len, sig, sig_len ) ); in mbedtls_pk_verify_ext()
398 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign_restartable() argument
404 PK_VALIDATE_RET( ( md_alg == MBEDTLS_MD_NONE && hash_len == 0 ) || in mbedtls_pk_sign_restartable()
409 pk_hashlen_helper( md_alg, &hash_len ) != 0 ) in mbedtls_pk_sign_restartable()
424 hash, hash_len, in mbedtls_pk_sign_restartable()
441 hash, hash_len, in mbedtls_pk_sign_restartable()
450 const unsigned char *hash, size_t hash_len, in mbedtls_pk_sign() argument
454 return( mbedtls_pk_sign_restartable( ctx, md_alg, hash, hash_len, in mbedtls_pk_sign()