From a00d42f4dfec8dff2f290cf3074dc25fb6b2e985 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Tue, 12 May 2020 03:55:39 +0300 Subject: gost_crypt: Allow templates in GOST_cipher Avoid duplication of struct values with help of 1-level templates. --- gost_lcl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gost_lcl.h') diff --git a/gost_lcl.h b/gost_lcl.h index e926d9a..a9cb8b0 100644 --- a/gost_lcl.h +++ b/gost_lcl.h @@ -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) */ -- cgit v1.1