OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
gost_asn1.c
Go to the documentation of this file.
1 /**********************************************************************
2  * gost_keytrans.c *
3  * Copyright (c) 2005-2006 Cryptocom LTD *
4  * This file is distributed under the same license as OpenSSL *
5  * *
6  * ASN1 structure definition for GOST key transport *
7  * Requires OpenSSL 0.9.9 for compilation *
8  **********************************************************************/
9 #include <stdio.h>
10 #include <openssl/asn1t.h>
11 #include <openssl/x509.h>
12 #include "gost_lcl.h"
13 
16  ASN1_IMP(GOST_KEY_TRANSPORT, key_agreement_info, GOST_KEY_AGREEMENT_INFO, 0)
18 
20 
22  ASN1_SIMPLE(GOST_KEY_INFO, encrypted_key, ASN1_OCTET_STRING),
23  ASN1_SIMPLE(GOST_KEY_INFO, imit, ASN1_OCTET_STRING)
25 
27 
29  ASN1_SIMPLE(GOST_KEY_AGREEMENT_INFO, cipher, ASN1_OBJECT),
30  ASN1_IMP_OPT(GOST_KEY_AGREEMENT_INFO, ephem_key, X509_PUBKEY, 0),
31  ASN1_SIMPLE(GOST_KEY_AGREEMENT_INFO, eph_iv, ASN1_OCTET_STRING)
33 
35 
37  ASN1_SIMPLE(GOST_KEY_PARAMS, key_params, ASN1_OBJECT),
38  ASN1_SIMPLE(GOST_KEY_PARAMS, hash_params, ASN1_OBJECT),
39  ASN1_OPT(GOST_KEY_PARAMS, cipher_params, ASN1_OBJECT),
41 
43 
45  ASN1_SIMPLE(GOST_CIPHER_PARAMS, iv, ASN1_OCTET_STRING),
46  ASN1_SIMPLE(GOST_CIPHER_PARAMS, enc_param_set, ASN1_OBJECT),
48 
50 
52  ASN1_SIMPLE(GOST_CLIENT_KEY_EXCHANGE_PARAMS, gkt, GOST_KEY_TRANSPORT)
54