aboutsummaryrefslogtreecommitdiff
path: root/gost_lcl.h
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-09-04 11:38:32 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-09-04 11:38:32 +0300
commitfd12b88c3392a300d94421f62cf870be8d4ef430 (patch)
tree4a0f52e821e759884acd99dea69a15ef542f7a82 /gost_lcl.h
parentcd7f9c8e3c396cff87e1393df835c5f5f9fb661f (diff)
downloadgost-engine-fd12b88c3392a300d94421f62cf870be8d4ef430.zip
gost-engine-fd12b88c3392a300d94421f62cf870be8d4ef430.tar.gz
gost-engine-fd12b88c3392a300d94421f62cf870be8d4ef430.tar.bz2
ASN1 definitions
Diffstat (limited to 'gost_lcl.h')
-rw-r--r--gost_lcl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gost_lcl.h b/gost_lcl.h
index 52984a0..08fe5ce 100644
--- a/gost_lcl.h
+++ b/gost_lcl.h
@@ -114,6 +114,24 @@ typedef struct { /* FIXME incomplete */
GOST_KEY_TRANSPORT *gkt;
} GOST_CLIENT_KEY_EXCHANGE_PARAMS;
+/* PSKeyTransport ::= SEQUENCE {
+ PSEXP OCTET STRING,
+ ephemeralPublicKey SubjectPublicKeyInfo
+ }
+ SubjectPublicKeyInfo ::= SEQUENCE {
+ algorithm AlgorithmIdentifier,
+ subjectPublicKey BITSTRING
+ }
+ AlgorithmIdentifier ::= SEQUENCE {
+ algorithm OBJECT IDENTIFIER,
+ parameters ANY OPTIONAL
+ }*/
+typedef struct PSKeyTransport_st {
+ ASN1_OCTET_STRING *psexp;
+ X509_PUBKEY *ephem_key;
+} PSKeyTransport_gost;
+
+DECLARE_ASN1_FUNCTIONS(PSKeyTransport_gost)
/*
* Hacks to shorten symbols to 31 characters or less, or OpenVMS. This mimics
* what's done in symhacks.h, but since this is a very local header file, I