aboutsummaryrefslogtreecommitdiff
path: root/gost_gost2015.h
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2020-05-09 13:18:32 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2020-05-09 13:18:32 +0300
commit15066ba010e653efb062087f81d86e1ede1692cf (patch)
tree86e6d3cb41a53bec1d05707913a3239a0ef6f4bc /gost_gost2015.h
parent3c0db93862faa4b5f302bf6f310c5f86f4dded24 (diff)
downloadgost-engine-15066ba010e653efb062087f81d86e1ede1692cf.zip
gost-engine-15066ba010e653efb062087f81d86e1ede1692cf.tar.gz
gost-engine-15066ba010e653efb062087f81d86e1ede1692cf.tar.bz2
Refactoring unprotected attributes processing
Diffstat (limited to 'gost_gost2015.h')
-rw-r--r--gost_gost2015.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gost_gost2015.h b/gost_gost2015.h
index 4feed58..31f71e4 100644
--- a/gost_gost2015.h
+++ b/gost_gost2015.h
@@ -2,6 +2,7 @@
#define GOST_GOST2015_H
#include <openssl/evp.h>
+#include <openssl/x509.h>
#define MAGMA_MAC_MAX_SIZE 8
#define KUZNYECHIK_MAC_MAX_SIZE 16
@@ -20,4 +21,7 @@ int gost2015_get_asn1_params(const ASN1_TYPE *params, size_t ukm_size,
int gost2015_set_asn1_params(ASN1_TYPE *params,
const unsigned char *iv, size_t iv_size, const unsigned char *kdf_seed);
+
+int gost2015_process_unprotected_attributes(STACK_OF(X509_ATTRIBUTE) *attrs,
+ int encryption, size_t mac_len, unsigned char *final_tag);
#endif