Home
last modified time | relevance | path

Searched refs:oct (Results 1 – 19 of 19) sorted by relevance

/openssl/crypto/asn1/
H A Dasn_pack.c20 if (oct == NULL || *oct == NULL) { in ASN1_item_pack()
26 octmp = *oct; in ASN1_item_pack()
40 if (oct != NULL && *oct == NULL) in ASN1_item_pack()
41 *oct = octmp; in ASN1_item_pack()
45 if (oct == NULL || *oct == NULL) in ASN1_item_pack()
52 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it) in ASN1_item_unpack() argument
57 p = oct->data; in ASN1_item_unpack()
58 if ((ret = ASN1_item_d2i(NULL, &p, oct->length, it)) == NULL) in ASN1_item_unpack()
63 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it, in ASN1_item_unpack_ex() argument
69 p = oct->data; in ASN1_item_unpack_ex()
[all …]
H A Devp_asn1.c57 oct->data = data; in asn1_type_init_oct()
58 oct->type = V_ASN1_OCTET_STRING; in asn1_type_init_oct()
59 oct->length = len; in asn1_type_init_oct()
60 oct->flags = 0; in asn1_type_init_oct()
84 ASN1_OCTET_STRING *oct; member
98 ASN1_OCTET_STRING oct; variable
101 atmp.oct = &oct;
102 asn1_type_init_oct(&oct, data, len);
135 ASN1_OCTET_STRING *oct; member
154 ASN1_OCTET_STRING oct; variable
[all …]
H A Da_type.c111 ASN1_OCTET_STRING *oct; in ASN1_TYPE_pack_sequence() local
114 oct = ASN1_item_pack(s, it, NULL); in ASN1_TYPE_pack_sequence()
115 if (oct == NULL) in ASN1_TYPE_pack_sequence()
123 ASN1_OCTET_STRING_free(oct); in ASN1_TYPE_pack_sequence()
129 ASN1_TYPE_set(rt, V_ASN1_SEQUENCE, oct); in ASN1_TYPE_pack_sequence()
/openssl/crypto/x509/
H A Dv3_skid.c28 const ASN1_OCTET_STRING *oct) in i2s_ASN1_OCTET_STRING() argument
30 return OPENSSL_buf2hexstr(oct->data, oct->length); in i2s_ASN1_OCTET_STRING()
36 ASN1_OCTET_STRING *oct; in s2i_ASN1_OCTET_STRING() local
39 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in s2i_ASN1_OCTET_STRING()
45 ASN1_OCTET_STRING_free(oct); in s2i_ASN1_OCTET_STRING()
49 oct->length = length; in s2i_ASN1_OCTET_STRING()
51 return oct; in s2i_ASN1_OCTET_STRING()
57 ASN1_OCTET_STRING *oct; in ossl_x509_pubkey_hash() local
74 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in ossl_x509_pubkey_hash()
83 return oct; in ossl_x509_pubkey_hash()
[all …]
H A Dv3_sxnet.c222 ASN1_OCTET_STRING *oct; in SXNET_get_id_asc() local
228 oct = SXNET_get_id_INTEGER(sx, izone); in SXNET_get_id_asc()
230 return oct; in SXNET_get_id_asc()
236 ASN1_OCTET_STRING *oct; in SXNET_get_id_ulong() local
244 oct = SXNET_get_id_INTEGER(sx, izone); in SXNET_get_id_ulong()
246 return oct; in SXNET_get_id_ulong()
H A Dv3_conf.c245 ASN1_OCTET_STRING *oct = NULL; in v3_generic_extension() local
265 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in v3_generic_extension()
270 oct->data = ext_der; in v3_generic_extension()
271 oct->length = ext_len; in v3_generic_extension()
274 extension = X509_EXTENSION_create_by_OBJ(NULL, obj, crit, oct); in v3_generic_extension()
278 ASN1_OCTET_STRING_free(oct); in v3_generic_extension()
/openssl/crypto/pkcs12/
H A Dp12_decr.c137 const ASN1_OCTET_STRING *oct, int zbuf, in PKCS12_item_decrypt_d2i_ex() argument
146 if (!PKCS12_pbe_crypt_ex(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i_ex()
166 const ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument
168 return PKCS12_item_decrypt_d2i_ex(algor, it, pass, passlen, oct, zbuf, in PKCS12_item_decrypt_d2i()
184 ASN1_OCTET_STRING *oct = NULL; in PKCS12_item_i2d_encrypt_ex() local
188 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in PKCS12_item_i2d_encrypt_ex()
197 if (!PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt_ex()
198 &oct->length, 1, ctx, propq)) { in PKCS12_item_i2d_encrypt_ex()
206 return oct; in PKCS12_item_i2d_encrypt_ex()
208 ASN1_OCTET_STRING_free(oct); in PKCS12_item_i2d_encrypt_ex()
/openssl/crypto/ct/
H A Dct_oct.c373 ASN1_OCTET_STRING *oct = NULL; in STACK_OF() local
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()
385 ASN1_OCTET_STRING_free(oct); in STACK_OF()
391 ASN1_OCTET_STRING oct; in i2d_SCT_LIST() local
394 oct.data = NULL; in i2d_SCT_LIST()
395 if ((oct.length = i2o_SCT_LIST(a, &oct.data)) == -1) in i2d_SCT_LIST()
398 len = i2d_ASN1_OCTET_STRING(&oct, out); in i2d_SCT_LIST()
399 OPENSSL_free(oct.data); in i2d_SCT_LIST()
/openssl/crypto/ec/
H A Decx_backend.c235 ASN1_OCTET_STRING *oct = NULL; in ossl_ecx_key_from_pkcs8() local
241 oct = d2i_ASN1_OCTET_STRING(NULL, &p, plen); in ossl_ecx_key_from_pkcs8()
242 if (oct == NULL) { in ossl_ecx_key_from_pkcs8()
246 p = ASN1_STRING_get0_data(oct); in ossl_ecx_key_from_pkcs8()
247 plen = ASN1_STRING_length(oct); in ossl_ecx_key_from_pkcs8()
256 ASN1_OCTET_STRING_free(oct); in ossl_ecx_key_from_pkcs8()
H A Decx_meth.c101 ASN1_OCTET_STRING oct; in ecx_priv_encode() local
110 oct.data = ecxkey->privkey; in ecx_priv_encode()
111 oct.length = KEYLEN(pkey); in ecx_priv_encode()
112 oct.flags = 0; in ecx_priv_encode()
114 penclen = i2d_ASN1_OCTET_STRING(&oct, &penc); in ecx_priv_encode()
/openssl/doc/man3/
H A DASN1_item_d2i_bio.pod30 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct);
32 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);
34 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it,
78 I<*oct> is not NULL then this is used to store the returned result, otherwise
79 a new B<ASN1_STRING> object is created. If I<oct> is not NULL and I<*oct> is NULL
80 then the returned return is also set into I<*oct>. If there is an error the optional
82 ASN1_STRING_set0(*oct, NULL, 0) is called internally.
85 I<oct> using the ASN.1 template I<it>.
H A DPKCS12_item_decrypt_d2i.pod15 const ASN1_OCTET_STRING *oct, int zbuf);
18 const ASN1_OCTET_STRING *oct, int zbuf,
H A Ds2i_ASN1_IA5STRING.pod27 const ASN1_OCTET_STRING *oct);
/openssl/providers/implementations/encode_decode/
H A Ddecode_epki2pki.c124 const ASN1_OCTET_STRING *oct; in epki2pki_decode() local
128 X509_SIG_get0(p8, &alg, &oct); in epki2pki_decode()
130 oct->data, oct->length, in epki2pki_decode()
H A Dencode_key2any.c783 ASN1_OCTET_STRING oct; in ecx_pki_priv_to_der() local
791 oct.data = ecxkey->privkey; in ecx_pki_priv_to_der()
792 oct.length = ecxkey->keylen; in ecx_pki_priv_to_der()
793 oct.flags = 0; in ecx_pki_priv_to_der()
795 keybloblen = i2d_ASN1_OCTET_STRING(&oct, pder); in ecx_pki_priv_to_der()
/openssl/crypto/store/
H A Dstore_result.c344 const ASN1_OCTET_STRING *oct = NULL; in try_key_value_legacy() local
347 X509_SIG_get0(p8, &alg, &oct); in try_key_value_legacy()
354 oct->data, oct->length, in try_key_value_legacy()
/openssl/test/
H A Dtls-provider.c1276 ASN1_OCTET_STRING *oct = NULL; in xor_key_from_pkcs8() local
1282 oct = d2i_ASN1_OCTET_STRING(NULL, &p, plen); in xor_key_from_pkcs8()
1283 if (oct == NULL) { in xor_key_from_pkcs8()
1287 p = ASN1_STRING_get0_data(oct); in xor_key_from_pkcs8()
1288 plen = ASN1_STRING_length(oct); in xor_key_from_pkcs8()
1293 ASN1_OCTET_STRING_free(oct); in xor_key_from_pkcs8()
1684 ASN1_OCTET_STRING oct; in xorx_pki_priv_to_der() local
1695 oct.data = buf; in xorx_pki_priv_to_der()
1696 oct.length = XOR_KEY_SIZE; in xorx_pki_priv_to_der()
1697 oct.flags = 0; in xorx_pki_priv_to_der()
[all …]
/openssl/include/openssl/
H A Dpkcs12.h.in218 const ASN1_OCTET_STRING *oct, int zbuf);
221 const ASN1_OCTET_STRING *oct, int zbuf,
H A Dasn1.h.in834 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it);
835 void *ASN1_item_unpack_ex(const ASN1_STRING *oct, const ASN1_ITEM *it,
839 ASN1_OCTET_STRING **oct);

Completed in 77 milliseconds