HomeSort by relevance Sort by last modified time
    Searched refs:pbe (Results 1 - 8 of 8) sorted by null

  /external/openssl/crypto/pkcs12/
p12_p8e.c 69 X509_ALGOR *pbe; local
76 if(pbe_nid == -1) pbe = PKCS5_pbe2_set(cipher, iter, salt, saltlen);
77 else pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
78 if(!pbe) {
83 p8->algor = pbe;
85 p8->digest = PKCS12_item_i2d_encrypt(pbe, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO),
p12_crpt.c 63 /* PKCS#12 PBE algorithms now in static table */
72 PBEPARAM *pbe; local
86 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) {
91 if (!pbe->iter) iter = 1;
92 else iter = ASN1_INTEGER_get (pbe->iter);
93 salt = pbe->salt->data;
94 saltlen = pbe->salt->length;
98 PBEPARAM_free(pbe);
104 PBEPARAM_free(pbe);
107 PBEPARAM_free(pbe);
    [all...]
p12_npas.c 213 PBEPARAM *pbe; local
217 pbe = d2i_PBEPARAM(NULL, &p, alg->parameter->value.sequence->length);
218 if (!pbe)
221 *piter = ASN1_INTEGER_get(pbe->iter);
222 *psaltlen = pbe->salt->length;
223 PBEPARAM_free(pbe);
p12_add.c 173 X509_ALGOR *pbe; local
188 pbe = PKCS5_pbe2_set(pbe_ciph, iter, salt, saltlen);
190 pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
192 if (!pbe) {
197 p7->d.encrypted->enc_data->algorithm = pbe;
200 PKCS12_item_i2d_encrypt(pbe, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), pass, passlen,
  /external/openssl/crypto/asn1/
p5_pbe.c 75 /* Set an algorithm identifier for a PKCS#5 PBE algorithm */
80 PBEPARAM *pbe=NULL;
84 pbe = PBEPARAM_new();
85 if (!pbe)
92 if (!ASN1_INTEGER_set(pbe->iter, iter))
99 if (!ASN1_STRING_set(pbe->salt, NULL, saltlen))
104 sstr = ASN1_STRING_data(pbe->salt);
110 if(!ASN1_item_pack(pbe, ASN1_ITEM_rptr(PBEPARAM), &pbe_str))
116 PBEPARAM_free(pbe);
117 pbe = NULL
    [all...]
  /external/openssl/crypto/evp/
p5_crpt.c 65 /* Doesn't do anything now: Builtin PBE algorithms in static table.
80 PBEPARAM *pbe; local
94 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) {
99 if (!pbe->iter) iter = 1;
100 else iter = ASN1_INTEGER_get (pbe->iter);
101 salt = pbe->salt->data;
102 saltlen = pbe->salt->length;
111 PBEPARAM_free(pbe);
evp_pbe.c 65 /* Password based encryption (PBE) functions */
70 /* Setup a cipher context from a PBE algorithm */
228 /* Add a PBE algorithm */
302 static void free_evp_pbe_ctl(EVP_PBE_CTL *pbe)
304 OPENSSL_freeFunc(pbe);
  /external/openssl/apps/
pkcs12.c 320 BIO_printf (bio_err, "-certpbe alg specify certificate PBE algorithm (default RC2-40)\n");
321 BIO_printf (bio_err, "-keypbe alg specify private key PBE algorithm (default 3DES)\n");
856 PBEPARAM *pbe; local
859 pbe = d2i_PBEPARAM(NULL, &p, alg->parameter->value.sequence->length);
860 if (!pbe)
864 ASN1_INTEGER_get(pbe->iter));
865 PBEPARAM_free (pbe);
971 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str);

Completed in 914 milliseconds