X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fecies.cpp;h=dec773f9cecf2d62f65d647d9e0c76b5b2a5fd2c;hb=cecf7a56ed5a5efd939b21c760c69da616306005;hp=4d72bfd7100f866103b197e8f70dd86c709f6f6f;hpb=85088c59fcf0c562afcdb805c35d732de2a49ccb;p=novacoin.git diff --git a/src/ecies.cpp b/src/ecies.cpp index 4d72bfd..dec773f 100644 --- a/src/ecies.cpp +++ b/src/ecies.cpp @@ -559,14 +559,15 @@ 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; } catch (const std::bad_alloc& e) { printf("Error: %s in %s:%d\n", e.what(), __FILE__, __LINE__); +// TODO: add checking to NULL where necessary return NULL; } }