Searched refs:alt_ctx (Results 1 - 2 of 2) sorted by relevance

/sssd/src/util/crypto/nss/
H A Dnss_sha512crypt.c79 HASHContext *alt_ctx = NULL; local
141 alt_ctx = HASH_Create(HASH_AlgSHA512);
142 if (!alt_ctx) {
161 HASH_Begin(alt_ctx);
164 HASH_Update(alt_ctx, (const unsigned char *)key, key_len);
167 HASH_Update(alt_ctx, (const unsigned char *)salt, salt_len);
170 HASH_Update(alt_ctx, (const unsigned char *)key, key_len);
173 HASH_End(alt_ctx, alt_result, &part, HASH_ResultLenContext(alt_ctx));
195 HASH_Begin(alt_ctx);
[all...]
/sssd/src/util/crypto/libcrypto/
H A Dcrypto_sha512crypt.c81 EVP_MD_CTX *alt_ctx = NULL; local
137 alt_ctx = EVP_MD_CTX_new();
138 if (alt_ctx == NULL) {
159 if (!EVP_DigestInit_ex(alt_ctx, EVP_sha512(), NULL)) {
165 EVP_DigestUpdate(alt_ctx, (const unsigned char *)key, key_len);
168 EVP_DigestUpdate(alt_ctx, (const unsigned char *)salt, salt_len);
171 EVP_DigestUpdate(alt_ctx, (const unsigned char *)key, key_len);
174 EVP_DigestFinal_ex(alt_ctx, alt_result, &part);
196 if (!EVP_DigestInit_ex(alt_ctx, EVP_sha512(), NULL)) {
203 EVP_DigestUpdate(alt_ctx, (cons
[all...]

Completed in 9 milliseconds