X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost89.h;h=f201363c0c1cc5d261b7c72a4197f69a8d2cd462;hb=c6655a0b620a3e31f085cc906f8073fe81b2fad3;hp=569db5b059816eee5fa162fc74b6d0940c867913;hpb=d1cf560c742d85ab1986fb0cabe0f9e3a1f0eb23;p=openssl-gost%2Fengine.git diff --git a/gost89.h b/gost89.h index 569db5b..f201363 100644 --- 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(). */ @@ -60,8 +61,12 @@ void gostcrypt(gost_ctx * c, const byte * in, byte * out); void gostdecrypt(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 */ +void gost_key_nomask(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 */