Lines Matching refs:sig
203 const unsigned char *sig, size_t sig_len) in rsa_verify_wrap() argument
247 sig, sig_len); in rsa_verify_wrap()
265 const unsigned char *sig, size_t sig_len) in rsa_verify_wrap() argument
281 hash, sig)) != 0) { in rsa_verify_wrap()
302 unsigned char *sig, size_t sig_size, in mbedtls_pk_psa_rsa_sign_ext() argument
339 sig, sig_size, sig_len); in mbedtls_pk_psa_rsa_sign_ext()
359 unsigned char *sig, size_t sig_size, size_t *sig_len, in rsa_sign_wrap() argument
374 sig, sig_size, sig_len); in rsa_sign_wrap()
379 unsigned char *sig, size_t sig_size, size_t *sig_len, in rsa_sign_wrap() argument
395 hash, sig); in rsa_sign_wrap()
697 unsigned char *sig, size_t int_size) in extract_ecdsa_sig() argument
708 if ((ret = extract_ecdsa_sig_int(p, end, sig, int_size)) != 0) { in extract_ecdsa_sig()
712 if ((ret = extract_ecdsa_sig_int(p, end, sig + int_size, int_size)) != 0) { in extract_ecdsa_sig()
721 const unsigned char *sig, size_t sig_len) in ecdsa_verify_wrap() argument
773 p = (unsigned char *) sig; in ecdsa_verify_wrap()
774 if ((ret = extract_ecdsa_sig(&p, sig + sig_len, buf, in ecdsa_verify_wrap()
787 if (p != sig + sig_len) { in ecdsa_verify_wrap()
804 const unsigned char *sig, size_t sig_len) in ecdsa_verify_wrap() argument
810 hash, hash_len, sig, sig_len); in ecdsa_verify_wrap()
885 static int pk_ecdsa_sig_asn1_from_psa(unsigned char *sig, size_t *sig_len, in pk_ecdsa_sig_asn1_from_psa() argument
891 unsigned char *p = sig + buf_len; in pk_ecdsa_sig_asn1_from_psa()
893 MBEDTLS_ASN1_CHK_ADD(len, asn1_write_mpibuf(&p, sig + rs_len, rs_len)); in pk_ecdsa_sig_asn1_from_psa()
894 MBEDTLS_ASN1_CHK_ADD(len, asn1_write_mpibuf(&p, sig, rs_len)); in pk_ecdsa_sig_asn1_from_psa()
896 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_len(&p, sig, len)); in pk_ecdsa_sig_asn1_from_psa()
897 MBEDTLS_ASN1_CHK_ADD(len, mbedtls_asn1_write_tag(&p, sig, in pk_ecdsa_sig_asn1_from_psa()
901 memmove(sig, p, len); in pk_ecdsa_sig_asn1_from_psa()
909 unsigned char *sig, size_t sig_size, size_t *sig_len, in ecdsa_sign_wrap() argument
959 sig, sig_size, sig_len); in ecdsa_sign_wrap()
965 ret = pk_ecdsa_sig_asn1_from_psa(sig, sig_len, sig_size); in ecdsa_sign_wrap()
979 unsigned char *sig, size_t sig_size, size_t *sig_len, in ecdsa_sign_wrap() argument
984 sig, sig_size, sig_len, in ecdsa_sign_wrap()
994 const unsigned char *sig, size_t sig_len,
999 unsigned char *sig, size_t sig_size, size_t *sig_len,
1046 const unsigned char *sig, size_t sig_len, in eckey_verify_rs_wrap() argument
1064 sig, sig_len, &rs->ecdsa_rs)); in eckey_verify_rs_wrap()
1072 unsigned char *sig, size_t sig_size, size_t *sig_len, in eckey_sign_rs_wrap() argument
1090 hash, hash_len, sig, sig_size, sig_len, in eckey_sign_rs_wrap()
1204 const unsigned char *sig, size_t sig_len, in ecdsa_verify_rs_wrap() argument
1212 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap()
1224 unsigned char *sig, size_t sig_size, size_t *sig_len, in ecdsa_sign_rs_wrap() argument
1230 md_alg, hash, hash_len, sig, sig_size, sig_len, f_rng, p_rng, in ecdsa_sign_rs_wrap()
1304 unsigned char *sig, size_t sig_size, size_t *sig_len, in rsa_alt_sign_wrap() argument
1322 md_alg, (unsigned int) hash_len, hash, sig); in rsa_alt_sign_wrap()
1348 unsigned char sig[MBEDTLS_MPI_MAX_SIZE]; in rsa_alt_check_pair() local
1361 sig, sizeof(sig), &sig_len, in rsa_alt_check_pair()
1367 hash, sizeof(hash), sig, sig_len) != 0) { in rsa_alt_check_pair()
1467 unsigned char *sig, size_t sig_size, size_t *sig_len, in pk_opaque_sign_wrap() argument
1475 ((void) sig); in pk_opaque_sign_wrap()
1514 sig, sig_size, sig_len); in pk_opaque_sign_wrap()
1532 return pk_ecdsa_sig_asn1_from_psa(sig, sig_len, sig_size); in pk_opaque_sign_wrap()