Home
last modified time | relevance | path

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

/device/generic/goldfish/gatekeeper/
DSoftGateKeeper.h38 uint64_t salt; member
83 uint32_t password_length, salt_t salt) const { in ComputePasswordSignature() argument
85 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
86 sizeof(salt), N, r, p, signature, signature_length); in ComputePasswordSignature()
136 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) { in ComputeFastHash() argument
138 size_t digest_size = password.length + sizeof(salt); in ComputeFastHash()
140 memcpy(digest.get(), &salt, sizeof(salt)); in ComputeFastHash()
141 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
145 fast_hash.salt = salt; in ComputeFastHash()
150 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
[all …]
/device/google/cuttlefish_common/guest/hals/gatekeeper/
DSoftGateKeeper.h38 uint64_t salt; member
83 uint32_t password_length, salt_t salt) const { in ComputePasswordSignature() argument
85 crypto_scrypt(password, password_length, reinterpret_cast<uint8_t *>(&salt), in ComputePasswordSignature()
86 sizeof(salt), N, r, p, signature, signature_length); in ComputePasswordSignature()
136 fast_hash_t ComputeFastHash(const SizedBuffer &password, uint64_t salt) { in ComputeFastHash() argument
138 size_t digest_size = password.length + sizeof(salt); in ComputeFastHash()
140 memcpy(digest.get(), &salt, sizeof(salt)); in ComputeFastHash()
141 memcpy(digest.get() + sizeof(salt), password.buffer.get(), password.length); in ComputeFastHash()
145 fast_hash.salt = salt; in ComputeFastHash()
150 fast_hash_t computed = ComputeFastHash(password, fast_hash.salt); in VerifyFast()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dcryptmodule.c17 char *word, *salt; in crypt_crypt() local
22 if (!PyArg_ParseTuple(args, "ss:crypt", &word, &salt)) { in crypt_crypt()
27 return Py_BuildValue("s", crypt(word, salt)); in crypt_crypt()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dhashlib.py163 def pbkdf2_hmac(hash_name, password, salt, iterations, dklen=None): argument
175 if not isinstance(salt, (bytes, bytearray)):
176 salt = bytes(buffer(salt))
209 prev = prf(salt + struct.pack(b'>I', loop))
/device/linaro/bootloader/edk2/CryptoPkg/Library/OpensslLib/
DEDKII_openssl-1.0.2j.patch880 const unsigned char *salt, const unsigned char *data,
900 const unsigned char *salt, const unsigned char *data,