X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fcrypto%2Fblowfish_crypto.cpp;h=f5f7681bd045f8ca988d900182a55360c3cd53d5;hb=ef338226ccf699c8d8a149d9b74e9888175c7099;hp=37543df8507098d92d589791bda5e3a07f0730d4;hpb=68c13351f6768d8104716fc5757fbaf11bb02519;p=feisty_meow.git diff --git a/nucleus/library/crypto/blowfish_crypto.cpp b/nucleus/library/crypto/blowfish_crypto.cpp index 37543df8..f5f7681b 100644 --- a/nucleus/library/crypto/blowfish_crypto.cpp +++ b/nucleus/library/crypto/blowfish_crypto.cpp @@ -206,7 +206,7 @@ bool blowfish_crypto::encrypt(const byte_array &source, EVP_CIPHER_CTX *session = EVP_CIPHER_CTX_new(); EVP_CIPHER_CTX_init(session); - EVP_EncryptInit_ex(session, EVP_bf_cbc(), NIL, _key->observe(), + EVP_EncryptInit_ex(session, EVP_bf_cbc(), NULL_POINTER, _key->observe(), init_vector().observe()); EVP_CIPHER_CTX_set_key_length(session, _key_size); @@ -260,7 +260,7 @@ bool blowfish_crypto::decrypt(const byte_array &source, EVP_CIPHER_CTX *session = EVP_CIPHER_CTX_new(); EVP_CIPHER_CTX_init(session); LOG(a_sprintf("key size %d bits.\n", BITS_PER_BYTE * _key->length())); - EVP_DecryptInit_ex(session, EVP_bf_cbc(), NIL, _key->observe(), + EVP_DecryptInit_ex(session, EVP_bf_cbc(), NULL_POINTER, _key->observe(), init_vector().observe()); EVP_CIPHER_CTX_set_key_length(session, _key_size);