You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only though I had is that the decrypt_initialize() and encrypt_initialize() have almost all repeated code so I though if we should factor it out to some crypt_initialize() and use the EVP_CipherInit_ex() and similar functions in here. But I can do it in separate PR if you would find it useful.
The functions encrypt_initialize() and decrypt_initialize() have most of
the duplicated code except for the OpenSSL function names. This unfifies
the use on functions that work in both direction, keeping the code
simpler and needing to fix bugs only in one place.
There were slight differences already in both of the implementations so
I tried to take the better variant with more descriptive comments and
checking.
Fixes: latchset#145
Signed-off-by: Jakub Jelen <[email protected]>
Originally posted by @Jakuje in #144 (review)
The text was updated successfully, but these errors were encountered: