Searched refs:salt (Results 1 - 7 of 7) sorted by relevance
/sssd-io/src/util/crypto/libcrypto/ |
H A D | crypto_sha512crypt.c | 34 /* 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-io/src/util/crypto/nss/ |
H A D | nss_sha512crypt.c | 32 /* 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-io/src/responder/ssh/ |
H A D | ssh_known_hosts.c | 94 unsigned char salt[SSS_SHA1_LENGTH], hash[SSS_SHA1_LENGTH]; local 118 salt[k] = rand(); 121 ret = sss_hmac_sha1(salt, SSS_SHA1_LENGTH, 132 saltstr = sss_base64_encode(tmp_ctx, salt, SSS_SHA1_LENGTH);
|
/sssd-io/src/util/crypto/ |
H A D | sss_crypto.h | 27 const char *key, const char *salt, char **_hash);
|
/sssd-io/src/responder/pam/ |
H A D | pam_LOCAL_domain.c | 161 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-io/src/tests/intg/ |
H A D | ds_openldap.py | 41 salt = os.urandom(4) 43 hash.update(salt) 44 hash_base64 = base64.standard_b64encode(hash.digest() + salt)
|
/sssd-io/src/db/ |
H A D | sysdb_ops.c | 3187 char *salt; local 3195 ret = s3crypt_gen_salt(tmp_ctx, &salt); 3197 DEBUG(SSSDBG_CONF_SETTINGS, "Failed to generate random salt.\n"); 3201 ret = s3crypt_sha512(tmp_ctx, password, salt, &hash);
|
Completed in 21 milliseconds