Lines Matching refs:p
28 const unsigned char *p; in o2i_SCT_signature() local
46 p = *in; in o2i_SCT_signature()
48 sct->hash_alg = *p++; in o2i_SCT_signature()
49 sct->sig_alg = *p++; in o2i_SCT_signature()
55 n2s(p, siglen); in o2i_SCT_signature()
56 len_remaining -= (p - *in); in o2i_SCT_signature()
62 if (SCT_set1_signature(sct, p, siglen) != 1) in o2i_SCT_signature()
65 *in = p + siglen; in o2i_SCT_signature()
73 const unsigned char *p; in o2i_SCT() local
83 p = *in; in o2i_SCT()
85 sct->version = *p; in o2i_SCT()
103 p++; in o2i_SCT()
104 sct->log_id = OPENSSL_memdup(p, CT_V1_HASHLEN); in o2i_SCT()
108 p += CT_V1_HASHLEN; in o2i_SCT()
110 n2l8(p, sct->timestamp); in o2i_SCT()
112 n2s(p, len2); in o2i_SCT()
118 sct->ext = OPENSSL_memdup(p, len2); in o2i_SCT()
123 p += len2; in o2i_SCT()
126 sig_len = o2i_SCT_signature(sct, &p, len); in o2i_SCT()
132 *in = p + len; in o2i_SCT()
135 sct->sct = OPENSSL_memdup(p, len); in o2i_SCT()
139 *in = p + len; in o2i_SCT()
156 unsigned char *p = NULL, *pstart = NULL; in i2o_SCT_signature() local
177 p = *out; in i2o_SCT_signature()
180 pstart = p = OPENSSL_malloc(len); in i2o_SCT_signature()
181 if (p == NULL) in i2o_SCT_signature()
183 *out = p; in i2o_SCT_signature()
186 *p++ = sct->hash_alg; in i2o_SCT_signature()
187 *p++ = sct->sig_alg; in i2o_SCT_signature()
188 s2n(sct->sig_len, p); in i2o_SCT_signature()
189 memcpy(p, sct->sig, sct->sig_len); in i2o_SCT_signature()
201 unsigned char *p = NULL, *pstart = NULL; in i2o_SCT() local
222 p = *out; in i2o_SCT()
225 pstart = p = OPENSSL_malloc(len); in i2o_SCT()
226 if (p == NULL) in i2o_SCT()
228 *out = p; in i2o_SCT()
232 *p++ = sct->version; in i2o_SCT()
233 memcpy(p, sct->log_id, CT_V1_HASHLEN); in i2o_SCT()
234 p += CT_V1_HASHLEN; in i2o_SCT()
235 l2n8(sct->timestamp, p); in i2o_SCT()
236 s2n(sct->ext_len, p); in i2o_SCT()
238 memcpy(p, sct->ext, sct->ext_len); in i2o_SCT()
239 p += sct->ext_len; in i2o_SCT()
241 if (i2o_SCT_signature(sct, &p) <= 0) in i2o_SCT()
244 memcpy(p, sct->sct, len); in i2o_SCT()
321 unsigned char *p = NULL, *p2; in i2o_SCT_LIST() local
333 p = *pp + 2; in i2o_SCT_LIST()
339 p2 = p; in i2o_SCT_LIST()
340 p += 2; in i2o_SCT_LIST()
341 if ((sct_len = i2o_SCT(sk_SCT_value(a, i), &p)) == -1) in i2o_SCT_LIST()
355 p = *pp; in i2o_SCT_LIST()
356 s2n(len2 - 2, p); in i2o_SCT_LIST()
375 const unsigned char *p; in STACK_OF() local
377 p = *pp; in STACK_OF()
378 if (d2i_ASN1_OCTET_STRING(&oct, &p, len) == NULL) in STACK_OF()
381 p = oct->data; in STACK_OF()
382 if ((sk = o2i_SCT_LIST(a, &p, oct->length)) != NULL) in STACK_OF()