Searched refs:pbe2 (Results 1 – 6 of 6) sorted by relevance
/openssl/crypto/asn1/ |
H A D | p5_pbev2.c | 60 PBE2PARAM *pbe2 = NULL; variable 68 if ((pbe2 = PBE2PARAM_new()) == NULL) { 74 scheme = pbe2->encryption; 125 X509_ALGOR_free(pbe2->keyfunc); 127 pbe2->keyfunc = PKCS5_pbkdf2_set_ex(iter, salt, saltlen, prf_nid, keylen, 130 if (pbe2->keyfunc == NULL) { 146 if (!ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBE2PARAM), pbe2, 152 PBE2PARAM_free(pbe2); 153 pbe2 = NULL; 159 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() 76 scheme = pbe2->encryption; in PKCS5_pbe2_set_scrypt() 116 X509_ALGOR_free(pbe2->keyfunc); in PKCS5_pbe2_set_scrypt() 118 pbe2->keyfunc = pkcs5_scrypt_set(salt, saltlen, keylen, N, r, p); in PKCS5_pbe2_set_scrypt() 120 if (pbe2->keyfunc == NULL) { in PKCS5_pbe2_set_scrypt() 137 if (ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBE2PARAM), pbe2, in PKCS5_pbe2_set_scrypt() 143 PBE2PARAM_free(pbe2); in PKCS5_pbe2_set_scrypt() 144 pbe2 = NULL; in PKCS5_pbe2_set_scrypt() [all …]
|
/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 | 175 DECLARE_OBJ_BSEARCH_CMP_FN(EVP_PBE_CTL, EVP_PBE_CTL, pbe2); 177 static int pbe2_cmp(const EVP_PBE_CTL *pbe1, const EVP_PBE_CTL *pbe2) in pbe2_cmp() argument 179 int ret = pbe1->pbe_type - pbe2->pbe_type; in pbe2_cmp() 183 return pbe1->pbe_nid - pbe2->pbe_nid; in pbe2_cmp() 186 IMPLEMENT_OBJ_BSEARCH_CMP_FN(EVP_PBE_CTL, EVP_PBE_CTL, pbe2);
|
/openssl/crypto/pkcs12/ |
H A D | p12_npas.c | 202 PBE2PARAM *pbe2 = NULL; in alg_get() local 211 pbe2 = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBE2PARAM)); in alg_get() 212 if (pbe2 == NULL) in alg_get() 215 X509_ALGOR_get0(NULL, &aparamtype, &aparam, pbe2->keyfunc); in alg_get() 216 X509_ALGOR_get0(&aoid, NULL, NULL, pbe2->encryption); in alg_get() 254 if (pbe2 != NULL) in alg_get() 255 PBE2PARAM_free(pbe2); in alg_get()
|
/openssl/apps/ |
H A D | pkcs12.c | 1148 PBE2PARAM *pbe2 = NULL; in alg_print() local 1151 pbe2 = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBE2PARAM)); in alg_print() 1152 if (pbe2 == NULL) { in alg_print() 1156 X509_ALGOR_get0(&aoid, &aparamtype, &aparam, pbe2->keyfunc); in alg_print() 1158 X509_ALGOR_get0(&aoid, NULL, NULL, pbe2->encryption); in alg_print() 1201 PBE2PARAM_free(pbe2); in alg_print()
|
Completed in 20 milliseconds