Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 25 of 26) sorted by relevance

12

/openssl/crypto/cms/
H A Dcms_env.c188 if (ri != NULL) { in ossl_cms_RecipientInfos_set_cmsctx()
214 return ri->type; in CMS_RecipientInfo_type()
337 if (!ri->d.ktri) in cms_RecipientInfo_ktri_init()
341 ktri = ri->d.ktri; in cms_RecipientInfo_ktri_init()
398 if (ri == NULL) { in CMS_add1_recipient()
433 return ri; in CMS_add1_recipient()
457 ktri = ri->d.ktri; in CMS_RecipientInfo_ktri_get0_algs()
478 ktri = ri->d.ktri; in CMS_RecipientInfo_ktri_get0_signer_id()
522 ktri = ri->d.ktri; in cms_RecipientInfo_ktri_encrypt()
739 if (!ri) { in CMS_add0_recipient_key()
[all …]
H A Dcms_kari.c32 if (ri->type != CMS_RECIPINFO_AGREE) { in CMS_RecipientInfo_kari_get0_alg()
39 *pukm = ri->d.kari->ukm; in CMS_RecipientInfo_kari_get0_alg()
48 if (ri->type != CMS_RECIPINFO_AGREE) { in STACK_OF()
64 if (ri->type != CMS_RECIPINFO_AGREE) { in CMS_RecipientInfo_kari_get0_orig_id()
68 oik = ri->d.kari->originator; in CMS_RecipientInfo_kari_get0_orig_id()
105 oik = ri->d.kari->originator; in CMS_RecipientInfo_kari_orig_id_cmp()
201 return ri->d.kari->ctx; in CMS_RecipientInfo_kari_get0_ctx()
350 if (ri->d.kari == NULL) in ossl_cms_RecipientInfo_kari_init()
352 ri->type = CMS_RECIPINFO_AGREE; in ossl_cms_RecipientInfo_kari_init()
354 kari = ri->d.kari; in ossl_cms_RecipientInfo_kari_init()
[all …]
H A Dcms_pwri.c26 if (ri->type != CMS_RECIPINFO_PASS) { in CMS_RecipientInfo_set0_password()
31 pwri = ri->d.pwri; in CMS_RecipientInfo_set0_password()
47 CMS_RecipientInfo *ri = NULL; in CMS_add0_recipient_password() local
129 ri = M_ASN1_new_of(CMS_RecipientInfo); in CMS_add0_recipient_password()
130 if (ri == NULL) { in CMS_add0_recipient_password()
136 if (ri->d.pwri == NULL) { in CMS_add0_recipient_password()
140 ri->type = CMS_RECIPINFO_PASS; in CMS_add0_recipient_password()
142 pwri = ri->d.pwri; in CMS_add0_recipient_password()
184 return ri; in CMS_add0_recipient_password()
188 if (ri) in CMS_add0_recipient_password()
[all …]
H A Dcms_dh.c94 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in dh_cms_set_shared_info()
118 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_set_shared_info()
162 static int dh_cms_decrypt(CMS_RecipientInfo *ri) in dh_cms_decrypt() argument
164 EVP_PKEY_CTX *pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in dh_cms_decrypt()
184 if (!dh_cms_set_shared_info(pctx, ri)) { in dh_cms_decrypt()
191 static int dh_cms_encrypt(CMS_RecipientInfo *ri) in dh_cms_encrypt() argument
209 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in dh_cms_encrypt()
266 if (!CMS_RecipientInfo_kari_get0_alg(ri, &talg, &ukm)) in dh_cms_encrypt()
270 ctx = CMS_RecipientInfo_kari_get0_ctx(ri); in dh_cms_encrypt()
336 return dh_cms_decrypt(ri); in ossl_cms_dh_envelope()
[all …]
H A Dcms_ec.c171 if (!CMS_RecipientInfo_kari_get0_alg(ri, &alg, &ukm)) in ecdh_cms_set_shared_info()
187 kekctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_set_shared_info()
220 static int ecdh_cms_decrypt(CMS_RecipientInfo *ri) in ecdh_cms_decrypt() argument
224 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in ecdh_cms_decrypt()
243 if (!ecdh_cms_set_shared_info(pctx, ri)) { in ecdh_cms_decrypt()
250 static int ecdh_cms_encrypt(CMS_RecipientInfo *ri) in ecdh_cms_encrypt() argument
267 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in ecdh_cms_encrypt()
320 if (!CMS_RecipientInfo_kari_get0_alg(ri, &talg, &ukm)) in ecdh_cms_encrypt()
328 ctx = CMS_RecipientInfo_kari_get0_ctx(ri); in ecdh_cms_encrypt()
387 return ecdh_cms_decrypt(ri); in ossl_cms_ecdh_envelope()
[all …]
H A Dcms_smime.c692 reks = CMS_RecipientInfo_kari_get0_reks(ri); in cms_kari_set1_pkey_and_peer()
718 CMS_RecipientInfo *ri; in CMS_decrypt_set1_pkey_and_peer() local
742 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_pkey_and_peer()
743 ri_type = CMS_RecipientInfo_type(ri); in CMS_decrypt_set1_pkey_and_peer()
757 CMS_RecipientInfo_set0_pkey(ri, pk); in CMS_decrypt_set1_pkey_and_peer()
759 CMS_RecipientInfo_set0_pkey(ri, NULL); in CMS_decrypt_set1_pkey_and_peer()
803 CMS_RecipientInfo *ri; in CMS_decrypt_set1_key() local
808 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_key()
839 CMS_RecipientInfo *ri; in CMS_decrypt_set1_password() local
851 ri = sk_CMS_RecipientInfo_value(ris, i); in CMS_decrypt_set1_password()
[all …]
H A Dcms_rsa.c39 static int rsa_cms_decrypt(CMS_RecipientInfo *ri) in rsa_cms_decrypt() argument
50 pkctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in rsa_cms_decrypt()
53 if (!CMS_RecipientInfo_ktri_get0_algs(ri, NULL, NULL, &cmsalg)) in rsa_cms_decrypt()
114 static int rsa_cms_encrypt(CMS_RecipientInfo *ri) in rsa_cms_encrypt() argument
121 EVP_PKEY_CTX *pkctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in rsa_cms_encrypt()
125 if (CMS_RecipientInfo_ktri_get0_algs(ri, NULL, NULL, &alg) <= 0) in rsa_cms_encrypt()
181 int ossl_cms_rsa_envelope(CMS_RecipientInfo *ri, int decrypt) in ossl_cms_rsa_envelope() argument
186 return rsa_cms_decrypt(ri); in ossl_cms_rsa_envelope()
189 return rsa_cms_encrypt(ri); in ossl_cms_rsa_envelope()
H A Dcms_local.h456 int ossl_cms_env_asn1_ctrl(CMS_RecipientInfo *ri, int cmd);
463 int ossl_cms_RecipientInfo_kari_init(CMS_RecipientInfo *ri, X509 *recip,
469 CMS_RecipientInfo *ri);
473 CMS_RecipientInfo *ri, int en_de);
483 int ossl_cms_dh_envelope(CMS_RecipientInfo *ri, int decrypt);
484 int ossl_cms_ecdh_envelope(CMS_RecipientInfo *ri, int decrypt);
485 int ossl_cms_rsa_envelope(CMS_RecipientInfo *ri, int decrypt);
H A Dcms_asn1.c214 CMS_RecipientInfo *ri = (CMS_RecipientInfo *)*pval; variable
215 if (ri->type == CMS_RECIPINFO_TRANS) {
216 CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
220 } else if (ri->type == CMS_RECIPINFO_KEK) {
221 CMS_KEKRecipientInfo *kekri = ri->d.kekri;
223 } else if (ri->type == CMS_RECIPINFO_PASS) {
224 CMS_PasswordRecipientInfo *pwri = ri->d.pwri;
/openssl/crypto/bf/
H A Dbf_skey.c25 BF_LONG *p, ri, in[2]; in BF_set_key() local
37 ri = *(d++); in BF_set_key()
41 ri <<= 8; in BF_set_key()
42 ri |= *(d++); in BF_set_key()
46 ri <<= 8; in BF_set_key()
47 ri |= *(d++); in BF_set_key()
51 ri <<= 8; in BF_set_key()
52 ri |= *(d++); in BF_set_key()
56 p[i] ^= ri; in BF_set_key()
/openssl/doc/man3/
H A DCMS_get0_RecipientInfos.pod19 int CMS_RecipientInfo_type(CMS_RecipientInfo *ri);
21 int CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,
25 int CMS_RecipientInfo_ktri_cert_cmp(CMS_RecipientInfo *ri, X509 *cert);
26 int CMS_RecipientInfo_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pkey);
27 int CMS_RecipientInfo_kari_set0_pkey_and_peer(CMS_RecipientInfo *ri,
29 int CMS_RecipientInfo_kari_set0_pkey(CMS_RecipientInfo *ri, EVP_PKEY *pk);
35 int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,
37 int CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,
40 int CMS_RecipientInfo_decrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
41 int CMS_RecipientInfo_encrypt(CMS_ContentInfo *cms, CMS_RecipientInfo *ri);
[all …]
/openssl/crypto/bn/
H A Dbn_mont.c197 BN_mask_bits(t1, mont->ri); in bn_from_mont_fixed_top()
201 BN_mask_bits(t2, mont->ri); in bn_from_mont_fixed_top()
207 if (!BN_rshift(ret, t2, mont->ri)) in bn_from_mont_fixed_top()
242 ctx->ri = 0; in BN_MONT_CTX_init()
372 mont->ri = BN_num_bits(&mont->N); in BN_MONT_CTX_set()
374 if (!BN_set_bit(R, mont->ri)) in BN_MONT_CTX_set()
379 if (!BN_lshift(Ri, Ri, mont->ri)) in BN_MONT_CTX_set()
393 if (!BN_set_bit(&(mont->RR), mont->ri * 2)) in BN_MONT_CTX_set()
420 to->ri = from->ri; in BN_MONT_CTX_copy()
476 ctx->ri = ri; in ossl_bn_mont_ctx_set()
[all …]
H A Dbn_local.h260 int ri; /* number of bits in R */ member
/openssl/crypto/bn/asm/
H A Dx86_64-mont.pl734 sub 0($np),@ri[0]
737 sbb 8($np),@ri[1]
742 sbb 16($np,$i,8),@ri[2]
744 mov 40($ap,$i,8),@ri[1]
745 sbb 24($np,$i,8),@ri[3]
748 sbb 32($np,$i,8),@ri[0]
749 mov 48($ap,$i,8),@ri[2]
750 mov 56($ap,$i,8),@ri[3]
751 sbb 40($np,$i,8),@ri[1]
758 sbb 16($np,$i,8),@ri[2]
[all …]
H A Dx86_64-mont5.pl1056 mov 8*0($tp),@ri[0]
1057 mov 8*1($tp),@ri[1]
1059 sbb 16*0($np),@ri[0]
1060 mov 8*2($tp),@ri[2]
1061 sbb 16*1($np),@ri[1]
1062 mov 3*8($tp),@ri[3]
1064 sbb 16*2($np),@ri[2]
1065 mov @ri[0],8*0($rp)
1068 mov @ri[1],8*1($rp)
1069 mov @ri[2],8*2($rp)
[all …]
/openssl/include/openssl/
H A Dcms.h.in198 int CMS_RecipientInfo_type(CMS_RecipientInfo *ri);
219 int CMS_RecipientInfo_ktri_get0_algs(CMS_RecipientInfo *ri,
222 int CMS_RecipientInfo_ktri_get0_signer_id(CMS_RecipientInfo *ri,
234 int CMS_RecipientInfo_kekri_get0_id(CMS_RecipientInfo *ri,
241 int CMS_RecipientInfo_set0_key(CMS_RecipientInfo *ri,
244 int CMS_RecipientInfo_kekri_id_cmp(CMS_RecipientInfo *ri,
247 int CMS_RecipientInfo_set0_password(CMS_RecipientInfo *ri,
369 int CMS_RecipientInfo_kari_get0_alg(CMS_RecipientInfo *ri,
373 *CMS_RecipientInfo_kari_get0_reks(CMS_RecipientInfo *ri);
375 int CMS_RecipientInfo_kari_get0_orig_id(CMS_RecipientInfo *ri,
[all …]
H A Dpkcs7.h.in297 void PKCS7_RECIP_INFO_get0_alg(PKCS7_RECIP_INFO *ri, X509_ALGOR **penc);
298 int PKCS7_add_recipient_info(PKCS7 *p7, PKCS7_RECIP_INFO *ri);
/openssl/crypto/pkcs7/
H A Dpk7_doit.c154 const PKCS7_CTX *ctx = ri->ctx; in pkcs7_encode_rinfo()
198 const PKCS7_CTX *ctx = ri->ctx; in pkcs7_decrypt_rinfo()
216 ri->enc_key->data, ri->enc_key->length); in pkcs7_decrypt_rinfo()
245 PKCS7_RECIP_INFO *ri = NULL; in PKCS7_dataInit() local
450 PKCS7_RECIP_INFO *ri = NULL; in PKCS7_dataDecode() local
605 ri = NULL; in PKCS7_dataDecode()
607 if (ri == NULL) { in PKCS7_dataDecode()
622 ri->ctx = p7_ctx; in PKCS7_dataDecode()
629 ri->ctx = p7_ctx; in PKCS7_dataDecode()
1190 PKCS7_RECIP_INFO *ri; in PKCS7_get_issuer_and_serial() local
[all …]
H A Dpk7_lib.c465 ossl_x509_set0_libctx(ri->cert, libctx, propq); in ossl_pkcs7_resolve_libctx()
561 *penc = ri->key_enc_algor; in PKCS7_RECIP_INFO_get0_alg()
566 PKCS7_RECIP_INFO *ri; in PKCS7_add_recipient() local
568 if ((ri = PKCS7_RECIP_INFO_new()) == NULL) in PKCS7_add_recipient()
570 if (PKCS7_RECIP_INFO_set(ri, x509) <= 0) in PKCS7_add_recipient()
572 if (!PKCS7_add_recipient_info(p7, ri)) in PKCS7_add_recipient()
574 ri->ctx = ossl_pkcs7_get0_ctx(p7); in PKCS7_add_recipient()
575 return ri; in PKCS7_add_recipient()
577 PKCS7_RECIP_INFO_free(ri); in PKCS7_add_recipient()
599 if (!sk_PKCS7_RECIP_INFO_push(sk, ri)) in PKCS7_add_recipient_info()
[all …]
H A Dpk7_asn1.c184 PKCS7_RECIP_INFO *ri = (PKCS7_RECIP_INFO *)*pval; variable
185 X509_free(ri->cert);
/openssl/crypto/x509/
H A Dx509_req.c25 X509_REQ_INFO *ri; in X509_to_X509_REQ() local
35 ri = &ret->req_info; in X509_to_X509_REQ()
37 ri->version->length = 1; in X509_to_X509_REQ()
38 ri->version->data = OPENSSL_malloc(1); in X509_to_X509_REQ()
39 if (ri->version->data == NULL) in X509_to_X509_REQ()
41 ri->version->data[0] = 0; /* version == 0 */ in X509_to_X509_REQ()
/openssl/crypto/ocsp/
H A Docsp_srv.c94 OCSP_REVOKEDINFO *ri; in OCSP_basic_add1_status() local
122 if ((cs->value.revoked = ri = OCSP_REVOKEDINFO_new()) == NULL) in OCSP_basic_add1_status()
124 if (!ASN1_TIME_to_generalizedtime(revtime, &ri->revocationTime)) in OCSP_basic_add1_status()
127 if ((ri->revocationReason = ASN1_ENUMERATED_new()) == NULL) in OCSP_basic_add1_status()
129 if (!(ASN1_ENUMERATED_set(ri->revocationReason, reason))) in OCSP_basic_add1_status()
/openssl/crypto/crmf/
H A Dcrmf_lib.c216 OSSL_CRMF_ATTRIBUTETYPEANDVALUE *ri) in IMPLEMENT_CRMF_CTRL_FUNC()
220 if (crm == NULL || ri == NULL) { in IMPLEMENT_CRMF_CTRL_FUNC()
229 if (!sk_OSSL_CRMF_ATTRIBUTETYPEANDVALUE_push(crm->regInfo, ri)) in IMPLEMENT_CRMF_CTRL_FUNC()
/openssl/apps/
H A Dcms.c982 CMS_RecipientInfo *ri; in cms_main() local
995 ri = CMS_add1_recipient(cms, x, key, originator, tflags); in cms_main()
996 if (ri == NULL) in cms_main()
999 pctx = CMS_RecipientInfo_get0_pkey_ctx(ri); in cms_main()
1011 if (CMS_RecipientInfo_type(ri) == CMS_RECIPINFO_AGREE in cms_main()
1014 wctx = CMS_RecipientInfo_kari_get0_ctx(ri); in cms_main()
/openssl/include/crypto/
H A Dbn.h139 int ossl_bn_mont_ctx_set(BN_MONT_CTX *ctx, const BIGNUM *modulus, int ri,

Completed in 134 milliseconds

12