Lines Matching refs:end
87 unsigned char *p, *end; in verify_signature() local
92 end = (unsigned char *)(p + sig_alg_len); in verify_signature()
93 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, &sig_params); in verify_signature()
107 end = (unsigned char *)(p + pk_len); in verify_signature()
108 rc = mbedtls_pk_parse_subpubkey(&p, end, &pk); in verify_signature()
116 end = (unsigned char *)(p + sig_len); in verify_signature()
118 rc = mbedtls_asn1_get_bitstring_null(&p, end, &signature.len); in verify_signature()
119 if ((rc != 0) || ((size_t)(end - p) != signature.len)) { in verify_signature()
169 unsigned char *p, *end, *hash; in verify_hash() local
180 end = p + digest_info_len; in verify_hash()
181 rc = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in verify_hash()
187 end = p + len; in verify_hash()
190 rc = mbedtls_asn1_get_alg(&p, end, &hash_oid, ¶ms); in verify_hash()
206 rc = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_OCTET_STRING); in verify_hash()
207 if ((rc != 0) || ((size_t)(end - p) != len)) { in verify_hash()