From 694c192f16df8253afd1285a3edf435cc0d87d91 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Sun, 13 Mar 2016 18:54:36 +0300 Subject: [PATCH 1/1] ECIES: Replace SHA1 with RIPEMD-160. --- src/ecies.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ecies.cpp b/src/ecies.cpp index 3f8eaf7..dec773f 100644 --- a/src/ecies.cpp +++ b/src/ecies.cpp @@ -559,8 +559,8 @@ ies_ctx_t *create_context(EC_KEY *user_key) try { ies_ctx_t* ctx = new ies_ctx_t; ctx->cipher = EVP_aes_128_cbc(); - ctx->md = EVP_sha1(); - ctx->kdf_md = EVP_sha1(); + ctx->md = EVP_ripemd160(); + ctx->kdf_md = EVP_ripemd160(); ctx->stored_key_length = 33; ctx->user_key = user_key; return ctx; @@ -570,4 +570,4 @@ ies_ctx_t *create_context(EC_KEY *user_key) // TODO: add checking to NULL where necessary return NULL; } -} \ No newline at end of file +} -- 1.7.1