Lines Matching refs:sig_ptr
242 static int get_ecdsa_signature_from_asn1(unsigned char *sig_ptr, in get_ecdsa_signature_from_asn1() argument
250 sig_end = sig_ptr + *sig_len; in get_ecdsa_signature_from_asn1()
251 rc = mbedtls_asn1_get_tag(&sig_ptr, sig_end, &len, in get_ecdsa_signature_from_asn1()
258 sig_end = sig_ptr + len; in get_ecdsa_signature_from_asn1()
259 rc = mbedtls_asn1_get_tag(&sig_ptr, sig_end, &r_len, in get_ecdsa_signature_from_asn1()
265 if (ignore_asn1_int_padding_byte(&sig_ptr, &r_len) != 0) { in get_ecdsa_signature_from_asn1()
269 (void)memcpy((void *)&r_s_pair[0], (const void *)sig_ptr, r_len); in get_ecdsa_signature_from_asn1()
271 sig_ptr = sig_ptr + r_len; in get_ecdsa_signature_from_asn1()
272 sig_end = sig_ptr + len - (r_len + (SIZE_OF_ASN1_LEN + in get_ecdsa_signature_from_asn1()
274 rc = mbedtls_asn1_get_tag(&sig_ptr, sig_end, &s_len, in get_ecdsa_signature_from_asn1()
280 if (ignore_asn1_int_padding_byte(&sig_ptr, &s_len) != 0) { in get_ecdsa_signature_from_asn1()
284 (void)memcpy((void *)&r_s_pair[r_len], (const void *)sig_ptr, s_len); in get_ecdsa_signature_from_asn1()
302 void *sig_ptr, unsigned int sig_len, in verify_signature() argument
340 p = (unsigned char *)sig_ptr; in verify_signature()