Lines Matching refs:alt_ctx
81 EVP_MD_CTX *alt_ctx = NULL;
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, (const unsigned char *)key, key_len);
207 EVP_DigestFinal_ex(alt_ctx, temp_result, &part);
217 if (!EVP_DigestInit_ex(alt_ctx, EVP_sha512(), NULL)) {
224 EVP_DigestUpdate(alt_ctx, (const unsigned char *)salt, salt_len);
228 EVP_DigestFinal_ex(alt_ctx, temp_result, &part);
333 EVP_MD_CTX_free(alt_ctx);