X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost89.h;h=b8a947e1bdd014cf1a091c5d2745042f771234fc;hb=3b8ddfe2f303b8931842e52bdb5c07c97042f651;hp=e5b877f4482d6536952e77d88ab8873482ce5395;hpb=c98ba9d03213d0c63d6874539d59f7b55fbc3fae;p=openssl-gost%2Fengine.git diff --git a/gost89.h b/gost89.h index e5b877f..b8a947e 100644 --- a/gost89.h +++ b/gost89.h @@ -59,6 +59,8 @@ 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 * ctx, const byte * key); +/* Set key into context */ +void magma_key(gost_ctx * ctx, const byte * key); /* Get key from context */ void gost_get_key(gost_ctx * ctx, byte * key); /* Set S-blocks into context */ @@ -92,7 +94,11 @@ extern gost_subst_block Gost28147_CryptoProParamSetA; extern gost_subst_block Gost28147_CryptoProParamSetB; extern gost_subst_block Gost28147_CryptoProParamSetC; extern gost_subst_block Gost28147_CryptoProParamSetD; +extern gost_subst_block Gost28147_TC26ParamSetZ; extern const byte CryptoProKeyMeshingKey[]; typedef unsigned int word32; - +/* For tests. */ +void kboxinit(gost_ctx * c, const gost_subst_block * b); +void magma_get_key(gost_ctx * c, byte * k); +void acpkm_magma_key_meshing(gost_ctx * ctx); #endif