Home
last modified time | relevance | path

Searched refs:saltlen (Results 1 – 10 of 10) sorted by relevance

/external/boringssl/src/crypto/pkcs8/
Dp5_pbe.c80 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) in PKCS5_pbe_set() argument
145 if (PKCS5_pbe_set0_algor(ret, alg, iter, salt, saltlen)) in PKCS5_pbe_set()
Dp5_pbev2.c117 unsigned char *salt, int saltlen, in PKCS5_pbe2_set_iv() argument
183 pbe2->keyfunc = PKCS5_pbkdf2_set(iter, salt, saltlen, prf_nid, keylen); in PKCS5_pbe2_set_iv()
220 unsigned char *salt, int saltlen) in PKCS5_pbe2_set() argument
222 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1); in PKCS5_pbe2_set()
225 X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen, in PKCS5_pbkdf2_set() argument
240 if (!saltlen) in PKCS5_pbkdf2_set()
241 saltlen = PKCS5_SALT_LEN; in PKCS5_pbkdf2_set()
242 if (!(osalt->data = OPENSSL_malloc (saltlen))) in PKCS5_pbkdf2_set()
245 osalt->length = saltlen; in PKCS5_pbkdf2_set()
248 memcpy (osalt->data, salt, saltlen); in PKCS5_pbkdf2_set()
[all …]
/external/boringssl/src/crypto/evp/
Dp_rsa_asn1.c550 int saltlen, rv = 0; in rsa_ctx_to_pss() local
554 !EVP_PKEY_CTX_get_rsa_pss_saltlen(pkctx, &saltlen)) { in rsa_ctx_to_pss()
558 if (saltlen == -1) { in rsa_ctx_to_pss()
559 saltlen = EVP_MD_size(sigmd); in rsa_ctx_to_pss()
560 } else if (saltlen == -2) { in rsa_ctx_to_pss()
561 saltlen = EVP_PKEY_size(pk) - EVP_MD_size(sigmd) - 2; in rsa_ctx_to_pss()
563 saltlen--; in rsa_ctx_to_pss()
574 if (saltlen != 20) { in rsa_ctx_to_pss()
577 !ASN1_INTEGER_set(pss->saltLength, saltlen)) { in rsa_ctx_to_pss()
609 int saltlen; in rsa_pss_to_ctx() local
[all …]
Dp_rsa.c85 int saltlen; member
104 rctx->saltlen = -2; in pkey_rsa_init()
205 rctx->mgf1md, rctx->saltlen) || in pkey_rsa_sign()
238 rctx->tbuf, rctx->saltlen)) { in pkey_rsa_verify()
385 *(int *)p2 = rctx->saltlen; in pkey_rsa_ctrl()
390 rctx->saltlen = p1; in pkey_rsa_ctrl()
/external/scrypt/patches/
Duse_openssl_pbkdf2.patch22 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B…
24 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
62 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B…
64 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
Darm-neon.patch316 + * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen):
317 + * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r,
326 + const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p,
399 + PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B…
401 + PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r);
/external/scrypt/lib/crypto/
Dcrypto_scrypt-neon.c194 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, in crypto_scrypt() argument
267 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); in crypto_scrypt()
269 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); in crypto_scrypt()
Dcrypto_scrypt-ref.c221 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, in crypto_scrypt() argument
263 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); in crypto_scrypt()
265 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); in crypto_scrypt()
Dcrypto_scrypt-sse.c267 const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t r, uint32_t p, in crypto_scrypt() argument
340 PKCS5_PBKDF2_HMAC((const char *)passwd, passwdlen, salt, saltlen, 1, EVP_sha256(), p * 128 * r, B); in crypto_scrypt()
342 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); in crypto_scrypt()
/external/boringssl/src/include/openssl/
Dx509.h1107 const unsigned char *salt, int saltlen);
1110 const unsigned char *salt, int saltlen);
1112 unsigned char *salt, int saltlen);
1114 unsigned char *salt, int saltlen,
1117 OPENSSL_EXPORT X509_ALGOR *PKCS5_pbkdf2_set(int iter, unsigned char *salt, int saltlen,