]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_lcl.h
gost_crypt: Allow templates in GOST_cipher
[openssl-gost/engine.git] / gost_lcl.h
index 29ab7a9f1e46fea0ae7f3c63896dda518d11a2d2..a9cb8b0032b0159517cc9ea1b5129644401ba4a4 100644 (file)
@@ -320,6 +320,7 @@ BIGNUM *gost_get0_priv_key(const EVP_PKEY *pkey);
 
 /* Struct describing cipher and used for init/deinit.*/
 struct gost_cipher_st {
+    struct gost_cipher_st *template; /* template struct */
     int nid;
     EVP_CIPHER *cipher;
     int block_size;     /* (bytes) */
@@ -346,5 +347,8 @@ extern GOST_cipher Gost28147_89_cbc_cipher;
 extern GOST_cipher Gost28147_89_cnt_cipher;
 extern GOST_cipher Gost28147_89_cnt_12_cipher;
 extern GOST_cipher magma_ctr_cipher;
+extern GOST_cipher magma_ctr_acpkm_cipher;
+extern GOST_cipher magma_ctr_acpkm_omac_cipher;
+extern GOST_cipher magma_cbc_cipher;
 #endif
 /* vim: set expandtab cinoptions=\:0,l1,t0,g0,(0 sw=4 : */