X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost89.h;h=b8a947e1bdd014cf1a091c5d2745042f771234fc;hb=refs%2Fheads%2Fgost_provider;hp=13f35e15953a0c1be50bb8e12e5132ff83030985;hpb=57d07eb0dc22bee10aebb0bd37cbdf2258413564;p=openssl-gost%2Fengine.git diff --git a/gost89.h b/gost89.h index 13f35e1..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 */ @@ -95,5 +97,8 @@ 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