provider-signature.pod 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  1. =pod
  2. =head1 NAME
  3. provider-signature - The signature library E<lt>-E<gt> provider functions
  4. =head1 SYNOPSIS
  5. =for openssl multiple includes
  6. #include <openssl/core_dispatch.h>
  7. #include <openssl/core_names.h>
  8. /*
  9. * None of these are actual functions, but are displayed like this for
  10. * the function signatures for functions that are offered as function
  11. * pointers in OSSL_DISPATCH arrays.
  12. */
  13. /* Context management */
  14. void *OSSL_FUNC_signature_newctx(void *provctx);
  15. void OSSL_FUNC_signature_freectx(void *ctx);
  16. void *OSSL_FUNC_signature_dupctx(void *ctx);
  17. /* Signing */
  18. int OSSL_FUNC_signature_sign_init(void *ctx, void *provkey,
  19. const OSSL_PARAM params[]);
  20. int OSSL_FUNC_signature_sign(void *ctx, unsigned char *sig, size_t *siglen,
  21. size_t sigsize, const unsigned char *tbs, size_t tbslen);
  22. /* Verifying */
  23. int OSSL_FUNC_signature_verify_init(void *ctx, void *provkey,
  24. const OSSL_PARAM params[]);
  25. int OSSL_FUNC_signature_verify(void *ctx, const unsigned char *sig, size_t siglen,
  26. const unsigned char *tbs, size_t tbslen);
  27. /* Verify Recover */
  28. int OSSL_FUNC_signature_verify_recover_init(void *ctx, void *provkey,
  29. const OSSL_PARAM params[]);
  30. int OSSL_FUNC_signature_verify_recover(void *ctx, unsigned char *rout,
  31. size_t *routlen, size_t routsize,
  32. const unsigned char *sig, size_t siglen);
  33. /* Digest Sign */
  34. int OSSL_FUNC_signature_digest_sign_init(void *ctx, const char *mdname,
  35. const char *props, void *provkey,
  36. const OSSL_PARAM params[]);
  37. int OSSL_FUNC_signature_digest_sign_update(void *ctx, const unsigned char *data,
  38. size_t datalen);
  39. int OSSL_FUNC_signature_digest_sign_final(void *ctx, unsigned char *sig,
  40. size_t *siglen, size_t sigsize);
  41. int OSSL_FUNC_signature_digest_sign(void *ctx,
  42. unsigned char *sigret, size_t *siglen,
  43. size_t sigsize, const unsigned char *tbs,
  44. size_t tbslen);
  45. /* Digest Verify */
  46. int OSSL_FUNC_signature_digest_verify_init(void *ctx, const char *mdname,
  47. const char *props, void *provkey,
  48. const OSSL_PARAM params[]);
  49. int OSSL_FUNC_signature_digest_verify_update(void *ctx,
  50. const unsigned char *data,
  51. size_t datalen);
  52. int OSSL_FUNC_signature_digest_verify_final(void *ctx, const unsigned char *sig,
  53. size_t siglen);
  54. int OSSL_FUNC_signature_digest_verify(void *ctx, const unsigned char *sig,
  55. size_t siglen, const unsigned char *tbs,
  56. size_t tbslen);
  57. /* Signature parameters */
  58. int OSSL_FUNC_signature_get_ctx_params(void *ctx, OSSL_PARAM params[]);
  59. const OSSL_PARAM *OSSL_FUNC_signature_gettable_ctx_params(void *ctx,
  60. void *provctx);
  61. int OSSL_FUNC_signature_set_ctx_params(void *ctx, const OSSL_PARAM params[]);
  62. const OSSL_PARAM *OSSL_FUNC_signature_settable_ctx_params(void *ctx,
  63. void *provctx);
  64. /* MD parameters */
  65. int OSSL_FUNC_signature_get_ctx_md_params(void *ctx, OSSL_PARAM params[]);
  66. const OSSL_PARAM * OSSL_FUNC_signature_gettable_ctx_md_params(void *ctx);
  67. int OSSL_FUNC_signature_set_ctx_md_params(void *ctx, const OSSL_PARAM params[]);
  68. const OSSL_PARAM * OSSL_FUNC_signature_settable_ctx_md_params(void *ctx);
  69. =head1 DESCRIPTION
  70. This documentation is primarily aimed at provider authors. See L<provider(7)>
  71. for further information.
  72. The signature (OSSL_OP_SIGNATURE) operation enables providers to implement
  73. signature algorithms and make them available to applications via the API
  74. functions L<EVP_PKEY_sign(3)>,
  75. L<EVP_PKEY_verify(3)>,
  76. and L<EVP_PKEY_verify_recover(3)> (as well
  77. as other related functions).
  78. All "functions" mentioned here are passed as function pointers between
  79. F<libcrypto> and the provider in B<OSSL_DISPATCH> arrays via
  80. B<OSSL_ALGORITHM> arrays that are returned by the provider's
  81. provider_query_operation() function
  82. (see L<provider-base(7)/Provider Functions>).
  83. All these "functions" have a corresponding function type definition
  84. named B<OSSL_FUNC_{name}_fn>, and a helper function to retrieve the
  85. function pointer from an B<OSSL_DISPATCH> element named
  86. B<OSSL_FUNC_{name}>.
  87. For example, the "function" OSSL_FUNC_signature_newctx() has these:
  88. typedef void *(OSSL_FUNC_signature_newctx_fn)(void *provctx);
  89. static ossl_inline OSSL_FUNC_signature_newctx_fn
  90. OSSL_FUNC_signature_newctx(const OSSL_DISPATCH *opf);
  91. B<OSSL_DISPATCH> arrays are indexed by numbers that are provided as
  92. macros in L<openssl-core_dispatch.h(7)>, as follows:
  93. OSSL_FUNC_signature_newctx OSSL_FUNC_SIGNATURE_NEWCTX
  94. OSSL_FUNC_signature_freectx OSSL_FUNC_SIGNATURE_FREECTX
  95. OSSL_FUNC_signature_dupctx OSSL_FUNC_SIGNATURE_DUPCTX
  96. OSSL_FUNC_signature_sign_init OSSL_FUNC_SIGNATURE_SIGN_INIT
  97. OSSL_FUNC_signature_sign OSSL_FUNC_SIGNATURE_SIGN
  98. OSSL_FUNC_signature_verify_init OSSL_FUNC_SIGNATURE_VERIFY_INIT
  99. OSSL_FUNC_signature_verify OSSL_FUNC_SIGNATURE_VERIFY
  100. OSSL_FUNC_signature_verify_recover_init OSSL_FUNC_SIGNATURE_VERIFY_RECOVER_INIT
  101. OSSL_FUNC_signature_verify_recover OSSL_FUNC_SIGNATURE_VERIFY_RECOVER
  102. OSSL_FUNC_signature_digest_sign_init OSSL_FUNC_SIGNATURE_DIGEST_SIGN_INIT
  103. OSSL_FUNC_signature_digest_sign_update OSSL_FUNC_SIGNATURE_DIGEST_SIGN_UPDATE
  104. OSSL_FUNC_signature_digest_sign_final OSSL_FUNC_SIGNATURE_DIGEST_SIGN_FINAL
  105. OSSL_FUNC_signature_digest_sign OSSL_FUNC_SIGNATURE_DIGEST_SIGN
  106. OSSL_FUNC_signature_digest_verify_init OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_INIT
  107. OSSL_FUNC_signature_digest_verify_update OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_UPDATE
  108. OSSL_FUNC_signature_digest_verify_final OSSL_FUNC_SIGNATURE_DIGEST_VERIFY_FINAL
  109. OSSL_FUNC_signature_digest_verify OSSL_FUNC_SIGNATURE_DIGEST_VERIFY
  110. OSSL_FUNC_signature_get_ctx_params OSSL_FUNC_SIGNATURE_GET_CTX_PARAMS
  111. OSSL_FUNC_signature_gettable_ctx_params OSSL_FUNC_SIGNATURE_GETTABLE_CTX_PARAMS
  112. OSSL_FUNC_signature_set_ctx_params OSSL_FUNC_SIGNATURE_SET_CTX_PARAMS
  113. OSSL_FUNC_signature_settable_ctx_params OSSL_FUNC_SIGNATURE_SETTABLE_CTX_PARAMS
  114. OSSL_FUNC_signature_get_ctx_md_params OSSL_FUNC_SIGNATURE_GET_CTX_MD_PARAMS
  115. OSSL_FUNC_signature_gettable_ctx_md_params OSSL_FUNC_SIGNATURE_GETTABLE_CTX_MD_PARAMS
  116. OSSL_FUNC_signature_set_ctx_md_params OSSL_FUNC_SIGNATURE_SET_CTX_MD_PARAMS
  117. OSSL_FUNC_signature_settable_ctx_md_params OSSL_FUNC_SIGNATURE_SETTABLE_CTX_MD_PARAMS
  118. A signature algorithm implementation may not implement all of these functions.
  119. In order to be a consistent set of functions we must have at least a set of
  120. context functions (OSSL_FUNC_signature_newctx and OSSL_FUNC_signature_freectx) as well as a
  121. set of "signature" functions, i.e. at least one of:
  122. =over 4
  123. =item OSSL_FUNC_signature_sign_init and OSSL_FUNC_signature_sign
  124. =item OSSL_FUNC_signature_verify_init and OSSL_FUNC_signature_verify
  125. =item OSSL_FUNC_signature_verify_recover_init and OSSL_FUNC_signature_verify_init
  126. =item OSSL_FUNC_signature_digest_sign_init, OSSL_FUNC_signature_digest_sign_update and OSSL_FUNC_signature_digest_sign_final
  127. =item OSSL_FUNC_signature_digest_verify_init, OSSL_FUNC_signature_digest_verify_update and OSSL_FUNC_signature_digest_verify_final
  128. =item OSSL_FUNC_signature_digest_sign_init and OSSL_FUNC_signature_digest_sign
  129. =item OSSL_FUNC_signature_digest_verify_init and OSSL_FUNC_signature_digest_verify
  130. =back
  131. OSSL_FUNC_signature_set_ctx_params and OSSL_FUNC_signature_settable_ctx_params are optional,
  132. but if one of them is present then the other one must also be present. The same
  133. applies to OSSL_FUNC_signature_get_ctx_params and OSSL_FUNC_signature_gettable_ctx_params, as
  134. well as the "md_params" functions. The OSSL_FUNC_signature_dupctx function is optional.
  135. A signature algorithm must also implement some mechanism for generating,
  136. loading or importing keys via the key management (OSSL_OP_KEYMGMT) operation.
  137. See L<provider-keymgmt(7)> for further details.
  138. =head2 Context Management Functions
  139. OSSL_FUNC_signature_newctx() should create and return a pointer to a provider side
  140. structure for holding context information during a signature operation.
  141. A pointer to this context will be passed back in a number of the other signature
  142. operation function calls.
  143. The parameter I<provctx> is the provider context generated during provider
  144. initialisation (see L<provider(7)>).
  145. OSSL_FUNC_signature_freectx() is passed a pointer to the provider side signature
  146. context in the I<ctx> parameter.
  147. This function should free any resources associated with that context.
  148. OSSL_FUNC_signature_dupctx() should duplicate the provider side signature context in
  149. the I<ctx> parameter and return the duplicate copy.
  150. =head2 Signing Functions
  151. OSSL_FUNC_signature_sign_init() initialises a context for signing given a provider side
  152. signature context in the I<ctx> parameter, and a pointer to a provider key object
  153. in the I<provkey> parameter.
  154. The I<params>, if not NULL, should be set on the context in a manner similar to
  155. using OSSL_FUNC_signature_set_ctx_params().
  156. The key object should have been previously generated, loaded or imported into
  157. the provider using the key management (OSSL_OP_KEYMGMT) operation (see
  158. provider-keymgmt(7)>.
  159. OSSL_FUNC_signature_sign() performs the actual signing itself.
  160. A previously initialised signature context is passed in the I<ctx>
  161. parameter.
  162. The data to be signed is pointed to be the I<tbs> parameter which is I<tbslen>
  163. bytes long.
  164. Unless I<sig> is NULL, the signature should be written to the location pointed
  165. to by the I<sig> parameter and it should not exceed I<sigsize> bytes in length.
  166. The length of the signature should be written to I<*siglen>.
  167. If I<sig> is NULL then the maximum length of the signature should be written to
  168. I<*siglen>.
  169. =head2 Verify Functions
  170. OSSL_FUNC_signature_verify_init() initialises a context for verifying a signature given
  171. a provider side signature context in the I<ctx> parameter, and a pointer to a
  172. provider key object in the I<provkey> parameter.
  173. The I<params>, if not NULL, should be set on the context in a manner similar to
  174. using OSSL_FUNC_signature_set_ctx_params().
  175. The key object should have been previously generated, loaded or imported into
  176. the provider using the key management (OSSL_OP_KEYMGMT) operation (see
  177. provider-keymgmt(7)>.
  178. OSSL_FUNC_signature_verify() performs the actual verification itself.
  179. A previously initialised signature context is passed in the I<ctx> parameter.
  180. The data that the signature covers is pointed to be the I<tbs> parameter which
  181. is I<tbslen> bytes long.
  182. The signature is pointed to by the I<sig> parameter which is I<siglen> bytes
  183. long.
  184. =head2 Verify Recover Functions
  185. OSSL_FUNC_signature_verify_recover_init() initialises a context for recovering the
  186. signed data given a provider side signature context in the I<ctx> parameter, and
  187. a pointer to a provider key object in the I<provkey> parameter.
  188. The I<params>, if not NULL, should be set on the context in a manner similar to
  189. using OSSL_FUNC_signature_set_ctx_params().
  190. The key object should have been previously generated, loaded or imported into
  191. the provider using the key management (OSSL_OP_KEYMGMT) operation (see
  192. provider-keymgmt(7)>.
  193. OSSL_FUNC_signature_verify_recover() performs the actual verify recover itself.
  194. A previously initialised signature context is passed in the I<ctx> parameter.
  195. The signature is pointed to by the I<sig> parameter which is I<siglen> bytes
  196. long.
  197. Unless I<rout> is NULL, the recovered data should be written to the location
  198. pointed to by I<rout> which should not exceed I<routsize> bytes in length.
  199. The length of the recovered data should be written to I<*routlen>.
  200. If I<rout> is NULL then the maximum size of the output buffer is written to
  201. the I<routlen> parameter.
  202. =head2 Digest Sign Functions
  203. OSSL_FUNC_signature_digeset_sign_init() initialises a context for signing given a
  204. provider side signature context in the I<ctx> parameter, and a pointer to a
  205. provider key object in the I<provkey> parameter.
  206. The I<params>, if not NULL, should be set on the context in a manner similar to
  207. using OSSL_FUNC_signature_set_ctx_params() and
  208. OSSL_FUNC_signature_set_ctx_md_params().
  209. The key object should have been
  210. previously generated, loaded or imported into the provider using the
  211. key management (OSSL_OP_KEYMGMT) operation (see provider-keymgmt(7)>.
  212. The name of the digest to be used will be in the I<mdname> parameter. There may
  213. also be properties to be used in fetching the digest in the I<props> parameter,
  214. although this may be ignored by providers.
  215. OSSL_FUNC_signature_digest_sign_update() provides data to be signed in the I<data>
  216. parameter which should be of length I<datalen>. A previously initialised
  217. signature context is passed in the I<ctx> parameter. This function may be called
  218. multiple times to cumulatively add data to be signed.
  219. OSSL_FUNC_signature_digest_sign_final() finalises a signature operation previously
  220. started through OSSL_FUNC_signature_digest_sign_init() and
  221. OSSL_FUNC_signature_digest_sign_update() calls. Once finalised no more data will be
  222. added through OSSL_FUNC_signature_digest_sign_update(). A previously initialised
  223. signature context is passed in the I<ctx> parameter. Unless I<sig> is NULL, the
  224. signature should be written to the location pointed to by the I<sig> parameter
  225. and it should not exceed I<sigsize> bytes in length. The length of the signature
  226. should be written to I<*siglen>. If I<sig> is NULL then the maximum length of
  227. the signature should be written to I<*siglen>.
  228. OSSL_FUNC_signature_digest_sign() implements a "one shot" digest sign operation
  229. previously started through OSSL_FUNC_signature_digeset_sign_init(). A previously
  230. initialised signature context is passed in the I<ctx> parameter. The data to be
  231. signed is in I<tbs> which should be I<tbslen> bytes long. Unless I<sig> is NULL,
  232. the signature should be written to the location pointed to by the I<sig>
  233. parameter and it should not exceed I<sigsize> bytes in length. The length of the
  234. signature should be written to I<*siglen>. If I<sig> is NULL then the maximum
  235. length of the signature should be written to I<*siglen>.
  236. =head2 Digest Verify Functions
  237. OSSL_FUNC_signature_digeset_verify_init() initialises a context for verifying given a
  238. provider side verification context in the I<ctx> parameter, and a pointer to a
  239. provider key object in the I<provkey> parameter.
  240. The I<params>, if not NULL, should be set on the context in a manner similar to
  241. OSSL_FUNC_signature_set_ctx_params() and
  242. OSSL_FUNC_signature_set_ctx_md_params().
  243. The key object should have been
  244. previously generated, loaded or imported into the provider using the
  245. key management (OSSL_OP_KEYMGMT) operation (see provider-keymgmt(7)>.
  246. The name of the digest to be used will be in the I<mdname> parameter. There may
  247. also be properties to be used in fetching the digest in the I<props> parameter,
  248. although this may be ignored by providers.
  249. OSSL_FUNC_signature_digest_verify_update() provides data to be verified in the I<data>
  250. parameter which should be of length I<datalen>. A previously initialised
  251. verification context is passed in the I<ctx> parameter. This function may be
  252. called multiple times to cumulatively add data to be verified.
  253. OSSL_FUNC_signature_digest_verify_final() finalises a verification operation previously
  254. started through OSSL_FUNC_signature_digest_verify_init() and
  255. OSSL_FUNC_signature_digest_verify_update() calls. Once finalised no more data will be
  256. added through OSSL_FUNC_signature_digest_verify_update(). A previously initialised
  257. verification context is passed in the I<ctx> parameter. The signature to be
  258. verified is in I<sig> which is I<siglen> bytes long.
  259. OSSL_FUNC_signature_digest_verify() implements a "one shot" digest verify operation
  260. previously started through OSSL_FUNC_signature_digeset_verify_init(). A previously
  261. initialised verification context is passed in the I<ctx> parameter. The data to be
  262. verified is in I<tbs> which should be I<tbslen> bytes long. The signature to be
  263. verified is in I<sig> which is I<siglen> bytes long.
  264. =head2 Signature parameters
  265. See L<OSSL_PARAM(3)> for further details on the parameters structure used by
  266. the OSSL_FUNC_signature_get_ctx_params() and OSSL_FUNC_signature_set_ctx_params() functions.
  267. OSSL_FUNC_signature_get_ctx_params() gets signature parameters associated with the
  268. given provider side signature context I<ctx> and stored them in I<params>.
  269. Passing NULL for I<params> should return true.
  270. OSSL_FUNC_signature_set_ctx_params() sets the signature parameters associated with the
  271. given provider side signature context I<ctx> to I<params>.
  272. Any parameter settings are additional to any that were previously set.
  273. Passing NULL for I<params> should return true.
  274. Common parameters currently recognised by built-in signature algorithms are as
  275. follows.
  276. =over 4
  277. =item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string>
  278. Get or sets the name of the digest algorithm used for the input to the
  279. signature functions. It is required in order to calculate the "algorithm-id".
  280. =item "properties" (B<OSSL_SIGNATURE_PARAM_PROPERTIES>) <UTF8 string>
  281. Sets the name of the property query associated with the "digest" algorithm.
  282. NULL is used if this optional value is not set.
  283. =item "digest-size" (B<OSSL_SIGNATURE_PARAM_DIGEST_SIZE>) <unsigned integer>
  284. Gets or sets the output size of the digest algorithm used for the input to the
  285. signature functions.
  286. The length of the "digest-size" parameter should not exceed that of a B<size_t>.
  287. =item "algorithm-id" (B<OSSL_SIGNATURE_PARAM_ALGORITHM_ID>) <octet string>
  288. Gets the DER encoded AlgorithmIdentifier that corresponds to the combination of
  289. signature algorithm and digest algorithm for the signature operation.
  290. =item "kat" (B<OSSL_SIGNATURE_PARAM_KAT>) <unsigned integer>
  291. Sets a flag to modify the sign operation to return an error if the initial
  292. calculated signature is invalid.
  293. In the normal mode of operation - new random values are chosen until the
  294. signature operation succeeds.
  295. By default it retries until a signature is calculated.
  296. Setting the value to 0 causes the sign operation to retry,
  297. otherwise the sign operation is only tried once and returns whether or not it
  298. was successful.
  299. Known answer tests can be performed if the random generator is overridden to
  300. supply known values that either pass or fail.
  301. =back
  302. OSSL_FUNC_signature_gettable_ctx_params() and OSSL_FUNC_signature_settable_ctx_params() get a
  303. constant B<OSSL_PARAM> array that describes the gettable and settable parameters,
  304. i.e. parameters that can be used with OSSL_FUNC_signature_get_ctx_params() and
  305. OSSL_FUNC_signature_set_ctx_params() respectively.
  306. See L<OSSL_PARAM(3)> for the use of B<OSSL_PARAM> as parameter descriptor.
  307. =head2 MD parameters
  308. See L<OSSL_PARAM(3)> for further details on the parameters structure used by
  309. the OSSL_FUNC_signature_get_md_ctx_params() and OSSL_FUNC_signature_set_md_ctx_params()
  310. functions.
  311. OSSL_FUNC_signature_get_md_ctx_params() gets digest parameters associated with the
  312. given provider side digest signature context I<ctx> and stores them in I<params>.
  313. Passing NULL for I<params> should return true.
  314. OSSL_FUNC_signature_set_ms_ctx_params() sets the digest parameters associated with the
  315. given provider side digest signature context I<ctx> to I<params>.
  316. Any parameter settings are additional to any that were previously set.
  317. Passing NULL for I<params> should return true.
  318. Parameters currently recognised by built-in signature algorithms are the same
  319. as those for built-in digest algorithms. See
  320. L<provider-digest(7)/Digest Parameters> for further information.
  321. OSSL_FUNC_signature_gettable_md_ctx_params() and OSSL_FUNC_signature_settable_md_ctx_params()
  322. get a constant B<OSSL_PARAM> array that describes the gettable and settable
  323. digest parameters, i.e. parameters that can be used with
  324. OSSL_FUNC_signature_get_md_ctx_params() and OSSL_FUNC_signature_set_md_ctx_params()
  325. respectively. See L<OSSL_PARAM(3)> for the use of B<OSSL_PARAM> as parameter
  326. descriptor.
  327. =head1 RETURN VALUES
  328. OSSL_FUNC_signature_newctx() and OSSL_FUNC_signature_dupctx() should return the newly created
  329. provider side signature, or NULL on failure.
  330. OSSL_FUNC_signature_gettable_ctx_params(), OSSL_FUNC_signature_settable_ctx_params(),
  331. OSSL_FUNC_signature_gettable_md_ctx_params() and OSSL_FUNC_signature_settable_md_ctx_params(),
  332. return the gettable or settable parameters in a constant B<OSSL_PARAM> array.
  333. All other functions should return 1 for success or 0 on error.
  334. =head1 SEE ALSO
  335. L<provider(7)>
  336. =head1 HISTORY
  337. The provider SIGNATURE interface was introduced in OpenSSL 3.0.
  338. =head1 COPYRIGHT
  339. Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
  340. Licensed under the Apache License 2.0 (the "License"). You may not use
  341. this file except in compliance with the License. You can obtain a copy
  342. in the file LICENSE in the source distribution or at
  343. L<https://www.openssl.org/source/license.html>.
  344. =cut