/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_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,
|
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);
|
/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);
|
/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);
|
/external/chromium_org/third_party/boringssl/src/crypto/pkcs8/ |
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...] |