Searched refs:pbe2 (Results 1 – 5 of 5) sorted by relevance
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | p5_pbev2.c | 51 PBE2PARAM *pbe2 = NULL; variable 59 if ((pbe2 = PBE2PARAM_new()) == NULL) 63 scheme = pbe2->encryption; 110 X509_ALGOR_free(pbe2->keyfunc); 112 pbe2->keyfunc = PKCS5_pbkdf2_set_ex(iter, salt, saltlen, prf_nid, keylen, 115 if (pbe2->keyfunc == NULL) 127 if (!ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBE2PARAM), pbe2, 131 PBE2PARAM_free(pbe2); 132 pbe2 = NULL; 141 PBE2PARAM_free(pbe2);
|
H A D | p5_scrypt.c | 51 PBE2PARAM *pbe2 = NULL; in PKCS5_pbe2_set_scrypt() local 69 pbe2 = PBE2PARAM_new(); in PKCS5_pbe2_set_scrypt() 70 if (pbe2 == NULL) in PKCS5_pbe2_set_scrypt() 74 scheme = pbe2->encryption; in PKCS5_pbe2_set_scrypt() 110 X509_ALGOR_free(pbe2->keyfunc); in PKCS5_pbe2_set_scrypt() 112 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt() 114 if (pbe2->keyfunc == NULL) in PKCS5_pbe2_set_scrypt() 127 if (ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBE2PARAM), pbe2, in PKCS5_pbe2_set_scrypt() 131 PBE2PARAM_free(pbe2); in PKCS5_pbe2_set_scrypt() 132 pbe2 = NULL; in PKCS5_pbe2_set_scrypt() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | p5_crpt2.c | 117 PBE2PARAM *pbe2 = NULL; in PKCS5_v2_PBE_keyivgen_ex() local 125 pbe2 = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBE2PARAM), param); in PKCS5_v2_PBE_keyivgen_ex() 126 if (pbe2 == NULL) { in PKCS5_v2_PBE_keyivgen_ex() 132 if (!EVP_PBE_find_ex(EVP_PBE_TYPE_KDF, OBJ_obj2nid(pbe2->keyfunc->algorithm), in PKCS5_v2_PBE_keyivgen_ex() 141 if (OBJ_obj2txt(ciph_name, sizeof(ciph_name), pbe2->encryption->algorithm, 0) <= 0) { in PKCS5_v2_PBE_keyivgen_ex() 162 if (EVP_CIPHER_asn1_to_param(ctx, pbe2->encryption->parameter) <= 0) { in PKCS5_v2_PBE_keyivgen_ex() 166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex() 169 PBE2PARAM_free(pbe2); in PKCS5_v2_PBE_keyivgen_ex()
|
H A D | evp_pbe.c | 168 DECLARE_OBJ_BSEARCH_CMP_FN(EVP_PBE_CTL, EVP_PBE_CTL, pbe2); 170 static int pbe2_cmp(const EVP_PBE_CTL *pbe1, const EVP_PBE_CTL *pbe2) in pbe2_cmp() argument 172 int ret = pbe1->pbe_type - pbe2->pbe_type; in pbe2_cmp() 176 return pbe1->pbe_nid - pbe2->pbe_nid; in pbe2_cmp() 179 IMPLEMENT_OBJ_BSEARCH_CMP_FN(EVP_PBE_CTL, EVP_PBE_CTL, pbe2);
|
/freebsd/crypto/openssl/apps/ |
H A D | pkcs12.c | 1050 PBE2PARAM *pbe2 = NULL; in alg_print() 1053 pbe2 = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBE2PARAM)); in alg_print() 1054 if (pbe2 == NULL) { in alg_print() 1058 X509_ALGOR_get0(&aoid, &aparamtype, &aparam, pbe2->keyfunc); in alg_print() 1060 X509_ALGOR_get0(&aoid, NULL, NULL, pbe2->encryption); in alg_print() 1103 PBE2PARAM_free(pbe2); in alg_print() 1044 PBE2PARAM *pbe2 = NULL; alg_print() local
|