Home
last modified time | relevance | path

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

/external/boringssl/src/crypto/evp/
Dpbkdf_test.cc34 static bool TestPBKDF2(const void *password, size_t password_len, in TestPBKDF2() function
73 if (!TestPBKDF2(NULL, 0, "salt", 4, 1, EVP_sha1(), sizeof(kKey), kKey) || in TestEmptyPassword()
74 !TestPBKDF2("", 0, "salt", 4, 1, EVP_sha1(), sizeof(kKey), kKey)) { in TestEmptyPassword()
89 if (!TestPBKDF2("password", 8, NULL, 0, 2, EVP_sha256(), sizeof(kKey), in TestEmptySalt()
91 !TestPBKDF2("password", 8, "", 0, 2, EVP_sha256(), sizeof(kKey), kKey)) { in TestEmptySalt()
110 if (!TestPBKDF2("password", 8, "salt", 4, 1, EVP_sha1(), sizeof(kKey1), in TestRFC6070Vectors()
112 !TestPBKDF2("password", 8, "salt", 4, 2, EVP_sha1(), sizeof(kKey2), in TestRFC6070Vectors()
114 !TestPBKDF2("pass\0word", 9, "sa\0lt", 5, 4096, EVP_sha1(), in TestRFC6070Vectors()
141 if (!TestPBKDF2("password", 8, "salt", 4, 2, EVP_sha256(), sizeof(kKey1), in TestSHA2()
143 !TestPBKDF2("passwordPASSWORDpassword", 24, in TestSHA2()