]> wagner.pp.ru Git - openssl-gost/engine.git/blob - patches/1.1.0/gost_ctrl.diff
Erroneous check removed
[openssl-gost/engine.git] / patches / 1.1.0 / gost_ctrl.diff
1 diff --git a/include/openssl/evp.h b/include/openssl/evp.h
2 index f92f109..8b03407 100644
3 --- a/include/openssl/evp.h
4 +++ b/include/openssl/evp.h
5 @@ -427,6 +427,14 @@ struct evp_cipher_st {
6  # define         EVP_CTRL_TLS1_1_MULTIBLOCK_DECRYPT      0x1b
7  # define         EVP_CTRL_TLS1_1_MULTIBLOCK_MAX_BUFSIZE  0x1c
8  
9 +/*
10 + * Russian GOST has some parameters defining its usage:
11 + * S-blocks, key meshing, padding modes
12 + */
13 +#define          EVP_CTRL_GOST_PARAMS       0x1d
14 +#define          EVP_CTRL_GOST_KEY_MESHING  0x1e
15 +#define          EVP_CTRL_GOST_PADDING      0x1f
16 +
17  /* RFC 5246 defines additional data to be 13 bytes in length */
18  # define         EVP_AEAD_TLS1_AAD_LEN           13
19