|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| MacOS/ | H | 06-Jul-2017 | - | 11,618 | 9,101 |
| Netware/ | H | 03-May-2022 | - | 1,088 | 814 |
| VMS/ | H | 03-May-2022 | - | 817 | 795 |
| apps/ | H | 03-May-2022 | - | 48,244 | 38,840 |
| bugs/ | H | 06-Jul-2017 | - | 463 | 232 |
| certs/ | H | 06-Jul-2017 | - | 177 | 166 |
| crypto/ | H | 06-Jul-2017 | - | 454,060 | 334,886 |
| demos/ | H | 06-Jul-2017 | - | 16,474 | 11,204 |
| doc/ | H | 03-May-2022 | - | 44,134 | 29,796 |
| engines/ | H | 06-Jul-2017 | - | 24,176 | 17,364 |
| ms/ | H | 03-May-2022 | - | 2,204 | 1,732 |
| os2/ | H | 06-Jul-2017 | - | 136 | 107 |
| patches/ | H | 06-Jul-2017 | - | 4,679 | 4,677 |
| shlib/ | H | 06-Jul-2017 | - | 513 | 302 |
| ssl/ | H | 03-May-2022 | - | 69,707 | 50,035 |
| test/ | H | 03-May-2022 | - | 13,454 | 11,526 |
| tools/ | H | 06-Jul-2017 | - | 334 | 246 |
| util/ | H | 06-Jul-2017 | - | 15,481 | 13,181 |
| .gitignore | H A D | 06-Jul-2017 | 1.8 KiB | 130 | 117 |
| .travis.yml | H A D | 06-Jul-2017 | 422 | 18 | 12 |
| ACKNOWLEDGMENTS | H A D | 06-Jul-2017 | 87 | 3 | 2 |
| CHANGES | H A D | 06-Jul-2017 | 483.7 KiB | 11,399 | 9,039 |
| CHANGES.SSLeay | H A D | 06-Jul-2017 | 41.7 KiB | 969 | 809 |
| CONTRIBUTING | H A D | 06-Jul-2017 | 2.5 KiB | 55 | 42 |
| Configure | H A D | 03-May-2022 | 112.1 KiB | 2,343 | 2,130 |
| FAQ | H A D | 06-Jul-2017 | 84 | 3 | 2 |
| GitConfigure | H A D | 06-Jul-2017 | 207 | 9 | 5 |
| GitMake | H A D | 06-Jul-2017 | 81 | 6 | 2 |
| INSTALL | H A D | 06-Jul-2017 | 15 KiB | 368 | 272 |
| INSTALL.DJGPP | H A D | 06-Jul-2017 | 2 KiB | 48 | 35 |
| INSTALL.MacOS | H A D | 06-Jul-2017 | 3.2 KiB | 73 | 58 |
| INSTALL.NW | H A D | 06-Jul-2017 | 18.4 KiB | 455 | 334 |
| INSTALL.OS2 | H A D | 06-Jul-2017 | 744 | 32 | 19 |
| INSTALL.VMS | H A D | 06-Jul-2017 | 10.7 KiB | 294 | 211 |
| INSTALL.W32 | H A D | 06-Jul-2017 | 11.6 KiB | 326 | 236 |
| INSTALL.W64 | H A D | 06-Jul-2017 | 2.1 KiB | 67 | 49 |
| INSTALL.WCE | H A D | 06-Jul-2017 | 3.2 KiB | 96 | 64 |
| LICENSE | H A D | 06-Jul-2017 | 6.1 KiB | 128 | 120 |
| Makefile.org | H A D | 03-May-2022 | 22.8 KiB | 687 | 516 |
| Makefile.shared | H A D | 06-Jul-2017 | 21.4 KiB | 656 | 531 |
| NEWS | H A D | 06-Jul-2017 | 33.4 KiB | 795 | 633 |
| PROBLEMS | H A D | 06-Jul-2017 | 8.5 KiB | 214 | 151 |
| README | H A D | 06-Jul-2017 | 3.2 KiB | 102 | 78 |
| README.ASN1 | H A D | 06-Jul-2017 | 7.5 KiB | 188 | 143 |
| README.ENGINE | H A D | 06-Jul-2017 | 15.7 KiB | 290 | 255 |
| README.md | H A D | 06-Jul-2017 | 23.4 KiB | 291 | 265 |
| TABLE | H A D | 06-Jul-2017 | 178.1 KiB | 7,130 | 6,931 |
| appveyor.yml | H A D | 06-Jul-2017 | 1.3 KiB | 61 | 53 |
| config | H A D | 03-May-2022 | 28.3 KiB | 987 | 750 |
| e_os.h | H A D | 06-Jul-2017 | 24.7 KiB | 783 | 541 |
| e_os2.h | H A D | 06-Jul-2017 | 10.7 KiB | 329 | 182 |
| install.com | H A D | 06-Jul-2017 | 3.6 KiB | 137 | 136 |
| krb5.h | H A D | 06-Jul-2017 | 0 | 1 | 0 |
| makevms.com | H A D | 06-Jul-2017 | 39.2 KiB | 1,557 | 1,556 |
| openssl.doxy | H A D | 06-Jul-2017 | 137 | 8 | 7 |
| openssl.spec | H A D | 06-Jul-2017 | 7.8 KiB | 213 | 181 |
README
1
2 OpenSSL 1.0.2k-dev
3
4 Copyright (c) 1998-2015 The OpenSSL Project
5 Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson
6 All rights reserved.
7
8 DESCRIPTION
9 -----------
10
11 The OpenSSL Project is a collaborative effort to develop a robust,
12 commercial-grade, fully featured, and Open Source toolkit implementing the
13 Secure Sockets Layer (SSLv3) and Transport Layer Security (TLS) protocols as
14 well as a full-strength general purpose cryptograpic library. The project is
15 managed by a worldwide community of volunteers that use the Internet to
16 communicate, plan, and develop the OpenSSL toolkit and its related
17 documentation.
18
19 OpenSSL is descended from the SSLeay library developed by Eric A. Young
20 and Tim J. Hudson. The OpenSSL toolkit is licensed under a dual-license (the
21 OpenSSL license plus the SSLeay license), which means that you are free to
22 get and use it for commercial and non-commercial purposes as long as you
23 fulfill the conditions of both licenses.
24
25 OVERVIEW
26 --------
27
28 The OpenSSL toolkit includes:
29
30 libssl.a:
31 Provides the client and server-side implementations for SSLv3 and TLS.
32
33 libcrypto.a:
34 Provides general cryptographic and X.509 support needed by SSL/TLS but
35 not logically part of it.
36
37 openssl:
38 A command line tool that can be used for:
39 Creation of key parameters
40 Creation of X.509 certificates, CSRs and CRLs
41 Calculation of message digests
42 Encryption and decryption
43 SSL/TLS client and server tests
44 Handling of S/MIME signed or encrypted mail
45 And more...
46
47 INSTALLATION
48 ------------
49
50 See the appropriate file:
51 INSTALL Linux, Unix, etc.
52 INSTALL.DJGPP DOS platform with DJGPP
53 INSTALL.NW Netware
54 INSTALL.OS2 OS/2
55 INSTALL.VMS VMS
56 INSTALL.W32 Windows (32bit)
57 INSTALL.W64 Windows (64bit)
58 INSTALL.WCE Windows CE
59
60 SUPPORT
61 -------
62
63 See the OpenSSL website www.openssl.org for details on how to obtain
64 commercial technical support.
65
66 If you have any problems with OpenSSL then please take the following steps
67 first:
68
69 - Download the latest version from the repository
70 to see if the problem has already been addressed
71 - Configure with no-asm
72 - Remove compiler optimisation flags
73
74 If you wish to report a bug then please include the following information
75 and create an issue on GitHub:
76
77 - On Unix systems:
78 Self-test report generated by 'make report'
79 - On other systems:
80 OpenSSL version: output of 'openssl version -a'
81 OS Name, Version, Hardware platform
82 Compiler Details (name, version)
83 - Application Details (name, version)
84 - Problem Description (steps that will reproduce the problem, if known)
85 - Stack Traceback (if the application dumps core)
86
87 Just because something doesn't work the way you expect does not mean it
88 is necessarily a bug in OpenSSL.
89
90 HOW TO CONTRIBUTE TO OpenSSL
91 ----------------------------
92
93 See CONTRIBUTING
94
95 LEGALITIES
96 ----------
97
98 A number of nations restrict the use or export of cryptography. If you
99 are potentially subject to such restrictions you should seek competent
100 professional legal advice before attempting to develop or distribute
101 cryptographic code.
102
README.ASN1
1
2OpenSSL ASN1 Revision
3=====================
4
5This document describes some of the issues relating to the new ASN1 code.
6
7Previous OpenSSL ASN1 problems
8=============================
9
10OK why did the OpenSSL ASN1 code need revising in the first place? Well
11there are lots of reasons some of which are included below...
12
131. The code is difficult to read and write. For every single ASN1 structure
14(e.g. SEQUENCE) four functions need to be written for new, free, encode and
15decode operations. This is a very painful and error prone operation. Very few
16people have ever written any OpenSSL ASN1 and those that have usually wish
17they hadn't.
18
192. Partly because of 1. the code is bloated and takes up a disproportionate
20amount of space. The SEQUENCE encoder is particularly bad: it essentially
21contains two copies of the same operation, one to compute the SEQUENCE length
22and the other to encode it.
23
243. The code is memory based: that is it expects to be able to read the whole
25structure from memory. This is fine for small structures but if you have a
26(say) 1Gb PKCS#7 signedData structure it isn't such a good idea...
27
284. The code for the ASN1 IMPLICIT tag is evil. It is handled by temporarily
29changing the tag to the expected one, attempting to read it, then changing it
30back again. This means that decode buffers have to be writable even though they
31are ultimately unchanged. This gets in the way of constification.
32
335. The handling of EXPLICIT isn't much better. It adds a chunk of code into
34the decoder and encoder for every EXPLICIT tag.
35
366. APPLICATION and PRIVATE tags aren't even supported at all.
37
387. Even IMPLICIT isn't complete: there is no support for implicitly tagged
39types that are not OPTIONAL.
40
418. Much of the code assumes that a tag will fit in a single octet. This is
42only true if the tag is 30 or less (mercifully tags over 30 are rare).
43
449. The ASN1 CHOICE type has to be largely handled manually, there aren't any
45macros that properly support it.
46
4710. Encoders have no concept of OPTIONAL and have no error checking. If the
48passed structure contains a NULL in a mandatory field it will not be encoded,
49resulting in an invalid structure.
50
5111. It is tricky to add ASN1 encoders and decoders to external applications.
52
53Template model
54==============
55
56One of the major problems with revision is the sheer volume of the ASN1 code.
57Attempts to change (for example) the IMPLICIT behaviour would result in a
58modification of *every* single decode function.
59
60I decided to adopt a template based approach. I'm using the term 'template'
61in a manner similar to SNACC templates: it has nothing to do with C++
62templates.
63
64A template is a description of an ASN1 module as several constant C structures.
65It describes in a machine readable way exactly how the ASN1 structure should
66behave. If this template contains enough detail then it is possible to write
67versions of new, free, encode, decode (and possibly others operations) that
68operate on templates.
69
70Instead of having to write code to handle each operation only a single
71template needs to be written. If new operations are needed (such as a 'print'
72operation) only a single new template based function needs to be written
73which will then automatically handle all existing templates.
74
75Plans for revision
76==================
77
78The revision will consist of the following steps. Other than the first two
79these can be handled in any order.
80
81o Design and write template new, free, encode and decode operations, initially
82memory based. *DONE*
83
84o Convert existing ASN1 code to template form. *IN PROGRESS*
85
86o Convert an existing ASN1 compiler (probably SNACC) to output templates
87in OpenSSL form.
88
89o Add support for BIO based ASN1 encoders and decoders to handle large
90structures, initially blocking I/O.
91
92o Add support for non blocking I/O: this is quite a bit harder than blocking
93I/O.
94
95o Add new ASN1 structures, such as OCSP, CRMF, S/MIME v3 (CMS), attribute
96certificates etc etc.
97
98Description of major changes
99============================
100
101The BOOLEAN type now takes three values. 0xff is TRUE, 0 is FALSE and -1 is
102absent. The meaning of absent depends on the context. If for example the
103boolean type is DEFAULT FALSE (as in the case of the critical flag for
104certificate extensions) then -1 is FALSE, if DEFAULT TRUE then -1 is TRUE.
105Usually the value will only ever be read via an API which will hide this from
106an application.
107
108There is an evil bug in the old ASN1 code that mishandles OPTIONAL with
109SEQUENCE OF or SET OF. These are both implemented as a STACK structure. The
110old code would omit the structure if the STACK was NULL (which is fine) or if
111it had zero elements (which is NOT OK). This causes problems because an empty
112SEQUENCE OF or SET OF will result in an empty STACK when it is decoded but when
113it is encoded it will be omitted resulting in different encodings. The new code
114only omits the encoding if the STACK is NULL, if it contains zero elements it
115is encoded and empty. There is an additional problem though: because an empty
116STACK was omitted, sometimes the corresponding *_new() function would
117initialize the STACK to empty so an application could immediately use it, if
118this is done with the new code (i.e. a NULL) it wont work. Therefore a new
119STACK should be allocated first. One instance of this is the X509_CRL list of
120revoked certificates: a helper function X509_CRL_add0_revoked() has been added
121for this purpose.
122
123The X509_ATTRIBUTE structure used to have an element called 'set' which took
124the value 1 if the attribute value was a SET OF or 0 if it was a single. Due
125to the behaviour of CHOICE in the new code this has been changed to a field
126called 'single' which is 0 for a SET OF and 1 for single. The old field has
127been deleted to deliberately break source compatibility. Since this structure
128is normally accessed via higher level functions this shouldn't break too much.
129
130The X509_REQ_INFO certificate request info structure no longer has a field
131called 'req_kludge'. This used to be set to 1 if the attributes field was
132(incorrectly) omitted. You can check to see if the field is omitted now by
133checking if the attributes field is NULL. Similarly if you need to omit
134the field then free attributes and set it to NULL.
135
136The top level 'detached' field in the PKCS7 structure is no longer set when
137a PKCS#7 structure is read in. PKCS7_is_detached() should be called instead.
138The behaviour of PKCS7_get_detached() is unaffected.
139
140The values of 'type' in the GENERAL_NAME structure have changed. This is
141because the old code use the ASN1 initial octet as the selector. The new
142code uses the index in the ASN1_CHOICE template.
143
144The DIST_POINT_NAME structure has changed to be a true CHOICE type.
145
146typedef struct DIST_POINT_NAME_st {
147int type;
148union {
149 STACK_OF(GENERAL_NAME) *fullname;
150 STACK_OF(X509_NAME_ENTRY) *relativename;
151} name;
152} DIST_POINT_NAME;
153
154This means that name.fullname or name.relativename should be set
155and type reflects the option. That is if name.fullname is set then
156type is 0 and if name.relativename is set type is 1.
157
158With the old code using the i2d functions would typically involve:
159
160unsigned char *buf, *p;
161int len;
162/* Find length of encoding */
163len = i2d_SOMETHING(x, NULL);
164/* Allocate buffer */
165buf = OPENSSL_malloc(len);
166if(buf == NULL) {
167 /* Malloc error */
168}
169/* Use temp variable because &p gets updated to point to end of
170 * encoding.
171 */
172p = buf;
173i2d_SOMETHING(x, &p);
174
175
176Using the new i2d you can also do:
177
178unsigned char *buf = NULL;
179int len;
180len = i2d_SOMETHING(x, &buf);
181if(len < 0) {
182 /* Malloc error */
183}
184
185and it will automatically allocate and populate a buffer with the
186encoding. After this call 'buf' will point to the start of the
187encoding which is len bytes long.
188
README.ENGINE
1 ENGINE
2 ======
3
4 With OpenSSL 0.9.6, a new component was added to support alternative
5 cryptography implementations, most commonly for interfacing with external
6 crypto devices (eg. accelerator cards). This component is called ENGINE,
7 and its presence in OpenSSL 0.9.6 (and subsequent bug-fix releases)
8 caused a little confusion as 0.9.6** releases were rolled in two
9 versions, a "standard" and an "engine" version. In development for 0.9.7,
10 the ENGINE code has been merged into the main branch and will be present
11 in the standard releases from 0.9.7 forwards.
12
13 There are currently built-in ENGINE implementations for the following
14 crypto devices:
15
16 o CryptoSwift
17 o Compaq Atalla
18 o nCipher CHIL
19 o Nuron
20 o Broadcom uBSec
21
22 In addition, dynamic binding to external ENGINE implementations is now
23 provided by a special ENGINE called "dynamic". See the "DYNAMIC ENGINE"
24 section below for details.
25
26 At this stage, a number of things are still needed and are being worked on:
27
28 1 Integration of EVP support.
29 2 Configuration support.
30 3 Documentation!
31
321 With respect to EVP, this relates to support for ciphers and digests in
33 the ENGINE model so that alternative implementations of existing
34 algorithms/modes (or previously unimplemented ones) can be provided by
35 ENGINE implementations.
36
372 Configuration support currently exists in the ENGINE API itself, in the
38 form of "control commands". These allow an application to expose to the
39 user/admin the set of commands and parameter types a given ENGINE
40 implementation supports, and for an application to directly feed string
41 based input to those ENGINEs, in the form of name-value pairs. This is an
42 extensible way for ENGINEs to define their own "configuration" mechanisms
43 that are specific to a given ENGINE (eg. for a particular hardware
44 device) but that should be consistent across *all* OpenSSL-based
45 applications when they use that ENGINE. Work is in progress (or at least
46 in planning) for supporting these control commands from the CONF (or
47 NCONF) code so that applications using OpenSSL's existing configuration
48 file format can have ENGINE settings specified in much the same way.
49 Presently however, applications must use the ENGINE API itself to provide
50 such functionality. To see first hand the types of commands available
51 with the various compiled-in ENGINEs (see further down for dynamic
52 ENGINEs), use the "engine" openssl utility with full verbosity, ie;
53 openssl engine -vvvv
54
553 Documentation? Volunteers welcome! The source code is reasonably well
56 self-documenting, but some summaries and usage instructions are needed -
57 moreover, they are needed in the same POD format the existing OpenSSL
58 documentation is provided in. Any complete or incomplete contributions
59 would help make this happen.
60
61 STABILITY & BUG-REPORTS
62 =======================
63
64 What already exists is fairly stable as far as it has been tested, but
65 the test base has been a bit small most of the time. For the most part,
66 the vendors of the devices these ENGINEs support have contributed to the
67 development and/or testing of the implementations, and *usually* (with no
68 guarantees) have experience in using the ENGINE support to drive their
69 devices from common OpenSSL-based applications. Bugs and/or inexplicable
70 behaviour in using a specific ENGINE implementation should be sent to the
71 author of that implementation (if it is mentioned in the corresponding C
72 file), and in the case of implementations for commercial hardware
73 devices, also through whatever vendor support channels are available. If
74 none of this is possible, or the problem seems to be something about the
75 ENGINE API itself (ie. not necessarily specific to a particular ENGINE
76 implementation) then you should mail complete details to the relevant
77 OpenSSL mailing list. For a definition of "complete details", refer to
78 the OpenSSL "README" file. As for which list to send it to;
79
80 openssl-users: if you are *using* the ENGINE abstraction, either in an
81 pre-compiled application or in your own application code.
82
83 openssl-dev: if you are discussing problems with OpenSSL source code.
84
85 USAGE
86 =====
87
88 The default "openssl" ENGINE is always chosen when performing crypto
89 operations unless you specify otherwise. You must actively tell the
90 openssl utility commands to use anything else through a new command line
91 switch called "-engine". Also, if you want to use the ENGINE support in
92 your own code to do something similar, you must likewise explicitly
93 select the ENGINE implementation you want.
94
95 Depending on the type of hardware, system, and configuration, "settings"
96 may need to be applied to an ENGINE for it to function as expected/hoped.
97 The recommended way of doing this is for the application to support
98 ENGINE "control commands" so that each ENGINE implementation can provide
99 whatever configuration primitives it might require and the application
100 can allow the user/admin (and thus the hardware vendor's support desk
101 also) to provide any such input directly to the ENGINE implementation.
102 This way, applications do not need to know anything specific to any
103 device, they only need to provide the means to carry such user/admin
104 input through to the ENGINE in question. Ie. this connects *you* (and
105 your helpdesk) to the specific ENGINE implementation (and device), and
106 allows application authors to not get buried in hassle supporting
107 arbitrary devices they know (and care) nothing about.
108
109 A new "openssl" utility, "openssl engine", has been added in that allows
110 for testing and examination of ENGINE implementations. Basic usage
111 instructions are available by specifying the "-?" command line switch.
112
113 DYNAMIC ENGINES
114 ===============
115
116 The new "dynamic" ENGINE provides a low-overhead way to support ENGINE
117 implementations that aren't pre-compiled and linked into OpenSSL-based
118 applications. This could be because existing compiled-in implementations
119 have known problems and you wish to use a newer version with an existing
120 application. It could equally be because the application (or OpenSSL
121 library) you are using simply doesn't have support for the ENGINE you
122 wish to use, and the ENGINE provider (eg. hardware vendor) is providing
123 you with a self-contained implementation in the form of a shared-library.
124 The other use-case for "dynamic" is with applications that wish to
125 maintain the smallest foot-print possible and so do not link in various
126 ENGINE implementations from OpenSSL, but instead leaves you to provide
127 them, if you want them, in the form of "dynamic"-loadable
128 shared-libraries. It should be possible for hardware vendors to provide
129 their own shared-libraries to support arbitrary hardware to work with
130 applications based on OpenSSL 0.9.7 or later. If you're using an
131 application based on 0.9.7 (or later) and the support you desire is only
132 announced for versions later than the one you need, ask the vendor to
133 backport their ENGINE to the version you need.
134
135 How does "dynamic" work?
136 ------------------------
137 The dynamic ENGINE has a special flag in its implementation such that
138 every time application code asks for the 'dynamic' ENGINE, it in fact
139 gets its own copy of it. As such, multi-threaded code (or code that
140 multiplexes multiple uses of 'dynamic' in a single application in any
141 way at all) does not get confused by 'dynamic' being used to do many
142 independent things. Other ENGINEs typically don't do this so there is
143 only ever 1 ENGINE structure of its type (and reference counts are used
144 to keep order). The dynamic ENGINE itself provides absolutely no
145 cryptographic functionality, and any attempt to "initialise" the ENGINE
146 automatically fails. All it does provide are a few "control commands"
147 that can be used to control how it will load an external ENGINE
148 implementation from a shared-library. To see these control commands,
149 use the command-line;
150
151 openssl engine -vvvv dynamic
152
153 The "SO_PATH" control command should be used to identify the
154 shared-library that contains the ENGINE implementation, and "NO_VCHECK"
155 might possibly be useful if there is a minor version conflict and you
156 (or a vendor helpdesk) is convinced you can safely ignore it.
157 "ID" is probably only needed if a shared-library implements
158 multiple ENGINEs, but if you know the engine id you expect to be using,
159 it doesn't hurt to specify it (and this provides a sanity check if
160 nothing else). "LIST_ADD" is only required if you actually wish the
161 loaded ENGINE to be discoverable by application code later on using the
162 ENGINE's "id". For most applications, this isn't necessary - but some
163 application authors may have nifty reasons for using it. The "LOAD"
164 command is the only one that takes no parameters and is the command
165 that uses the settings from any previous commands to actually *load*
166 the shared-library ENGINE implementation. If this command succeeds, the
167 (copy of the) 'dynamic' ENGINE will magically morph into the ENGINE
168 that has been loaded from the shared-library. As such, any control
169 commands supported by the loaded ENGINE could then be executed as per
170 normal. Eg. if ENGINE "foo" is implemented in the shared-library
171 "libfoo.so" and it supports some special control command "CMD_FOO", the
172 following code would load and use it (NB: obviously this code has no
173 error checking);
174
175 ENGINE *e = ENGINE_by_id("dynamic");
176 ENGINE_ctrl_cmd_string(e, "SO_PATH", "/lib/libfoo.so", 0);
177 ENGINE_ctrl_cmd_string(e, "ID", "foo", 0);
178 ENGINE_ctrl_cmd_string(e, "LOAD", NULL, 0);
179 ENGINE_ctrl_cmd_string(e, "CMD_FOO", "some input data", 0);
180
181 For testing, the "openssl engine" utility can be useful for this sort
182 of thing. For example the above code excerpt would achieve much the
183 same result as;
184
185 openssl engine dynamic \
186 -pre SO_PATH:/lib/libfoo.so \
187 -pre ID:foo \
188 -pre LOAD \
189 -pre "CMD_FOO:some input data"
190
191 Or to simply see the list of commands supported by the "foo" ENGINE;
192
193 openssl engine -vvvv dynamic \
194 -pre SO_PATH:/lib/libfoo.so \
195 -pre ID:foo \
196 -pre LOAD
197
198 Applications that support the ENGINE API and more specifically, the
199 "control commands" mechanism, will provide some way for you to pass
200 such commands through to ENGINEs. As such, you would select "dynamic"
201 as the ENGINE to use, and the parameters/commands you pass would
202 control the *actual* ENGINE used. Each command is actually a name-value
203 pair and the value can sometimes be omitted (eg. the "LOAD" command).
204 Whilst the syntax demonstrated in "openssl engine" uses a colon to
205 separate the command name from the value, applications may provide
206 their own syntax for making that separation (eg. a win32 registry
207 key-value pair may be used by some applications). The reason for the
208 "-pre" syntax in the "openssl engine" utility is that some commands
209 might be issued to an ENGINE *after* it has been initialised for use.
210 Eg. if an ENGINE implementation requires a smart-card to be inserted
211 during initialisation (or a PIN to be typed, or whatever), there may be
212 a control command you can issue afterwards to "forget" the smart-card
213 so that additional initialisation is no longer possible. In
214 applications such as web-servers, where potentially volatile code may
215 run on the same host system, this may provide some arguable security
216 value. In such a case, the command would be passed to the ENGINE after
217 it has been initialised for use, and so the "-post" switch would be
218 used instead. Applications may provide a different syntax for
219 supporting this distinction, and some may simply not provide it at all
220 ("-pre" is almost always what you're after, in reality).
221
222 How do I build a "dynamic" ENGINE?
223 ----------------------------------
224 This question is trickier - currently OpenSSL bundles various ENGINE
225 implementations that are statically built in, and any application that
226 calls the "ENGINE_load_builtin_engines()" function will automatically
227 have all such ENGINEs available (and occupying memory). Applications
228 that don't call that function have no ENGINEs available like that and
229 would have to use "dynamic" to load any such ENGINE - but on the other
230 hand such applications would only have the memory footprint of any
231 ENGINEs explicitly loaded using user/admin provided control commands.
232 The main advantage of not statically linking ENGINEs and only using
233 "dynamic" for hardware support is that any installation using no
234 "external" ENGINE suffers no unnecessary memory footprint from unused
235 ENGINEs. Likewise, installations that do require an ENGINE incur the
236 overheads from only *that* ENGINE once it has been loaded.
237
238 Sounds good? Maybe, but currently building an ENGINE implementation as
239 a shared-library that can be loaded by "dynamic" isn't automated in
240 OpenSSL's build process. It can be done manually quite easily however.
241 Such a shared-library can either be built with any OpenSSL code it
242 needs statically linked in, or it can link dynamically against OpenSSL
243 if OpenSSL itself is built as a shared library. The instructions are
244 the same in each case, but in the former (statically linked any
245 dependencies on OpenSSL) you must ensure OpenSSL is built with
246 position-independent code ("PIC"). The default OpenSSL compilation may
247 already specify the relevant flags to do this, but you should consult
248 with your compiler documentation if you are in any doubt.
249
250 This example will show building the "atalla" ENGINE in the
251 crypto/engine/ directory as a shared-library for use via the "dynamic"
252 ENGINE.
253 1) "cd" to the crypto/engine/ directory of a pre-compiled OpenSSL
254 source tree.
255 2) Recompile at least one source file so you can see all the compiler
256 flags (and syntax) being used to build normally. Eg;
257 touch hw_atalla.c ; make
258 will rebuild "hw_atalla.o" using all such flags.
259 3) Manually enter the same compilation line to compile the
260 "hw_atalla.c" file but with the following two changes;
261 (a) add "-DENGINE_DYNAMIC_SUPPORT" to the command line switches,
262 (b) change the output file from "hw_atalla.o" to something new,
263 eg. "tmp_atalla.o"
264 4) Link "tmp_atalla.o" into a shared-library using the top-level
265 OpenSSL libraries to resolve any dependencies. The syntax for doing
266 this depends heavily on your system/compiler and is a nightmare
267 known well to anyone who has worked with shared-library portability
268 before. 'gcc' on Linux, for example, would use the following syntax;
269 gcc -shared -o dyn_atalla.so tmp_atalla.o -L../.. -lcrypto
270 5) Test your shared library using "openssl engine" as explained in the
271 previous section. Eg. from the top-level directory, you might try;
272 apps/openssl engine -vvvv dynamic \
273 -pre SO_PATH:./crypto/engine/dyn_atalla.so -pre LOAD
274 If the shared-library loads successfully, you will see both "-pre"
275 commands marked as "SUCCESS" and the list of control commands
276 displayed (because of "-vvvv") will be the control commands for the
277 *atalla* ENGINE (ie. *not* the 'dynamic' ENGINE). You can also add
278 the "-t" switch to the utility if you want it to try and initialise
279 the atalla ENGINE for use to test any possible hardware/driver
280 issues.
281
282 PROBLEMS
283 ========
284
285 It seems like the ENGINE part doesn't work too well with CryptoSwift on Win32.
286 A quick test done right before the release showed that trying "openssl speed
287 -engine cswift" generated errors. If the DSO gets enabled, an attempt is made
288 to write at memory address 0x00000002.
289
290
README.md
1OpenSSL
2================
3
4Build status for target linux-x86_64: [![Build Status](https://travis-ci.org/PeterMosmans/openssl.svg?branch=1.0.2-chacha)](https://travis-ci.org/PeterMosmans/openssl)
5
6This is a fork of the official OpenSSL github repository at https://github.com/openssl/openssl.git
7
8You're looking at the 1.0.2-chacha branch, which aligns with the
9`OpenSSL_1_0_2-stable` branch. The source from the official branch is merged on a
10regular base.
11
12The main reason of the fork is to include ChaCha20, Poly1305, other
13(experimental/insecure) ciphers, and to add some extra features to s_client. It
14should compile 'as least as good' as the official `OpenSSL_1_0_2-stable` branch.
15
16#### Security notices
17Please note that some security restrictions have been removed on purpose: In
18contrast of the official fork, this version of openssl for
19instance
20[does not restrict the size of DH parameters](https://github.com/PeterMosmans/openssl/commit/1fb62ccc6360a4c29fc24fbc0ec82508356752fc).
21It also enables a lot of extra ciphers deemed *insecure*, so please be aware to
22explicity enable only those ciphers that you trust, and disable the rest.
23
24#### Latest news
25This branch is up to date with the OpenSSL 1.0.2k dev version, and contains the fixes for CVE-2016-6304 from 09-09-2016 (and all earlier published CVE fixes).
26
27#### Goals
28The main goals of this fork are
29
301. add as much ciphers and (test) functionality as possible
312. to keep the source as aligned to the original as possible
323. keep the patches transparent (easily applicable to the original source)
334. keep the patches maintainable
345. write as little custom/new code as possible
35
36#### More information
37See [https://www.onwebsecurity.com/announcements/the-work-flow-of-the-full-featured-openssl-fork-chacha20poly1305.html](https://www.onwebsecurity.com/announcements/the-work-flow-of-the-full-featured-openssl-fork-chacha20poly1305.html) for detailed differences between the official openssl source and this fork, and on the workflow of keeping everything as up-to-date as possible.
38
39Please see [https://www.onwebsecurity.com/announcements/replacing-chacha20poly1305-a-new-owner.html](https://www.onwebsecurity.com/announcements/replacing-chacha20poly1305-a-new-owner.html) for information about the future of the current ChaCha20 / Poly1305 code.
40
41#### Additions
42##### Ciphers
43* Added ChaCha20 and Poly1305 ciphers (backported from the upstream 1.0.2-aead branch)
44+ [Re-enabled elliptic curves < 256 bit](https://github.com/PeterMosmans/openssl/commit/f340dabc859192f9805919793834094b14e55a9b)
45* [Added TLS-RSA-PSK ciphers](https://github.com/PeterMosmans/openssl/commit/ba47950a02a380413f3e5dbf8d94a89eb9e2fb42)
46* [Added SHA256 CAMELLIA ciphers (cherry-picked from the upstream master branch)](https://github.com/PeterMosmans/openssl/commit/535e141f0e9df912232a6bd2ece72f30945962a1)
47* [Added HMAC based CAMELLIA ciphers](https://github.com/PeterMosmans/openssl/commit/8efbb71e40b99e86741aafd6a3c95b941a26e5ce)
48* [Enabled experimental features](https://github.com/PeterMosmans/openssl/commit/8c722ce5fb005a1886e2d76e788cc3441592490e)
49* [Enabled even more ciphers](https://github.com/PeterMosmans/openssl/commit/c77a5fc708c9e88bce2c0c742f419ac908cd44d)
50* [Removed the DH parameters restriction](https://github.com/PeterMosmans/openssl/commit/1fb62ccc6360a4c29fc24fbc0ec82508356752fc)
51* [Re-enabled certain export ciphers](https://github.com/PeterMosmans/openssl/commit/8ae2e1d49308e0b1ff2e91beca1ad04e6e163a9a)
52
53##### s_client
54* [-no_tlsext addition](https://github.com/PeterMosmans/openssl/commit/c1348037c3bdf6a2c024f3572f0d1141b5d57e4f)
55* -proxy (RT #2651)
56* -starttls telnet (RT #2451)
57* [-starttls xmpp improvement (RT #2860)](https://github.com/PeterMosmans/openssl/commit/854eb9c88da8b742c1d77a11058fcd0d4036c0da)
58* [-starttls ldap support (RT #2665)](https://github.com/PeterMosmans/openssl/commit/f7e338776d998cb2f2d9ff133473cc87b337821a)
59* [-starttls postgres support (github #683)](https://github.com/PeterMosmans/openssl/commit/6191e6ba1357085c8480ff93ed9cd8c2a8928b1d)
60* [-starttls postgres support (fix)](https://github.com/PeterMosmans/openssl/commit/0a4848da6e8f3a6915f05cdd22f83e59dfa2edcc)
61* [-fix Windows blocking (RT #3464)](https://github.com/PeterMosmans/openssl/commit/68ab9b308e173072e5015063be7e194bec1f311f)
62* [backported MySQL support from master](https://github.com/PeterMosmans/openssl/commit/72657fd9dc4341079e716b737c0c01ec4007a434)
63
64##### generic
65* Minor changes to Makefiles to simplify building using the mingw / mingw64 platform on Windows
66* [-universal build time instead of local build time](https://github.com/PeterMosmans/openssl/commit/51cf1c9043efdc06937c0d3550ff8f6fd8e43e1f)
67* [Test all SSL ciphers by default (RT #2584)](https://github.com/PeterMosmans/openssl/commit/85f54b0907f8b7bd67336b742b162effb154ed20)
68
69
70#### Thanks to
71* [Dirk Wetter](https://github.com/drwetter)
72* [Hubert Kario](https://github.com/tomato42)
73* [Stefan Zehl](https://github.com/Sec42)
74* [David Cooper](https://github.com/dcooper16)
75* [Steven Danneman](https://github.com/sdann)
76
77#### Windows binaries
78The latest binary Windows 64-bit builds of these branches can be found
79at
80[https://www.onwebsecurity.com/pages/openssl.html](https://www.onwebsecurity.com/pages/openssl.html)
81
82Please see the official OpenSSL repository for all relevant license / copyright info. This repository is merely a fork of their great work with some minimal merges, additions and changes.
83
84#### GOST support
85Note that you'll have to make sure that your openssl.cnf contains the following lines to use GOST ciphers:
86
87```
88openssl_conf=openssl_def
89
90[openssl_def]
91engines=engine_section
92
93[engine_section]
94gost=gost_section
95
96[gost_section]
97default_algorithms=ALL
98CRYPT_PARAMS=id-Gost28147-89-CryptoPro-A-ParamSet
99```
100
101#### Supported ciphers
102Currently 183
103
104```
105openssl ciphers -l -V "ALL:COMPLEMENTOFALL"
106
107 0xCC,0x14 - ECDHE-ECDSA-CHACHA20-POLY1305 TLSv1.2 Kx=ECDH Au=ECDSA Enc=ChaCha20(256) Mac=AEAD
108 0xCC,0x13 - ECDHE-RSA-CHACHA20-POLY1305 TLSv1.2 Kx=ECDH Au=RSA Enc=ChaCha20(256) Mac=AEAD
109 0xCC,0x15 - DHE-RSA-CHACHA20-POLY1305 TLSv1.2 Kx=DH Au=RSA Enc=ChaCha20(256) Mac=AEAD
110 0xC0,0x30 - ECDHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(256) Mac=AEAD
111 0xC0,0x2C - ECDHE-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(256) Mac=AEAD
112 0xC0,0x28 - ECDHE-RSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA384
113 0xC0,0x24 - ECDHE-ECDSA-AES256-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA384
114 0xC0,0x14 - ECDHE-RSA-AES256-SHA SSLv3 Kx=ECDH Au=RSA Enc=AES(256) Mac=SHA1
115 0xC0,0x0A - ECDHE-ECDSA-AES256-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=AES(256) Mac=SHA1
116 0xC0,0x22 - SRP-DSS-AES-256-CBC-SHA SSLv3 Kx=SRP Au=DSS Enc=AES(256) Mac=SHA1
117 0xC0,0x21 - SRP-RSA-AES-256-CBC-SHA SSLv3 Kx=SRP Au=RSA Enc=AES(256) Mac=SHA1
118 0xC0,0x20 - SRP-AES-256-CBC-SHA SSLv3 Kx=SRP Au=SRP Enc=AES(256) Mac=SHA1
119 0x00,0xA5 - DH-DSS-AES256-GCM-SHA384 TLSv1.2 Kx=DH/DSS Au=DH Enc=AESGCM(256) Mac=AEAD
120 0x00,0xA3 - DHE-DSS-AES256-GCM-SHA384 TLSv1.2 Kx=DH Au=DSS Enc=AESGCM(256) Mac=AEAD
121 0x00,0xA1 - DH-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=DH/RSA Au=DH Enc=AESGCM(256) Mac=AEAD
122 0x00,0x9F - DHE-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=DH Au=RSA Enc=AESGCM(256) Mac=AEAD
123 0x00,0x6B - DHE-RSA-AES256-SHA256 TLSv1.2 Kx=DH Au=RSA Enc=AES(256) Mac=SHA256
124 0x00,0x6A - DHE-DSS-AES256-SHA256 TLSv1.2 Kx=DH Au=DSS Enc=AES(256) Mac=SHA256
125 0x00,0x69 - DH-RSA-AES256-SHA256 TLSv1.2 Kx=DH/RSA Au=DH Enc=AES(256) Mac=SHA256
126 0x00,0x68 - DH-DSS-AES256-SHA256 TLSv1.2 Kx=DH/DSS Au=DH Enc=AES(256) Mac=SHA256
127 0x00,0x39 - DHE-RSA-AES256-SHA SSLv3 Kx=DH Au=RSA Enc=AES(256) Mac=SHA1
128 0x00,0x38 - DHE-DSS-AES256-SHA SSLv3 Kx=DH Au=DSS Enc=AES(256) Mac=SHA1
129 0x00,0x37 - DH-RSA-AES256-SHA SSLv3 Kx=DH/RSA Au=DH Enc=AES(256) Mac=SHA1
130 0x00,0x36 - DH-DSS-AES256-SHA SSLv3 Kx=DH/DSS Au=DH Enc=AES(256) Mac=SHA1
131 0xC0,0x77 - ECDHE-RSA-CAMELLIA256-SHA384 TLSv1.2 Kx=ECDH Au=RSA Enc=Camellia(256) Mac=SHA384
132 0xC0,0x73 - ECDHE-ECDSA-CAMELLIA256-SHA384 TLSv1.2 Kx=ECDH Au=ECDSA Enc=Camellia(256) Mac=SHA384
133 0x00,0xC4 - DHE-RSA-CAMELLIA256-SHA256 TLSv1.2 Kx=DH Au=RSA Enc=Camellia(256) Mac=SHA256
134 0x00,0xC3 - DHE-DSS-CAMELLIA256-SHA256 TLSv1.2 Kx=DH Au=DSS Enc=Camellia(256) Mac=SHA256
135 0x00,0xC2 - DH-RSA-CAMELLIA256-SHA256 TLSv1.2 Kx=DH/RSA Au=DH Enc=Camellia(256) Mac=SHA256
136 0x00,0xC1 - DH-DSS-CAMELLIA256-SHA256 TLSv1.2 Kx=DH/DSS Au=DH Enc=Camellia(256) Mac=SHA256
137 0x00,0x88 - DHE-RSA-CAMELLIA256-SHA SSLv3 Kx=DH Au=RSA Enc=Camellia(256) Mac=SHA1
138 0x00,0x87 - DHE-DSS-CAMELLIA256-SHA SSLv3 Kx=DH Au=DSS Enc=Camellia(256) Mac=SHA1
139 0x00,0x86 - DH-RSA-CAMELLIA256-SHA SSLv3 Kx=DH/RSA Au=DH Enc=Camellia(256) Mac=SHA1
140 0x00,0x85 - DH-DSS-CAMELLIA256-SHA SSLv3 Kx=DH/DSS Au=DH Enc=Camellia(256) Mac=SHA1
141 0x00,0x81 - GOST2001-GOST89-GOST89 SSLv3 Kx=GOST Au=GOST01 Enc=GOST89(256) Mac=GOST89
142 0x00,0x80 - GOST94-GOST89-GOST89 SSLv3 Kx=GOST Au=GOST94 Enc=GOST89(256) Mac=GOST89
143 0xC0,0x19 - AECDH-AES256-SHA SSLv3 Kx=ECDH Au=None Enc=AES(256) Mac=SHA1
144 0x00,0xA7 - ADH-AES256-GCM-SHA384 TLSv1.2 Kx=DH Au=None Enc=AESGCM(256) Mac=AEAD
145 0x00,0x6D - ADH-AES256-SHA256 TLSv1.2 Kx=DH Au=None Enc=AES(256) Mac=SHA256
146 0x00,0x3A - ADH-AES256-SHA SSLv3 Kx=DH Au=None Enc=AES(256) Mac=SHA1
147 0x00,0xC5 - ADH-CAMELLIA256-SHA256 TLSv1.2 Kx=DH Au=None Enc=Camellia(256) Mac=SHA256
148 0x00,0x89 - ADH-CAMELLIA256-SHA SSLv3 Kx=DH Au=None Enc=Camellia(256) Mac=SHA1
149 0xC0,0x32 - ECDH-RSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=AESGCM(256) Mac=AEAD
150 0xC0,0x2E - ECDH-ECDSA-AES256-GCM-SHA384 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=AESGCM(256) Mac=AEAD
151 0xC0,0x2A - ECDH-RSA-AES256-SHA384 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=AES(256) Mac=SHA384
152 0xC0,0x26 - ECDH-ECDSA-AES256-SHA384 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=AES(256) Mac=SHA384
153 0xC0,0x0F - ECDH-RSA-AES256-SHA SSLv3 Kx=ECDH/RSA Au=ECDH Enc=AES(256) Mac=SHA1
154 0xC0,0x05 - ECDH-ECDSA-AES256-SHA SSLv3 Kx=ECDH/ECDSA Au=ECDH Enc=AES(256) Mac=SHA1
155 0xC0,0x79 - ECDH-RSA-CAMELLIA256-SHA384 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=Camellia(256) Mac=SHA384
156 0xC0,0x75 - ECDH-ECDSA-CAMELLIA256-SHA384 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=Camellia(256) Mac=SHA384
157 0x00,0x9D - AES256-GCM-SHA384 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(256) Mac=AEAD
158 0x00,0x3D - AES256-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA256
159 0x00,0x35 - AES256-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(256) Mac=SHA1
160 0x00,0xC0 - CAMELLIA256-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=Camellia(256) Mac=SHA256
161 0x00,0x84 - CAMELLIA256-SHA SSLv3 Kx=RSA Au=RSA Enc=Camellia(256) Mac=SHA1
162 0x00,0x95 - RSA-PSK-AES256-CBC-SHA SSLv3 Kx=RSAPSK Au=RSA Enc=AES(256) Mac=SHA1
163 0x00,0x8D - PSK-AES256-CBC-SHA SSLv3 Kx=PSK Au=PSK Enc=AES(256) Mac=SHA1
164 0xC0,0x2F - ECDHE-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH Au=RSA Enc=AESGCM(128) Mac=AEAD
165 0xC0,0x2B - ECDHE-ECDSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AESGCM(128) Mac=AEAD
166 0xC0,0x27 - ECDHE-RSA-AES128-SHA256 TLSv1.2 Kx=ECDH Au=RSA Enc=AES(128) Mac=SHA256
167 0xC0,0x23 - ECDHE-ECDSA-AES128-SHA256 TLSv1.2 Kx=ECDH Au=ECDSA Enc=AES(128) Mac=SHA256
168 0xC0,0x13 - ECDHE-RSA-AES128-SHA SSLv3 Kx=ECDH Au=RSA Enc=AES(128) Mac=SHA1
169 0xC0,0x09 - ECDHE-ECDSA-AES128-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=AES(128) Mac=SHA1
170 0xC0,0x1F - SRP-DSS-AES-128-CBC-SHA SSLv3 Kx=SRP Au=DSS Enc=AES(128) Mac=SHA1
171 0xC0,0x1E - SRP-RSA-AES-128-CBC-SHA SSLv3 Kx=SRP Au=RSA Enc=AES(128) Mac=SHA1
172 0xC0,0x1D - SRP-AES-128-CBC-SHA SSLv3 Kx=SRP Au=SRP Enc=AES(128) Mac=SHA1
173 0x00,0xA4 - DH-DSS-AES128-GCM-SHA256 TLSv1.2 Kx=DH/DSS Au=DH Enc=AESGCM(128) Mac=AEAD
174 0x00,0xA2 - DHE-DSS-AES128-GCM-SHA256 TLSv1.2 Kx=DH Au=DSS Enc=AESGCM(128) Mac=AEAD
175 0x00,0xA0 - DH-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=DH/RSA Au=DH Enc=AESGCM(128) Mac=AEAD
176 0x00,0x9E - DHE-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=DH Au=RSA Enc=AESGCM(128) Mac=AEAD
177 0x00,0x67 - DHE-RSA-AES128-SHA256 TLSv1.2 Kx=DH Au=RSA Enc=AES(128) Mac=SHA256
178 0x00,0x40 - DHE-DSS-AES128-SHA256 TLSv1.2 Kx=DH Au=DSS Enc=AES(128) Mac=SHA256
179 0x00,0x3F - DH-RSA-AES128-SHA256 TLSv1.2 Kx=DH/RSA Au=DH Enc=AES(128) Mac=SHA256
180 0x00,0x3E - DH-DSS-AES128-SHA256 TLSv1.2 Kx=DH/DSS Au=DH Enc=AES(128) Mac=SHA256
181 0x00,0x33 - DHE-RSA-AES128-SHA SSLv3 Kx=DH Au=RSA Enc=AES(128) Mac=SHA1
182 0x00,0x32 - DHE-DSS-AES128-SHA SSLv3 Kx=DH Au=DSS Enc=AES(128) Mac=SHA1
183 0x00,0x31 - DH-RSA-AES128-SHA SSLv3 Kx=DH/RSA Au=DH Enc=AES(128) Mac=SHA1
184 0x00,0x30 - DH-DSS-AES128-SHA SSLv3 Kx=DH/DSS Au=DH Enc=AES(128) Mac=SHA1
185 0xC0,0x76 - ECDHE-RSA-CAMELLIA128-SHA256 TLSv1.2 Kx=ECDH Au=RSA Enc=Camellia(128) Mac=SHA256
186 0xC0,0x72 - ECDHE-ECDSA-CAMELLIA128-SHA256 TLSv1.2 Kx=ECDH Au=ECDSA Enc=Camellia(128) Mac=SHA256
187 0x00,0xBE - DHE-RSA-CAMELLIA128-SHA256 TLSv1.2 Kx=DH Au=RSA Enc=Camellia(128) Mac=SHA256
188 0x00,0xBD - DHE-DSS-CAMELLIA128-SHA256 TLSv1.2 Kx=DH Au=DSS Enc=Camellia(128) Mac=SHA256
189 0x00,0xBC - DH-RSA-CAMELLIA128-SHA256 TLSv1.2 Kx=DH/RSA Au=DH Enc=Camellia(128) Mac=SHA256
190 0x00,0xBB - DH-DSS-CAMELLIA128-SHA256 TLSv1.2 Kx=DH/DSS Au=DH Enc=Camellia(128) Mac=SHA256
191 0x00,0x9A - DHE-RSA-SEED-SHA SSLv3 Kx=DH Au=RSA Enc=SEED(128) Mac=SHA1
192 0x00,0x99 - DHE-DSS-SEED-SHA SSLv3 Kx=DH Au=DSS Enc=SEED(128) Mac=SHA1
193 0x00,0x98 - DH-RSA-SEED-SHA SSLv3 Kx=DH/RSA Au=DH Enc=SEED(128) Mac=SHA1
194 0x00,0x97 - DH-DSS-SEED-SHA SSLv3 Kx=DH/DSS Au=DH Enc=SEED(128) Mac=SHA1
195 0x00,0x45 - DHE-RSA-CAMELLIA128-SHA SSLv3 Kx=DH Au=RSA Enc=Camellia(128) Mac=SHA1
196 0x00,0x44 - DHE-DSS-CAMELLIA128-SHA SSLv3 Kx=DH Au=DSS Enc=Camellia(128) Mac=SHA1
197 0x00,0x43 - DH-RSA-CAMELLIA128-SHA SSLv3 Kx=DH/RSA Au=DH Enc=Camellia(128) Mac=SHA1
198 0x00,0x42 - DH-DSS-CAMELLIA128-SHA SSLv3 Kx=DH/DSS Au=DH Enc=Camellia(128) Mac=SHA1
199 0xC0,0x18 - AECDH-AES128-SHA SSLv3 Kx=ECDH Au=None Enc=AES(128) Mac=SHA1
200 0x00,0xA6 - ADH-AES128-GCM-SHA256 TLSv1.2 Kx=DH Au=None Enc=AESGCM(128) Mac=AEAD
201 0x00,0x6C - ADH-AES128-SHA256 TLSv1.2 Kx=DH Au=None Enc=AES(128) Mac=SHA256
202 0x00,0x34 - ADH-AES128-SHA SSLv3 Kx=DH Au=None Enc=AES(128) Mac=SHA1
203 0x00,0xBF - ADH-CAMELLIA128-SHA256 TLSv1.2 Kx=DH Au=None Enc=Camellia(128) Mac=SHA256
204 0x00,0x9B - ADH-SEED-SHA SSLv3 Kx=DH Au=None Enc=SEED(128) Mac=SHA1
205 0x00,0x46 - ADH-CAMELLIA128-SHA SSLv3 Kx=DH Au=None Enc=Camellia(128) Mac=SHA1
206 0xC0,0x31 - ECDH-RSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=AESGCM(128) Mac=AEAD
207 0xC0,0x2D - ECDH-ECDSA-AES128-GCM-SHA256 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=AESGCM(128) Mac=AEAD
208 0xC0,0x29 - ECDH-RSA-AES128-SHA256 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=AES(128) Mac=SHA256
209 0xC0,0x25 - ECDH-ECDSA-AES128-SHA256 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=AES(128) Mac=SHA256
210 0xC0,0x0E - ECDH-RSA-AES128-SHA SSLv3 Kx=ECDH/RSA Au=ECDH Enc=AES(128) Mac=SHA1
211 0xC0,0x04 - ECDH-ECDSA-AES128-SHA SSLv3 Kx=ECDH/ECDSA Au=ECDH Enc=AES(128) Mac=SHA1
212 0xC0,0x78 - ECDH-RSA-CAMELLIA128-SHA256 TLSv1.2 Kx=ECDH/RSA Au=ECDH Enc=Camellia(128) Mac=SHA256
213 0xC0,0x74 - ECDH-ECDSA-CAMELLIA128-SHA256 TLSv1.2 Kx=ECDH/ECDSA Au=ECDH Enc=Camellia(128) Mac=SHA256
214 0x00,0x9C - AES128-GCM-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=AESGCM(128) Mac=AEAD
215 0x00,0x3C - AES128-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA256
216 0x00,0x2F - AES128-SHA SSLv3 Kx=RSA Au=RSA Enc=AES(128) Mac=SHA1
217 0x00,0xBA - CAMELLIA128-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=Camellia(128) Mac=SHA256
218 0x00,0x96 - SEED-SHA SSLv3 Kx=RSA Au=RSA Enc=SEED(128) Mac=SHA1
219 0x00,0x41 - CAMELLIA128-SHA SSLv3 Kx=RSA Au=RSA Enc=Camellia(128) Mac=SHA1
220 0x00,0x07 - IDEA-CBC-SHA SSLv3 Kx=RSA Au=RSA Enc=IDEA(128) Mac=SHA1
221 0x05,0x00,0x80 - IDEA-CBC-MD5 SSLv2 Kx=RSA Au=RSA Enc=IDEA(128) Mac=MD5
222 0x03,0x00,0x80 - RC2-CBC-MD5 SSLv2 Kx=RSA Au=RSA Enc=RC2(128) Mac=MD5
223 0x00,0x94 - RSA-PSK-AES128-CBC-SHA SSLv3 Kx=RSAPSK Au=RSA Enc=AES(128) Mac=SHA1
224 0x00,0x8C - PSK-AES128-CBC-SHA SSLv3 Kx=PSK Au=PSK Enc=AES(128) Mac=SHA1
225 0xC0,0x11 - ECDHE-RSA-RC4-SHA SSLv3 Kx=ECDH Au=RSA Enc=RC4(128) Mac=SHA1
226 0xC0,0x07 - ECDHE-ECDSA-RC4-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=RC4(128) Mac=SHA1
227 0x00,0x66 - DHE-DSS-RC4-SHA SSLv3 Kx=DH Au=DSS Enc=RC4(128) Mac=SHA1
228 0xC0,0x16 - AECDH-RC4-SHA SSLv3 Kx=ECDH Au=None Enc=RC4(128) Mac=SHA1
229 0x00,0x18 - ADH-RC4-MD5 SSLv3 Kx=DH Au=None Enc=RC4(128) Mac=MD5
230 0xC0,0x0C - ECDH-RSA-RC4-SHA SSLv3 Kx=ECDH/RSA Au=ECDH Enc=RC4(128) Mac=SHA1
231 0xC0,0x02 - ECDH-ECDSA-RC4-SHA SSLv3 Kx=ECDH/ECDSA Au=ECDH Enc=RC4(128) Mac=SHA1
232 0x00,0x05 - RC4-SHA SSLv3 Kx=RSA Au=RSA Enc=RC4(128) Mac=SHA1
233 0x00,0x04 - RC4-MD5 SSLv3 Kx=RSA Au=RSA Enc=RC4(128) Mac=MD5
234 0x01,0x00,0x80 - RC4-MD5 SSLv2 Kx=RSA Au=RSA Enc=RC4(128) Mac=MD5
235 0x00,0x92 - RSA-PSK-RC4-SHA SSLv3 Kx=RSAPSK Au=RSA Enc=RC4(128) Mac=SHA1
236 0x00,0x8A - PSK-RC4-SHA SSLv3 Kx=PSK Au=PSK Enc=RC4(128) Mac=SHA1
237 0xC0,0x12 - ECDHE-RSA-DES-CBC3-SHA SSLv3 Kx=ECDH Au=RSA Enc=3DES(168) Mac=SHA1
238 0xC0,0x08 - ECDHE-ECDSA-DES-CBC3-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=3DES(168) Mac=SHA1
239 0xC0,0x1C - SRP-DSS-3DES-EDE-CBC-SHA SSLv3 Kx=SRP Au=DSS Enc=3DES(168) Mac=SHA1
240 0xC0,0x1B - SRP-RSA-3DES-EDE-CBC-SHA SSLv3 Kx=SRP Au=RSA Enc=3DES(168) Mac=SHA1
241 0xC0,0x1A - SRP-3DES-EDE-CBC-SHA SSLv3 Kx=SRP Au=SRP Enc=3DES(168) Mac=SHA1
242 0x00,0x16 - EDH-RSA-DES-CBC3-SHA SSLv3 Kx=DH Au=RSA Enc=3DES(168) Mac=SHA1
243 0x00,0x13 - EDH-DSS-DES-CBC3-SHA SSLv3 Kx=DH Au=DSS Enc=3DES(168) Mac=SHA1
244 0x00,0x10 - DH-RSA-DES-CBC3-SHA SSLv3 Kx=DH/RSA Au=DH Enc=3DES(168) Mac=SHA1
245 0x00,0x0D - DH-DSS-DES-CBC3-SHA SSLv3 Kx=DH/DSS Au=DH Enc=3DES(168) Mac=SHA1
246 0xC0,0x17 - AECDH-DES-CBC3-SHA SSLv3 Kx=ECDH Au=None Enc=3DES(168) Mac=SHA1
247 0x00,0x1B - ADH-DES-CBC3-SHA SSLv3 Kx=DH Au=None Enc=3DES(168) Mac=SHA1
248 0xC0,0x0D - ECDH-RSA-DES-CBC3-SHA SSLv3 Kx=ECDH/RSA Au=ECDH Enc=3DES(168) Mac=SHA1
249 0xC0,0x03 - ECDH-ECDSA-DES-CBC3-SHA SSLv3 Kx=ECDH/ECDSA Au=ECDH Enc=3DES(168) Mac=SHA1
250 0x00,0x0A - DES-CBC3-SHA SSLv3 Kx=RSA Au=RSA Enc=3DES(168) Mac=SHA1
251 0x07,0x00,0xC0 - DES-CBC3-MD5 SSLv2 Kx=RSA Au=RSA Enc=3DES(168) Mac=MD5
252 0x00,0x93 - RSA-PSK-3DES-EDE-CBC-SHA SSLv3 Kx=RSAPSK Au=RSA Enc=3DES(168) Mac=SHA1
253 0x00,0x8B - PSK-3DES-EDE-CBC-SHA SSLv3 Kx=PSK Au=PSK Enc=3DES(168) Mac=SHA1
254 0x08,0x00,0x80 - RC4-64-MD5 SSLv2 Kx=RSA Au=RSA Enc=RC4(64) Mac=MD5
255 0x00,0x63 - EXP1024-DHE-DSS-DES-CBC-SHA SSLv3 Kx=DH(1024) Au=DSS Enc=DES(56) Mac=SHA1 export
256 0x00,0x15 - EDH-RSA-DES-CBC-SHA SSLv3 Kx=DH Au=RSA Enc=DES(56) Mac=SHA1
257 0x00,0x12 - EDH-DSS-DES-CBC-SHA SSLv3 Kx=DH Au=DSS Enc=DES(56) Mac=SHA1
258 0x00,0x0F - DH-RSA-DES-CBC-SHA SSLv3 Kx=DH/RSA Au=DH Enc=DES(56) Mac=SHA1
259 0x00,0x0C - DH-DSS-DES-CBC-SHA SSLv3 Kx=DH/DSS Au=DH Enc=DES(56) Mac=SHA1
260 0x00,0x1A - ADH-DES-CBC-SHA SSLv3 Kx=DH Au=None Enc=DES(56) Mac=SHA1
261 0x00,0x62 - EXP1024-DES-CBC-SHA SSLv3 Kx=RSA(1024) Au=RSA Enc=DES(56) Mac=SHA1 export
262 0x00,0x09 - DES-CBC-SHA SSLv3 Kx=RSA Au=RSA Enc=DES(56) Mac=SHA1
263 0x00,0x61 - EXP1024-RC2-CBC-MD5 SSLv3 Kx=RSA(1024) Au=RSA Enc=RC2(56) Mac=MD5 export
264 0x06,0x00,0x40 - DES-CBC-MD5 SSLv2 Kx=RSA Au=RSA Enc=DES(56) Mac=MD5
265 0x00,0x65 - EXP1024-DHE-DSS-RC4-SHA SSLv3 Kx=DH(1024) Au=DSS Enc=RC4(56) Mac=SHA1 export
266 0x00,0x64 - EXP1024-RC4-SHA SSLv3 Kx=RSA(1024) Au=RSA Enc=RC4(56) Mac=SHA1 export
267 0x00,0x60 - EXP1024-RC4-MD5 SSLv3 Kx=RSA(1024) Au=RSA Enc=RC4(56) Mac=MD5 export
268 0x00,0x14 - EXP-EDH-RSA-DES-CBC-SHA SSLv3 Kx=DH(512) Au=RSA Enc=DES(40) Mac=SHA1 export
269 0x00,0x11 - EXP-EDH-DSS-DES-CBC-SHA SSLv3 Kx=DH(512) Au=DSS Enc=DES(40) Mac=SHA1 export
270 0x00,0x0E - EXP-DH-RSA-DES-CBC-SHA SSLv3 Kx=DH/RSA Au=DH Enc=DES(40) Mac=SHA1 export
271 0x00,0x0B - EXP-DH-DSS-DES-CBC-SHA SSLv3 Kx=DH/DSS Au=DH Enc=DES(40) Mac=SHA1 export
272 0x00,0x19 - EXP-ADH-DES-CBC-SHA SSLv3 Kx=DH(512) Au=None Enc=DES(40) Mac=SHA1 export
273 0x00,0x08 - EXP-DES-CBC-SHA SSLv3 Kx=RSA(512) Au=RSA Enc=DES(40) Mac=SHA1 export
274 0x00,0x06 - EXP-RC2-CBC-MD5 SSLv3 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
275 0x04,0x00,0x80 - EXP-RC2-CBC-MD5 SSLv2 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export
276 0x00,0x17 - EXP-ADH-RC4-MD5 SSLv3 Kx=DH(512) Au=None Enc=RC4(40) Mac=MD5 export
277 0x00,0x03 - EXP-RC4-MD5 SSLv3 Kx=RSA(512) Au=RSA Enc=RC4(40) Mac=MD5 export
278 0x02,0x00,0x80 - EXP-RC4-MD5 SSLv2 Kx=RSA(512) Au=RSA Enc=RC4(40) Mac=MD5 export
279 0xC0,0x10 - ECDHE-RSA-NULL-SHA SSLv3 Kx=ECDH Au=RSA Enc=None Mac=SHA1
280 0xC0,0x06 - ECDHE-ECDSA-NULL-SHA SSLv3 Kx=ECDH Au=ECDSA Enc=None Mac=SHA1
281 0x00,0x83 - GOST2001-NULL-GOST94 SSLv3 Kx=GOST Au=GOST01 Enc=None Mac=GOST94
282 0x00,0x82 - GOST94-NULL-GOST94 SSLv3 Kx=GOST Au=GOST94 Enc=None Mac=GOST94
283 0xC0,0x15 - AECDH-NULL-SHA SSLv3 Kx=ECDH Au=None Enc=None Mac=SHA1
284 0xC0,0x0B - ECDH-RSA-NULL-SHA SSLv3 Kx=ECDH/RSA Au=ECDH Enc=None Mac=SHA1
285 0xC0,0x01 - ECDH-ECDSA-NULL-SHA SSLv3 Kx=ECDH/ECDSA Au=ECDH Enc=None Mac=SHA1
286 0x00,0x3B - NULL-SHA256 TLSv1.2 Kx=RSA Au=RSA Enc=None Mac=SHA256
287 0x00,0x02 - NULL-SHA SSLv3 Kx=RSA Au=RSA Enc=None Mac=SHA1
288 0x00,0x01 - NULL-MD5 SSLv3 Kx=RSA Au=RSA Enc=None Mac=MD5
289 0x00,0x00,0x00 - NULL-MD5 SSLv2 Kx=RSA(512) Au=RSA Enc=None Mac=MD5 export
290```
291