Lines Matching refs:md_info
476 hlen = mbedtls_md_get_size( md_ctx->md_info ); in mgf_mask()
519 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_encrypt() local
528 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in mbedtls_rsa_rsaes_oaep_encrypt()
529 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_encrypt()
533 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_encrypt()
550 mbedtls_md( md_info, label, label_len, p ); in mbedtls_rsa_rsaes_oaep_encrypt()
557 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_encrypt()
695 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsaes_oaep_decrypt() local
709 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in mbedtls_rsa_rsaes_oaep_decrypt()
710 if( md_info == NULL ) in mbedtls_rsa_rsaes_oaep_decrypt()
713 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsaes_oaep_decrypt()
733 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsaes_oaep_decrypt()
741 mbedtls_md( md_info, label, label_len, lhash ); in mbedtls_rsa_rsaes_oaep_decrypt()
936 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsassa_pss_sign() local
950 md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_rsa_rsassa_pss_sign()
951 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_sign()
954 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_sign()
957 md_info = mbedtls_md_info_from_type( (mbedtls_md_type_t) ctx->hash_id ); in mbedtls_rsa_rsassa_pss_sign()
958 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_sign()
961 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_sign()
981 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsassa_pss_sign()
1048 const mbedtls_md_info_t *md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_rsa_rsassa_pkcs1_v15_sign() local
1049 if( md_info == NULL ) in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1057 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1196 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsassa_pss_verify_ext() local
1223 md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_rsa_rsassa_pss_verify_ext()
1224 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_verify_ext()
1227 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_verify_ext()
1230 md_info = mbedtls_md_info_from_type( mgf1_hash_id ); in mbedtls_rsa_rsassa_pss_verify_ext()
1231 if( md_info == NULL ) in mbedtls_rsa_rsassa_pss_verify_ext()
1234 hlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pss_verify_ext()
1254 if( ( ret = mbedtls_md_setup( &md_ctx, md_info, 0 ) ) != 0 ) in mbedtls_rsa_rsassa_pss_verify_ext()
1342 const mbedtls_md_info_t *md_info; in mbedtls_rsa_rsassa_pkcs1_v15_verify() local
1384 md_info = mbedtls_md_info_from_type( md_alg ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1385 if( md_info == NULL ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1387 hashlen = mbedtls_md_get_size( md_info ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()