aboutsummaryrefslogtreecommitdiff
path: root/gost_lcl.h
diff options
context:
space:
mode:
authorVitaly Chikunov <vt@altlinux.org>2020-05-12 03:55:39 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2020-05-12 12:55:47 +0300
commita00d42f4dfec8dff2f290cf3074dc25fb6b2e985 (patch)
treefad40fa8d460a7d5bb9480762b5d4c0ca5785eb1 /gost_lcl.h
parent02eb87cc43d7ef6cb7f49b3f023a185d3549bfef (diff)
downloadgost-engine-a00d42f4dfec8dff2f290cf3074dc25fb6b2e985.zip
gost-engine-a00d42f4dfec8dff2f290cf3074dc25fb6b2e985.tar.gz
gost-engine-a00d42f4dfec8dff2f290cf3074dc25fb6b2e985.tar.bz2
gost_crypt: Allow templates in GOST_cipher
Avoid duplication of struct values with help of 1-level templates.
Diffstat (limited to 'gost_lcl.h')
-rw-r--r--gost_lcl.h1
1 files changed, 1 insertions, 0 deletions
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) */