diff options
author | Mark Fedorov <mark.fedorov@cloudbear.ru> | 2022-07-01 15:29:12 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2022-07-02 13:33:58 +0200 |
commit | fcca1ab049978ae66a3dfeff5e4704fa8127095e (patch) | |
tree | 1bf77e84b2f8df1cfa11b758a4410bb2561d211a /gost89.h | |
parent | 021a2b61b5d904caaf4ceb26ff3163f1f0e4219f (diff) | |
download | gost-engine-fcca1ab049978ae66a3dfeff5e4704fa8127095e.zip gost-engine-fcca1ab049978ae66a3dfeff5e4704fa8127095e.tar.gz gost-engine-fcca1ab049978ae66a3dfeff5e4704fa8127095e.tar.bz2 |
Refactor little-to-big-endian subroutine for magma
Diffstat (limited to 'gost89.h')
-rw-r--r-- | gost89.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -59,6 +59,10 @@ void gost_dec_cfb(gost_ctx * ctx, const byte * iv, const byte * cipher, void gostcrypt(gost_ctx * c, const byte * in, byte * out); /* Decrypt one block */ void gostdecrypt(gost_ctx * c, const byte * in, byte * out); +/* Encrypt one block */ +void magmacrypt(gost_ctx * c, const byte * in, byte * out); +/* Decrypt one block */ +void magmadecrypt(gost_ctx * c, const byte * in, byte * out); /* Set key into context */ void gost_key(gost_ctx * c, const byte * k); /* Set key into context without key mask */ |