]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost89.h
Add TLS 1.3 new modes for TLSTREE algorithm
[openssl-gost/engine.git] / gost89.h
index 569db5b059816eee5fa162fc74b6d0940c867913..2bf75c117e50334b43716c6789442f561c1b7dcc 100644 (file)
--- a/gost89.h
+++ b/gost89.h
@@ -33,6 +33,7 @@ typedef struct {
 
 /* Cipher context includes key and preprocessed  substitution block */
 typedef struct {
+    u4 master_key[8];
     u4 key[8];
     u4 mask[8];
     /* Constant s-boxes -- set up in gost_init(). */
@@ -62,6 +63,8 @@ void gostdecrypt(gost_ctx * c, const byte * in, byte * out);
 void gost_key(gost_ctx * c, const byte * k);
 /* Set key into context */
 void magma_key(gost_ctx * c, const byte * k);
+/* Set master 256-bit key to be used in TLSTREE calculation into context */
+void magma_master_key(gost_ctx *c, const byte *k);
 /* Get key from context */
 void gost_get_key(gost_ctx * c, byte * k);
 /* Set S-blocks into context */