1e1051a39Sopenharmony_ci=pod
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_ci=head1 NAME
4e1051a39Sopenharmony_ci
5e1051a39Sopenharmony_ciopenssl-glossary - An OpenSSL Glossary
6e1051a39Sopenharmony_ci
7e1051a39Sopenharmony_ci=head1 DESCRIPTION
8e1051a39Sopenharmony_ci
9e1051a39Sopenharmony_ci=for comment Please keep the items in case-insensitive alphabetical order
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci=over 4
12e1051a39Sopenharmony_ci
13e1051a39Sopenharmony_ci=item Algorithm
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ciCryptograpic primitives such as the SHA256 digest, or AES encryption are
16e1051a39Sopenharmony_cireferred to in OpenSSL as "algorithms". There can be more than one
17e1051a39Sopenharmony_ciimplementation for any given algorithm available for use.
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_ciL<crypto(7)>
20e1051a39Sopenharmony_ci
21e1051a39Sopenharmony_ci=item ASN.1, ASN1
22e1051a39Sopenharmony_ci
23e1051a39Sopenharmony_ciASN.1 ("Abstract Syntax Notation One") is a notation for describing abstract
24e1051a39Sopenharmony_citypes and values.  It is defined in the ITU-T documents X.680 to X.683:
25e1051a39Sopenharmony_ci
26e1051a39Sopenharmony_ciL<https://www.itu.int/rec/T-REC-X.680>,
27e1051a39Sopenharmony_ciL<https://www.itu.int/rec/T-REC-X.681>,
28e1051a39Sopenharmony_ciL<https://www.itu.int/rec/T-REC-X.682>,
29e1051a39Sopenharmony_ciL<https://www.itu.int/rec/T-REC-X.683>
30e1051a39Sopenharmony_ci
31e1051a39Sopenharmony_ci=item Base Provider
32e1051a39Sopenharmony_ci
33e1051a39Sopenharmony_ciAn OpenSSL Provider that contains encoders and decoders for OpenSSL keys.  All
34e1051a39Sopenharmony_cithe algorithm implementations in the Base Provider are also available in the
35e1051a39Sopenharmony_ciDefault Provider.
36e1051a39Sopenharmony_ci
37e1051a39Sopenharmony_ciL<OSSL_PROVIDER-base(7)>
38e1051a39Sopenharmony_ci
39e1051a39Sopenharmony_ci=item Decoder
40e1051a39Sopenharmony_ci
41e1051a39Sopenharmony_ciA decoder is a type of algorithm used for decoding keys and parameters from some
42e1051a39Sopenharmony_ciexternal format such as PEM or DER.
43e1051a39Sopenharmony_ci
44e1051a39Sopenharmony_ciL<OSSL_DECODER_CTX_new_for_pkey(3)>
45e1051a39Sopenharmony_ci
46e1051a39Sopenharmony_ci=item Default Provider
47e1051a39Sopenharmony_ci
48e1051a39Sopenharmony_ciAn OpenSSL Provider that contains the most commmon OpenSSL algorithm
49e1051a39Sopenharmony_ciimplementations. It is loaded by default if no other provider is available. All
50e1051a39Sopenharmony_cithe algorithm implementations in the Base Provider are also available in the
51e1051a39Sopenharmony_ciDefault Provider.
52e1051a39Sopenharmony_ci
53e1051a39Sopenharmony_ciL<OSSL_PROVIDER-default(7)>
54e1051a39Sopenharmony_ci
55e1051a39Sopenharmony_ci=item DER ("Distinguished Encoding Rules")
56e1051a39Sopenharmony_ci
57e1051a39Sopenharmony_ciDER is a binary encoding of data, structured according to an ASN.1
58e1051a39Sopenharmony_cispecification.  This is a common encoding used for cryptographic objects
59e1051a39Sopenharmony_cisuch as private and public keys, certificates, CRLs, ...
60e1051a39Sopenharmony_ci
61e1051a39Sopenharmony_ciIt is defined in ITU-T document X.690:
62e1051a39Sopenharmony_ci
63e1051a39Sopenharmony_ciL<https://www.itu.int/rec/T-REC-X.690>
64e1051a39Sopenharmony_ci
65e1051a39Sopenharmony_ci=item Encoder
66e1051a39Sopenharmony_ci
67e1051a39Sopenharmony_ciAn encoder is a type of algorithm used for encoding keys and parameters to some
68e1051a39Sopenharmony_ciexternal format such as PEM or DER.
69e1051a39Sopenharmony_ci
70e1051a39Sopenharmony_ciL<OSSL_ENCODER_CTX_new_for_pkey(3)>
71e1051a39Sopenharmony_ci
72e1051a39Sopenharmony_ci=item Explicit Fetching
73e1051a39Sopenharmony_ci
74e1051a39Sopenharmony_ciExplicit Fetching is a type of Fetching (see Fetching). Explicit Fetching is
75e1051a39Sopenharmony_ciwhere a function call is made to obtain an algorithm object representing an
76e1051a39Sopenharmony_ciimplementation such as L<EVP_MD_fetch(3)> or L<EVP_CIPHER_fetch(3)>
77e1051a39Sopenharmony_ci
78e1051a39Sopenharmony_ci=item Fetching
79e1051a39Sopenharmony_ci
80e1051a39Sopenharmony_ciFetching is the process of looking through the available algorithm
81e1051a39Sopenharmony_ciimplementations, applying selection criteria (via a property query string), and
82e1051a39Sopenharmony_cifinally choosing the implementation that will be used.
83e1051a39Sopenharmony_ci
84e1051a39Sopenharmony_ciAlso see Explicit Fetching and Implict Fetching.
85e1051a39Sopenharmony_ci
86e1051a39Sopenharmony_ciL<crypto(7)>
87e1051a39Sopenharmony_ci
88e1051a39Sopenharmony_ci=item FIPS Provider
89e1051a39Sopenharmony_ci
90e1051a39Sopenharmony_ciAn OpenSSL Provider that contains OpenSSL algorithm implementations that have
91e1051a39Sopenharmony_cibeen validated according to the FIPS 140-2 standard.
92e1051a39Sopenharmony_ci
93e1051a39Sopenharmony_ciL<OSSL_PROVIDER-FIPS(7)>
94e1051a39Sopenharmony_ci
95e1051a39Sopenharmony_ci=item Implicit Fetching
96e1051a39Sopenharmony_ci
97e1051a39Sopenharmony_ciImplicit Fetching is a type of Fetching (see Fetching). Implicit Fetching is
98e1051a39Sopenharmony_ciwhere an algorithm object with no associated implementation is used such as the
99e1051a39Sopenharmony_cireturn value from L<EVP_sha256(3)> or L<EVP_aes_128_cbc(3)>. With implicit
100e1051a39Sopenharmony_cifetching an implementation is fetched automatically using default selection
101e1051a39Sopenharmony_cicriteria the first time the algorithm is used.
102e1051a39Sopenharmony_ci
103e1051a39Sopenharmony_ci=item Legacy Provider
104e1051a39Sopenharmony_ci
105e1051a39Sopenharmony_ciAn OpenSSL Provider that contains algorithm implementations that are considered
106e1051a39Sopenharmony_ciinsecure or are no longer in common use.
107e1051a39Sopenharmony_ci
108e1051a39Sopenharmony_ciL<OSSL_PROVIDER-legacy(7)>
109e1051a39Sopenharmony_ci
110e1051a39Sopenharmony_ci=item Library Context
111e1051a39Sopenharmony_ci
112e1051a39Sopenharmony_ciA Library Context in OpenSSL is represented by the type B<OSSL_LIB_CTX>. It can
113e1051a39Sopenharmony_cibe thought of as a scope within which configuration options apply. If an
114e1051a39Sopenharmony_ciapplication does not explicitly create a library context then the "default"
115e1051a39Sopenharmony_cione is used. Many OpenSSL functions can take a library context as an argument.
116e1051a39Sopenharmony_ciA NULL value can always be passed to indicate the default library context.
117e1051a39Sopenharmony_ci
118e1051a39Sopenharmony_ciL<OSSL_LIB_CTX(3)>
119e1051a39Sopenharmony_ci
120e1051a39Sopenharmony_ci=item MSBLOB
121e1051a39Sopenharmony_ci
122e1051a39Sopenharmony_ciMSBLOB is a Microsoft specific binary format for RSA and DSA keys, both
123e1051a39Sopenharmony_ciprivate and public.  This form is never passphrase protected.
124e1051a39Sopenharmony_ci
125e1051a39Sopenharmony_ci=item Null Provider
126e1051a39Sopenharmony_ci
127e1051a39Sopenharmony_ciAn OpenSSL Provider that contains no algorithm implementations. This can be
128e1051a39Sopenharmony_ciuseful to prevent the default provider from being automatically loaded in a
129e1051a39Sopenharmony_cilibrary context.
130e1051a39Sopenharmony_ci
131e1051a39Sopenharmony_ciL<OSSL_PROVIDER-null(7)>
132e1051a39Sopenharmony_ci
133e1051a39Sopenharmony_ci=item Operation
134e1051a39Sopenharmony_ci
135e1051a39Sopenharmony_ciAn operation is a group of OpenSSL functions with a common purpose such as
136e1051a39Sopenharmony_ciencryption, or digesting.
137e1051a39Sopenharmony_ci
138e1051a39Sopenharmony_ciL<crypto(7)>
139e1051a39Sopenharmony_ci
140e1051a39Sopenharmony_ci=item PEM ("Privacy Enhanced Message")
141e1051a39Sopenharmony_ci
142e1051a39Sopenharmony_ciPEM is a format used for encoding of binary content into a mail and ASCII
143e1051a39Sopenharmony_cifriendly form.  The content is a series of base64-encoded lines, surrounded
144e1051a39Sopenharmony_ciby begin/end markers each on their own line.  For example:
145e1051a39Sopenharmony_ci
146e1051a39Sopenharmony_ci -----BEGIN PRIVATE KEY-----
147e1051a39Sopenharmony_ci MIICdg....
148e1051a39Sopenharmony_ci ... bhTQ==
149e1051a39Sopenharmony_ci -----END PRIVATE KEY-----
150e1051a39Sopenharmony_ci
151e1051a39Sopenharmony_ciOptional header line(s) may appear after the begin line, and their existence
152e1051a39Sopenharmony_cidepends on the type of object being written or read.
153e1051a39Sopenharmony_ci
154e1051a39Sopenharmony_ciFor all OpenSSL uses, the binary content is expected to be a DER encoded
155e1051a39Sopenharmony_cistructure.
156e1051a39Sopenharmony_ci
157e1051a39Sopenharmony_ciThis is defined in IETF RFC 1421:
158e1051a39Sopenharmony_ci
159e1051a39Sopenharmony_ciL<https://tools.ietf.org/html/rfc1421>
160e1051a39Sopenharmony_ci
161e1051a39Sopenharmony_ci=item PKCS#8
162e1051a39Sopenharmony_ci
163e1051a39Sopenharmony_ciPKCS#8 is a specification of ASN.1 structures that OpenSSL uses for storing
164e1051a39Sopenharmony_cior transmitting any private key in a key type agnostic manner.
165e1051a39Sopenharmony_ciThere are two structures worth noting for OpenSSL use, one that contains the
166e1051a39Sopenharmony_cikey data in unencrypted form (known as "PrivateKeyInfo") and an encrypted
167e1051a39Sopenharmony_ciwrapper structure (known as "EncryptedPrivateKeyInfo").
168e1051a39Sopenharmony_ci
169e1051a39Sopenharmony_ciThis is specified in RFC 5208:
170e1051a39Sopenharmony_ci
171e1051a39Sopenharmony_ciL<https://tools.ietf.org/html/rfc5208>
172e1051a39Sopenharmony_ci
173e1051a39Sopenharmony_ci=item Property
174e1051a39Sopenharmony_ci
175e1051a39Sopenharmony_ciA property is a way of classifying and selecting algorithm implementations.
176e1051a39Sopenharmony_ciA property is a key/value pair expressed as a string. For example all algorithm
177e1051a39Sopenharmony_ciimplementations in the default provider have the property "provider=default".
178e1051a39Sopenharmony_ciAn algorithm implementation can have multiple properties defined against it.
179e1051a39Sopenharmony_ci
180e1051a39Sopenharmony_ciAlso see Property Query String.
181e1051a39Sopenharmony_ci
182e1051a39Sopenharmony_ciL<property(7)>
183e1051a39Sopenharmony_ci
184e1051a39Sopenharmony_ci=item Property Query String
185e1051a39Sopenharmony_ci
186e1051a39Sopenharmony_ciA property query string is a string containing a sequence of properties that
187e1051a39Sopenharmony_cican be used to select an algorithm implementation. For example the query string
188e1051a39Sopenharmony_ci"provider=example,foo=bar" will select algorithms from the "example" provider
189e1051a39Sopenharmony_cithat have a "foo" property defined for them with a value of "bar".
190e1051a39Sopenharmony_ci
191e1051a39Sopenharmony_ciProperty Query Strings are used during fetching. See Fetching.
192e1051a39Sopenharmony_ci
193e1051a39Sopenharmony_ciL<property(7)>
194e1051a39Sopenharmony_ci
195e1051a39Sopenharmony_ci=item Provider
196e1051a39Sopenharmony_ci
197e1051a39Sopenharmony_ciA provider in OpenSSL is a component that groups together algorithm
198e1051a39Sopenharmony_ciimplementations. Providers can come from OpenSSL itself or from third parties.
199e1051a39Sopenharmony_ci
200e1051a39Sopenharmony_ciL<provider(7)>
201e1051a39Sopenharmony_ci
202e1051a39Sopenharmony_ci=item PVK
203e1051a39Sopenharmony_ci
204e1051a39Sopenharmony_ciPVK is a Microsoft specific binary format for RSA and DSA private keys.
205e1051a39Sopenharmony_ciThis form may be passphrase protected.
206e1051a39Sopenharmony_ci
207e1051a39Sopenharmony_ci=item SubjectPublicKeyInfo
208e1051a39Sopenharmony_ci
209e1051a39Sopenharmony_ciSubjectPublicKeyInfo is an ASN.1 structure that OpenSSL uses for storing and
210e1051a39Sopenharmony_citransmitting any public key in a key type agnostic manner.
211e1051a39Sopenharmony_ci
212e1051a39Sopenharmony_ciThis is specified as part of the specification for certificates, RFC 5280:
213e1051a39Sopenharmony_ci
214e1051a39Sopenharmony_ciL<https://tools.ietf.org/html/rfc5280>
215e1051a39Sopenharmony_ci
216e1051a39Sopenharmony_ci=back
217e1051a39Sopenharmony_ci
218e1051a39Sopenharmony_ci=head1 HISTORY
219e1051a39Sopenharmony_ci
220e1051a39Sopenharmony_ciThis glossary was added in OpenSSL 3.0.
221e1051a39Sopenharmony_ci
222e1051a39Sopenharmony_ci=head1 COPYRIGHT
223e1051a39Sopenharmony_ci
224e1051a39Sopenharmony_ciCopyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
225e1051a39Sopenharmony_ci
226e1051a39Sopenharmony_ciLicensed under the Apache License 2.0 (the "License").  You may not use
227e1051a39Sopenharmony_cithis file except in compliance with the License.  You can obtain a copy
228e1051a39Sopenharmony_ciin the file LICENSE in the source distribution or at
229e1051a39Sopenharmony_ciL<https://www.openssl.org/source/license.html>.
230e1051a39Sopenharmony_ci
231e1051a39Sopenharmony_ci=cut
232