Lines Matching refs:sig
928 unsigned char *sig ) in mbedtls_rsa_rsassa_pss_sign() argument
931 unsigned char *p = sig; in mbedtls_rsa_rsassa_pss_sign()
967 memset( sig, 0, olen ); in mbedtls_rsa_rsassa_pss_sign()
999 mgf_mask( sig + offset, olen - hlen - 1 - offset, p, hlen, &md_ctx ); in mbedtls_rsa_rsassa_pss_sign()
1004 sig[0] &= 0xFF >> ( olen * 8 - msb ); in mbedtls_rsa_rsassa_pss_sign()
1010 ? mbedtls_rsa_public( ctx, sig, sig ) in mbedtls_rsa_rsassa_pss_sign()
1011 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig ) ); in mbedtls_rsa_rsassa_pss_sign()
1029 unsigned char *sig ) in mbedtls_rsa_rsassa_pkcs1_v15_sign() argument
1032 unsigned char *p = sig; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1102 return( mbedtls_rsa_public( ctx, sig, sig ) ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1119 MBEDTLS_MPI_CHK( mbedtls_rsa_private( ctx, f_rng, p_rng, sig, sig_try ) ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1124 diff |= verif[i] ^ sig[i]; in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1133 memcpy( sig, sig_try, ctx->len ); in mbedtls_rsa_rsassa_pkcs1_v15_sign()
1153 unsigned char *sig ) in mbedtls_rsa_pkcs1_sign() argument
1160 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
1166 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_sign()
1187 const unsigned char *sig ) in mbedtls_rsa_rsassa_pss_verify_ext() argument
1209 ? mbedtls_rsa_public( ctx, sig, buf ) in mbedtls_rsa_rsassa_pss_verify_ext()
1210 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, buf ); in mbedtls_rsa_rsassa_pss_verify_ext()
1311 const unsigned char *sig ) in mbedtls_rsa_rsassa_pss_verify() argument
1320 sig ) ); in mbedtls_rsa_rsassa_pss_verify()
1336 const unsigned char *sig ) in mbedtls_rsa_rsassa_pkcs1_v15_verify() argument
1355 ? mbedtls_rsa_public( ctx, sig, buf ) in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1356 : mbedtls_rsa_private( ctx, f_rng, p_rng, sig, buf ); in mbedtls_rsa_rsassa_pkcs1_v15_verify()
1454 const unsigned char *sig ) in mbedtls_rsa_pkcs1_verify() argument
1461 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()
1467 hashlen, hash, sig ); in mbedtls_rsa_pkcs1_verify()