From fd12b88c3392a300d94421f62cf870be8d4ef430 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Tue, 4 Sep 2018 11:38:32 +0300 Subject: ASN1 definitions --- gost_lcl.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gost_lcl.h') 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 -- cgit v1.1