aboutsummaryrefslogtreecommitdiff
path: root/gost89.h
diff options
context:
space:
mode:
authorMark Fedorov <mark.fedorov@cloudbear.ru>2022-07-01 15:29:12 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2022-07-02 13:33:58 +0200
commitfcca1ab049978ae66a3dfeff5e4704fa8127095e (patch)
tree1bf77e84b2f8df1cfa11b758a4410bb2561d211a /gost89.h
parent021a2b61b5d904caaf4ceb26ff3163f1f0e4219f (diff)
downloadgost-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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gost89.h b/gost89.h
index f201363..f8a83bb 100644
--- a/gost89.h
+++ b/gost89.h
@@ -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 */