Searched refs:salt (Results 1 - 7 of 7) sorted by relevance

/sssd/src/util/crypto/nss/
H A Dnss_sha512crypt.c32 /* Define our magic string to mark salt for SHA512 "encryption" replacement. */
72 const char *salt,
93 /* Find beginning of salt string. The prefix should normally always be
95 if (strncmp(salt, sha512_salt_prefix, SALT_PREF_SIZE) == 0) {
96 /* Skip salt prefix. */
97 salt += SALT_PREF_SIZE;
100 if (strncmp(salt, sha512_rounds_prefix, ROUNDS_SIZE) == 0) {
105 num = salt + ROUNDS_SIZE;
108 salt = endp + 1;
116 salt_len = MIN(strcspn(salt, "
71 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
333 s3crypt_sha512(TALLOC_CTX *memctx, const char *key, const char *salt, char **_hash) argument
357 char *salt, *cp; local
[all...]
/sssd/src/util/crypto/libcrypto/
H A Dcrypto_sha512crypt.c34 /* Define our magic string to mark salt for SHA512 "encryption" replacement. */
74 const char *salt,
95 /* Find beginning of salt string. The prefix should normally always be
97 if (strncmp(salt, sha512_salt_prefix, SALT_PREF_SIZE) == 0) {
98 /* Skip salt prefix. */
99 salt += SALT_PREF_SIZE;
102 if (strncmp(salt, sha512_rounds_prefix, ROUNDS_SIZE) == 0) {
107 num = salt + ROUNDS_SIZE;
110 salt = endp + 1;
118 salt_len = MIN(strcspn(salt, "
73 sha512_crypt_r(const char *key, const char *salt, char *buffer, size_t buflen) argument
343 s3crypt_sha512(TALLOC_CTX *memctx, const char *key, const char *salt, char **_hash) argument
367 char *salt, *cp; local
[all...]
/sssd/src/tests/intg/
H A Dds_openldap.py36 salt = os.urandom(4)
38 hash.update(salt)
39 return "{SSHA}" + base64.standard_b64encode(hash.digest() + salt)
/sssd/src/util/crypto/
H A Dsss_crypto.h24 const char *key, const char *salt, char **_hash);
/sssd/src/responder/pam/
H A Dpam_LOCAL_domain.c161 char *salt; local
177 ret = s3crypt_gen_salt(lreq, &salt);
180 DEBUG(SSSDBG_CONF_SETTINGS, "Using salt [%s]\n", salt);
182 ret = s3crypt_sha512(lreq, password, salt, &new_hash);
/sssd/src/responder/ssh/
H A Dsshsrv_cmd.c487 unsigned char salt[SSS_SHA1_LENGTH], hash[SSS_SHA1_LENGTH]; local
511 salt[k] = rand();
514 ret = sss_hmac_sha1(salt, SSS_SHA1_LENGTH,
525 saltstr = sss_base64_encode(tmp_ctx, salt, SSS_SHA1_LENGTH);
/sssd/src/db/
H A Dsysdb_ops.c2987 char *salt; local
2995 ret = s3crypt_gen_salt(tmp_ctx, &salt);
2997 DEBUG(SSSDBG_CONF_SETTINGS, "Failed to generate random salt.\n");
3001 ret = s3crypt_sha512(tmp_ctx, password, salt, &hash);

Completed in 2021 milliseconds