X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fecies.cpp;h=dec773f9cecf2d62f65d647d9e0c76b5b2a5fd2c;hb=5a7a2125b6b4ed7d3ea55f333d0cf2345bd1d916;hp=3f8eaf721b45123f68abfa822fe6d322a38da22f;hpb=4a6759691d71bf2a7d2a0a9e4710f0887e66ab02;p=novacoin.git 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 +}