• Home
  • Raw
  • Download

Lines Matching refs:pwri

24     CMS_PasswordRecipientInfo *pwri;  in CMS_RecipientInfo_set0_password()  local
30 pwri = ri->d.pwri; in CMS_RecipientInfo_set0_password()
31 pwri->pass = pass; in CMS_RecipientInfo_set0_password()
34 pwri->passlen = passlen; in CMS_RecipientInfo_set0_password()
47 CMS_PasswordRecipientInfo *pwri; in CMS_add0_recipient_password() local
120 ri->d.pwri = M_ASN1_new_of(CMS_PasswordRecipientInfo); in CMS_add0_recipient_password()
121 if (ri->d.pwri == NULL) in CMS_add0_recipient_password()
125 pwri = ri->d.pwri; in CMS_add0_recipient_password()
127 X509_ALGOR_free(pwri->keyEncryptionAlgorithm); in CMS_add0_recipient_password()
128 pwri->keyEncryptionAlgorithm = X509_ALGOR_new(); in CMS_add0_recipient_password()
129 if (pwri->keyEncryptionAlgorithm == NULL) in CMS_add0_recipient_password()
131 pwri->keyEncryptionAlgorithm->algorithm = OBJ_nid2obj(wrap_nid); in CMS_add0_recipient_password()
132 pwri->keyEncryptionAlgorithm->parameter = ASN1_TYPE_new(); in CMS_add0_recipient_password()
133 if (pwri->keyEncryptionAlgorithm->parameter == NULL) in CMS_add0_recipient_password()
137 &pwri->keyEncryptionAlgorithm->parameter-> in CMS_add0_recipient_password()
140 pwri->keyEncryptionAlgorithm->parameter->type = V_ASN1_SEQUENCE; in CMS_add0_recipient_password()
147 pwri->keyDerivationAlgorithm = PKCS5_pbkdf2_set(iter, NULL, 0, -1, -1); in CMS_add0_recipient_password()
149 if (!pwri->keyDerivationAlgorithm) in CMS_add0_recipient_password()
153 pwri->version = 0; in CMS_add0_recipient_password()
280 CMS_PasswordRecipientInfo *pwri; in cms_RecipientInfo_pwri_crypt() local
290 pwri = ri->d.pwri; in cms_RecipientInfo_pwri_crypt()
292 if (!pwri->pass) { in cms_RecipientInfo_pwri_crypt()
296 algtmp = pwri->keyEncryptionAlgorithm; in cms_RecipientInfo_pwri_crypt()
335 algtmp = pwri->keyDerivationAlgorithm; in cms_RecipientInfo_pwri_crypt()
340 (char *)pwri->pass, pwri->passlen, in cms_RecipientInfo_pwri_crypt()
360 pwri->encryptedKey->data = key; in cms_RecipientInfo_pwri_crypt()
361 pwri->encryptedKey->length = keylen; in cms_RecipientInfo_pwri_crypt()
363 key = OPENSSL_malloc(pwri->encryptedKey->length); in cms_RecipientInfo_pwri_crypt()
370 pwri->encryptedKey->data, in cms_RecipientInfo_pwri_crypt()
371 pwri->encryptedKey->length, kekctx)) { in cms_RecipientInfo_pwri_crypt()