HomeSort by relevance Sort by last modified time
    Searched refs:pbe (Results 1 - 10 of 10) 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/chromium_org/third_party/boringssl/src/crypto/pkcs8/
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...]
pkcs8.c 213 PBEPARAM *pbe; local
227 pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length);
228 if (pbe == NULL) {
233 if (!pbe->iter) {
236 iterations = ASN1_INTEGER_get(pbe->iter);
238 salt = pbe->salt->data;
239 salt_len = pbe->salt->length;
243 PBEPARAM_free(pbe);
249 PBEPARAM_free(pbe);
252 PBEPARAM_free(pbe);
513 X509_ALGOR *pbe; local
    [all...]
  /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
96 if (!(pbe = d2i_PBEPARAM(NULL, &pbuf, param->value.sequence->length))) {
101 if (!pbe->iter) iter = 1;
102 else iter = ASN1_INTEGER_get (pbe->iter);
103 salt = pbe->salt->data;
104 saltlen = pbe->salt->length;
115 PBEPARAM_free(pbe);
evp_pbe.c 66 /* Password based encryption (PBE) functions */
71 /* Setup a cipher context from a PBE algorithm */
233 /* Add a PBE algorithm */
307 static void free_evp_pbe_ctl(EVP_PBE_CTL *pbe)
309 OPENSSL_freeFunc(pbe);
  /external/openssl/apps/
pkcs12.c 327 BIO_printf (bio_err, "-certpbe alg specify certificate PBE algorithm (default RC2-40)\n");
328 BIO_printf (bio_err, "-keypbe alg specify private key PBE algorithm (default 3DES)\n");
863 PBEPARAM *pbe; local
866 pbe = d2i_PBEPARAM(NULL, &p, alg->parameter->value.sequence->length);
867 if (!pbe)
871 ASN1_INTEGER_get(pbe->iter));
872 PBEPARAM_free (pbe);
978 BIO_printf(bio_err, "Unknown PBE algorithm %s\n", str);

Completed in 1602 milliseconds