Home
last modified time | relevance | path

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

/freebsd/crypto/openssh/openbsd-compat/
H A Dbcrypt_pbkdf.c121 uint8_t *countsalt; in bcrypt_pbkdf() local
132 if ((countsalt = calloc(1, saltlen + 4)) == NULL) in bcrypt_pbkdf()
137 memcpy(countsalt, salt, saltlen); in bcrypt_pbkdf()
144 countsalt[saltlen + 0] = (count >> 24) & 0xff; in bcrypt_pbkdf()
145 countsalt[saltlen + 1] = (count >> 16) & 0xff; in bcrypt_pbkdf()
146 countsalt[saltlen + 2] = (count >> 8) & 0xff; in bcrypt_pbkdf()
147 countsalt[saltlen + 3] = count & 0xff; in bcrypt_pbkdf()
150 crypto_hash_sha512(sha2salt, countsalt, saltlen + 4); in bcrypt_pbkdf()
177 freezero(countsalt, saltlen + 4); in bcrypt_pbkdf()