Lines Matching refs:p

65     volatile unsigned char *p = v; while( n-- ) *p++ = 0;  in mbedtls_zeroize()  local
71 static int x509_csr_get_version( unsigned char **p, in x509_csr_get_version() argument
77 if( ( ret = mbedtls_asn1_get_int( p, end, ver ) ) != 0 ) in x509_csr_get_version()
99 unsigned char *p, *end; in mbedtls_x509_csr_parse_der() local
115 p = mbedtls_calloc( 1, len = buflen ); in mbedtls_x509_csr_parse_der()
117 if( p == NULL ) in mbedtls_x509_csr_parse_der()
120 memcpy( p, buf, buflen ); in mbedtls_x509_csr_parse_der()
122 csr->raw.p = p; in mbedtls_x509_csr_parse_der()
124 end = p + len; in mbedtls_x509_csr_parse_der()
133 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
140 if( len != (size_t) ( end - p ) ) in mbedtls_x509_csr_parse_der()
150 csr->cri.p = p; in mbedtls_x509_csr_parse_der()
152 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
159 end = p + len; in mbedtls_x509_csr_parse_der()
160 csr->cri.len = end - csr->cri.p; in mbedtls_x509_csr_parse_der()
165 if( ( ret = x509_csr_get_version( &p, end, &csr->version ) ) != 0 ) in mbedtls_x509_csr_parse_der()
182 csr->subject_raw.p = p; in mbedtls_x509_csr_parse_der()
184 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
191 if( ( ret = mbedtls_x509_get_name( &p, p + len, &csr->subject ) ) != 0 ) in mbedtls_x509_csr_parse_der()
197 csr->subject_raw.len = p - csr->subject_raw.p; in mbedtls_x509_csr_parse_der()
202 if( ( ret = mbedtls_pk_parse_subpubkey( &p, end, &csr->pk ) ) != 0 ) in mbedtls_x509_csr_parse_der()
218 if( ( ret = mbedtls_asn1_get_tag( &p, end, &len, in mbedtls_x509_csr_parse_der()
225 p += len; in mbedtls_x509_csr_parse_der()
227 end = csr->raw.p + csr->raw.len; in mbedtls_x509_csr_parse_der()
233 if( ( ret = mbedtls_x509_get_alg( &p, end, &csr->sig_oid, &sig_params ) ) != 0 ) in mbedtls_x509_csr_parse_der()
247 if( ( ret = mbedtls_x509_get_sig( &p, end, &csr->sig ) ) != 0 ) in mbedtls_x509_csr_parse_der()
253 if( p != end ) in mbedtls_x509_csr_parse_der()
345 char *p; in mbedtls_x509_csr_info() local
348 p = buf; in mbedtls_x509_csr_info()
351 ret = mbedtls_snprintf( p, n, "%sCSR version : %d", in mbedtls_x509_csr_info()
355 ret = mbedtls_snprintf( p, n, "\n%ssubject name : ", prefix ); in mbedtls_x509_csr_info()
357 ret = mbedtls_x509_dn_gets( p, n, &csr->subject ); in mbedtls_x509_csr_info()
360 ret = mbedtls_snprintf( p, n, "\n%ssigned using : ", prefix ); in mbedtls_x509_csr_info()
363 ret = mbedtls_x509_sig_alg_gets( p, n, &csr->sig_oid, csr->sig_pk, csr->sig_md, in mbedtls_x509_csr_info()
373 ret = mbedtls_snprintf( p, n, "\n%s%-" BC "s: %d bits\n", prefix, key_size_str, in mbedtls_x509_csr_info()
414 if( csr->raw.p != NULL ) in mbedtls_x509_csr_free()
416 mbedtls_zeroize( csr->raw.p, csr->raw.len ); in mbedtls_x509_csr_free()
417 mbedtls_free( csr->raw.p ); in mbedtls_x509_csr_free()