Home
last modified time | relevance | path

Searched refs:OBJ_nid2obj (Results 1 – 25 of 60) sorted by relevance

123

/third_party/openssl/crypto/cms/
Dcms_cd.c46 cms->contentType = OBJ_nid2obj(NID_id_smime_ct_compressedData); in cms_CompressedData_create()
52 OBJ_nid2obj(NID_zlib_compression), V_ASN1_UNDEF, NULL); in cms_CompressedData_create()
54 cd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in cms_CompressedData_create()
Dcms_ess.c30 OBJ_nid2obj in IMPLEMENT_ASN1_FUNCTIONS()
232 OBJ_nid2obj in cms_Receipt_verify()
260 OBJ_nid2obj(NID_pkcs9_contentType), in cms_Receipt_verify()
320 OBJ_nid2obj(NID_pkcs9_contentType), in cms_encode_Receipt()
Dcms_dd.c33 cms->contentType = OBJ_nid2obj(NID_pkcs7_digest); in cms_DigestedData_create()
37 dd->encapContentInfo->eContentType = OBJ_nid2obj(NID_pkcs7_data); in cms_DigestedData_create()
Dcms_enc.c71 calg->algorithm = OBJ_nid2obj(EVP_CIPHER_CTX_type(ctx)); in cms_EncryptedContent_init_bio()
179 ec->contentType = OBJ_nid2obj(NID_pkcs7_data); in cms_EncryptedContent_init()
197 cms->contentType = OBJ_nid2obj(NID_pkcs7_encrypted); in CMS_EncryptedData_set1_key()
Dcms_sd.c42 OBJ_nid2obj(NID_pkcs7_data); in cms_signed_data_init()
45 cms->contentType = OBJ_nid2obj(NID_pkcs7_signed); in cms_signed_data_init()
152 OBJ_nid2obj in cms_copy_messageDigest()
819 OBJ_nid2obj(NID_pkcs9_messageDigest), in CMS_SignerInfo_verify_content()
911 X509_ALGOR_set0(alg, OBJ_nid2obj(algnid), in CMS_add_simple_smimecap()
/third_party/openssl/crypto/asn1/
Dp5_pbev2.c62 scheme->algorithm = OBJ_nid2obj(alg_nid);
118 ret->algorithm = OBJ_nid2obj(NID_pbes2);
196 X509_ALGOR_set0(kdf->prf, OBJ_nid2obj(prf_nid), V_ASN1_NULL, NULL); in PKCS5_pbkdf2_set()
205 keyfunc->algorithm = OBJ_nid2obj(NID_id_pbkdf2); in PKCS5_pbkdf2_set()
Da_sign.c62 a->algorithm = OBJ_nid2obj(type->pkey_type); in ASN1_sign()
201 X509_ALGOR_set0(algor1, OBJ_nid2obj(signid), paramtype, NULL); in ASN1_item_sign_ctx()
203 X509_ALGOR_set0(algor2, OBJ_nid2obj(signid), paramtype, NULL); in ASN1_item_sign_ctx()
Dp5_scrypt.c76 scheme->algorithm = OBJ_nid2obj(alg_nid); in PKCS5_pbe2_set_scrypt()
124 ret->algorithm = OBJ_nid2obj(NID_pbes2); in PKCS5_pbe2_set_scrypt()
193 keyfunc->algorithm = OBJ_nid2obj(NID_id_scrypt); in pkcs5_scrypt_set()
Dnsseq.c22 nsseq->type = OBJ_nid2obj(NID_netscape_cert_sequence); in nsseq_cb()
/third_party/openssl/crypto/pkcs7/
Dpk7_lib.c114 obj = OBJ_nid2obj(type); /* will not fail */ in PKCS7_set_type()
140 = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
149 p7->d.enveloped->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
158 p7->d.encrypted->enc_data->content_type = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_set_type()
180 p7->type = OBJ_nid2obj(type); in PKCS7_set0_type_other()
225 alg->algorithm = OBJ_nid2obj(nid); in PKCS7_add_signer()
330 X509_ALGOR_set0(p7i->digest_alg, OBJ_nid2obj(EVP_MD_type(dgst)), in PKCS7_SIGNER_INFO_set()
385 p7->d.digest->md->algorithm = OBJ_nid2obj(EVP_MD_nid(md)); in PKCS7_set_digest()
Dpk7_attr.c60 alg->algorithm = OBJ_nid2obj(nid); in PKCS7_simple_smimecap()
91 coid = OBJ_nid2obj(NID_pkcs7_data); in PKCS7_add_attrib_content_type()
/third_party/openssl/crypto/pkcs12/
Dp12_add.c27 bag->type = OBJ_nid2obj(nid1); in PKCS12_item_pack_safebag()
37 safebag->type = OBJ_nid2obj(nid2); in PKCS12_item_pack_safebag()
54 p7->type = OBJ_nid2obj(NID_pkcs7_data); in PKCS12_pack_p7data()
Dp12_sbag.c116 bag->type = OBJ_nid2obj(NID_keyBag); in PKCS12_SAFEBAG_create0_p8inf()
132 bag->type = OBJ_nid2obj(NID_pkcs8ShroudedKeyBag); in PKCS12_SAFEBAG_create0_pkcs8()
Dp12_init.c27 pkcs12->authsafes->type = OBJ_nid2obj(mode); in PKCS12_init()
/third_party/openssl/crypto/rsa/
Drsa_ameth.c87 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode()
171 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in rsa_priv_encode()
531 X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaEncryption), V_ASN1_NULL, 0); in rsa_pkey_ctrl()
566 X509_ALGOR_set0(*palg, OBJ_nid2obj(NID_mgf1), V_ASN1_SEQUENCE, stmp); in rsa_md_to_mgf1()
812 X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaEncryption), V_ASN1_NULL, 0); in rsa_cms_sign()
821 X509_ALGOR_set0(alg, OBJ_nid2obj(EVP_PKEY_RSA_PSS), V_ASN1_SEQUENCE, os); in rsa_cms_sign()
849 X509_ALGOR_set0(alg2, OBJ_nid2obj(EVP_PKEY_RSA_PSS), in rsa_item_sign()
852 X509_ALGOR_set0(alg1, OBJ_nid2obj(EVP_PKEY_RSA_PSS), in rsa_item_sign()
1004 X509_ALGOR_set0(alg, OBJ_nid2obj(NID_rsaEncryption), V_ASN1_NULL, 0); in rsa_cms_encrypt()
1036 X509_ALGOR_set0(oaep->pSourceFunc, OBJ_nid2obj(NID_pSpecified), in rsa_cms_encrypt()
[all …]
/third_party/openssl/crypto/ec/
Dec_ameth.c38 ASN1_OBJECT *asn1obj = OBJ_nid2obj(nid); in eckey_param2type()
97 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(EVP_PKEY_EC), in eckey_pub_encode()
274 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(NID_X9_62_id_ecPublicKey), 0, in eckey_priv_encode()
491 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in ec_pkey_ctrl()
507 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in ec_pkey_ctrl()
849 if (aoid == OBJ_nid2obj(NID_undef)) { in ecdh_cms_encrypt()
870 X509_ALGOR_set0(talg, OBJ_nid2obj(NID_X9_62_id_ecPublicKey), in ecdh_cms_encrypt()
919 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in ecdh_cms_encrypt()
954 X509_ALGOR_set0(talg, OBJ_nid2obj(kdf_nid), V_ASN1_SEQUENCE, wrap_str); in ecdh_cms_encrypt()
Decx_meth.c141 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
220 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in ecx_priv_encode()
532 X509_ALGOR_set0(alg1, OBJ_nid2obj(NID_ED25519), V_ASN1_UNDEF, NULL); in ecd_item_sign25519()
534 X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_ED25519), V_ASN1_UNDEF, NULL); in ecd_item_sign25519()
552 X509_ALGOR_set0(alg1, OBJ_nid2obj(NID_ED448), V_ASN1_UNDEF, NULL); in ecd_item_sign448()
554 X509_ALGOR_set0(alg2, OBJ_nid2obj(NID_ED448), V_ASN1_UNDEF, NULL); in ecd_item_sign448()
/third_party/openssl/doc/man3/
DOBJ_nid2obj.pod6 OBJ_length, OBJ_get0_data, OBJ_nid2obj, OBJ_nid2ln,
15 ASN1_OBJECT *OBJ_nid2obj(int n);
55 OBJ_nid2obj(), OBJ_nid2ln() and OBJ_nid2sn() convert the NID I<n> to
137 OBJ_nid2obj() returns an B<ASN1_OBJECT> structure or B<NULL> is an
157 ASN1_OBJECT *o = OBJ_nid2obj(NID_commonName);
167 ASN1_OBJECT *obj = OBJ_nid2obj(new_nid);
/third_party/openssl/crypto/dh/
Ddh_ameth.c133 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in dh_pub_encode()
236 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in dh_priv_encode()
727 OBJ_nid2obj(EVP_CIPHER_type(kekcipher))) in dh_cms_set_shared_info()
804 if (aoid == OBJ_nid2obj(NID_undef)) { in dh_cms_encrypt()
819 X509_ALGOR_set0(talg, OBJ_nid2obj(NID_dhpublicnumber), in dh_cms_encrypt()
852 if (EVP_PKEY_CTX_set0_dh_kdf_oid(pctx, OBJ_nid2obj(wrap_nid)) <= 0) in dh_cms_encrypt()
861 wrap_alg->algorithm = OBJ_nid2obj(wrap_nid); in dh_cms_encrypt()
899 X509_ALGOR_set0(talg, OBJ_nid2obj(NID_id_smime_alg_ESDH), in dh_cms_encrypt()
/third_party/openssl/crypto/x509/
Dx509name.c23 obj = OBJ_nid2obj(nid); in X509_NAME_get_text_by_NID()
60 obj = OBJ_nid2obj(nid); in X509_NAME_get_index_by_NID()
269 obj = OBJ_nid2obj(nid); in X509_NAME_ENTRY_create_by_NID()
Dx509_v3.c32 obj = OBJ_nid2obj(nid); in X509v3_get_ext_by_NID()
143 obj = OBJ_nid2obj(nid); in X509_EXTENSION_create_by_NID()
Dx_attrib.c42 if ((oid = OBJ_nid2obj(nid)) == NULL)
/third_party/openssl/apps/
Dcrl2p7.c117 p7->type = OBJ_nid2obj(NID_pkcs7_signed); in crl2pkcs7_main()
119 p7s->contents->type = OBJ_nid2obj(NID_pkcs7_data); in crl2pkcs7_main()
/third_party/openssl/crypto/dsa/
Ddsa_ameth.c118 aobj = OBJ_nid2obj(EVP_PKEY_DSA); in dsa_pub_encode()
242 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(NID_dsa), 0, in dsa_priv_encode()
479 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in dsa_pkey_ctrl()
495 X509_ALGOR_set0(alg2, OBJ_nid2obj(snid), V_ASN1_UNDEF, 0); in dsa_pkey_ctrl()
/third_party/openssl/test/
Dasn1_internal_test.c121 obj = OBJ_nid2obj(INT_MAX); in test_nid2obj_nonexist()

123