/external/boringssl/src/crypto/pkcs8/ |
p5_pbe.c | 80 const unsigned char *salt, int saltlen) 99 if (!saltlen) 100 saltlen = PKCS5_SALT_LEN; 101 if (!ASN1_STRING_set(pbe->salt, NULL, saltlen)) 108 memcpy(sstr, salt, saltlen); 109 else if (!RAND_bytes(sstr, saltlen)) 135 const unsigned char *salt, int saltlen) 145 if (PKCS5_pbe_set0_algor(ret, alg, iter, salt, saltlen))
|
p5_pbev2.c | 117 unsigned char *salt, int saltlen, 183 pbe2->keyfunc = PKCS5_pbkdf2_set(iter, salt, saltlen, prf_nid, keylen); 220 unsigned char *salt, int saltlen) 222 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1); 225 X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen, 240 if (!saltlen) 241 saltlen = PKCS5_SALT_LEN; 242 if (!(osalt->data = OPENSSL_malloc (saltlen))) 245 osalt->length = saltlen; 248 memcpy (osalt->data, salt, saltlen); [all...] |
/external/boringssl/src/crypto/evp/ |
p_rsa_asn1.c | 550 int saltlen, rv = 0; local 554 !EVP_PKEY_CTX_get_rsa_pss_saltlen(pkctx, &saltlen)) { 558 if (saltlen == -1) { 559 saltlen = EVP_MD_size(sigmd); 560 } else if (saltlen == -2) { 561 saltlen = EVP_PKEY_size(pk) - EVP_MD_size(sigmd) - 2; 563 saltlen--; 574 if (saltlen != 20) { 577 !ASN1_INTEGER_set(pss->saltLength, saltlen)) { 609 int saltlen; local [all...] |
p_rsa.c | 85 int saltlen; member in struct:__anon5820 104 rctx->saltlen = -2; 205 rctx->mgf1md, rctx->saltlen) || 238 rctx->tbuf, rctx->saltlen)) { 385 *(int *)p2 = rctx->saltlen; 390 rctx->saltlen = p1;
|
/external/scrypt/lib/crypto/ |
crypto_scrypt-neon.c | 184 * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen): 185 * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, 194 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, 267 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); 269 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
|
crypto_scrypt-ref.c | 211 * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen): 212 * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, 221 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, 263 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); 265 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
|
crypto_scrypt-sse.c | 257 * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen): 258 * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, 267 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, 340 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); 342 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
|
/external/boringssl/src/include/openssl/ |
x509.h | [all...] |