provider-digest.7ossl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is >0, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{\
  60. . if \nF \{\
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{\
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\"
  72. .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
  73. .\" Fear. Run. Save yourself. No user-serviceable parts.
  74. . \" fudge factors for nroff and troff
  75. .if n \{\
  76. . ds #H 0
  77. . ds #V .8m
  78. . ds #F .3m
  79. . ds #[ \f1
  80. . ds #] \fP
  81. .\}
  82. .if t \{\
  83. . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
  84. . ds #V .6m
  85. . ds #F 0
  86. . ds #[ \&
  87. . ds #] \&
  88. .\}
  89. . \" simple accents for nroff and troff
  90. .if n \{\
  91. . ds ' \&
  92. . ds ` \&
  93. . ds ^ \&
  94. . ds , \&
  95. . ds ~ ~
  96. . ds /
  97. .\}
  98. .if t \{\
  99. . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
  100. . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
  101. . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
  102. . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
  103. . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
  104. . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
  105. .\}
  106. . \" troff and (daisy-wheel) nroff accents
  107. .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
  108. .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
  109. .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
  110. .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
  111. .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
  112. .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
  113. .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
  114. .ds ae a\h'-(\w'a'u*4/10)'e
  115. .ds Ae A\h'-(\w'A'u*4/10)'E
  116. . \" corrections for vroff
  117. .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
  118. .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
  119. . \" for low resolution devices (crt and lpr)
  120. .if \n(.H>23 .if \n(.V>19 \
  121. \{\
  122. . ds : e
  123. . ds 8 ss
  124. . ds o a
  125. . ds d- d\h'-1'\(ga
  126. . ds D- D\h'-1'\(hy
  127. . ds th \o'bp'
  128. . ds Th \o'LP'
  129. . ds ae ae
  130. . ds Ae AE
  131. .\}
  132. .rm #[ #] #H #V #F C
  133. .\" ========================================================================
  134. .\"
  135. .IX Title "PROVIDER-DIGEST 7ossl"
  136. .TH PROVIDER-DIGEST 7ossl "2024-09-03" "3.3.2" "OpenSSL"
  137. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  138. .\" way too many mistakes in technical documents.
  139. .if n .ad l
  140. .nh
  141. .SH "NAME"
  142. provider\-digest \- The digest library <\-> provider functions
  143. .SH "SYNOPSIS"
  144. .IX Header "SYNOPSIS"
  145. .Vb 2
  146. \& #include <openssl/core_dispatch.h>
  147. \& #include <openssl/core_names.h>
  148. \&
  149. \& /*
  150. \& * Digests support the following function signatures in OSSL_DISPATCH arrays.
  151. \& * (The function signatures are not actual functions).
  152. \& */
  153. \&
  154. \& /* Context management */
  155. \& void *OSSL_FUNC_digest_newctx(void *provctx);
  156. \& void OSSL_FUNC_digest_freectx(void *dctx);
  157. \& void *OSSL_FUNC_digest_dupctx(void *dctx);
  158. \&
  159. \& /* Digest generation */
  160. \& int OSSL_FUNC_digest_init(void *dctx, const OSSL_PARAM params[]);
  161. \& int OSSL_FUNC_digest_update(void *dctx, const unsigned char *in, size_t inl);
  162. \& int OSSL_FUNC_digest_final(void *dctx, unsigned char *out, size_t *outl,
  163. \& size_t outsz);
  164. \& int OSSL_FUNC_digest_digest(void *provctx, const unsigned char *in, size_t inl,
  165. \& unsigned char *out, size_t *outl, size_t outsz);
  166. \&
  167. \& /* Digest parameter descriptors */
  168. \& const OSSL_PARAM *OSSL_FUNC_digest_gettable_params(void *provctx);
  169. \&
  170. \& /* Digest operation parameter descriptors */
  171. \& const OSSL_PARAM *OSSL_FUNC_digest_gettable_ctx_params(void *dctx,
  172. \& void *provctx);
  173. \& const OSSL_PARAM *OSSL_FUNC_digest_settable_ctx_params(void *dctx,
  174. \& void *provctx);
  175. \&
  176. \& /* Digest parameters */
  177. \& int OSSL_FUNC_digest_get_params(OSSL_PARAM params[]);
  178. \&
  179. \& /* Digest operation parameters */
  180. \& int OSSL_FUNC_digest_set_ctx_params(void *dctx, const OSSL_PARAM params[]);
  181. \& int OSSL_FUNC_digest_get_ctx_params(void *dctx, OSSL_PARAM params[]);
  182. .Ve
  183. .SH "DESCRIPTION"
  184. .IX Header "DESCRIPTION"
  185. This documentation is primarily aimed at provider authors. See \fBprovider\fR\|(7)
  186. for further information.
  187. .PP
  188. The \s-1DIGEST\s0 operation enables providers to implement digest algorithms and make
  189. them available to applications via the \s-1API\s0 functions \fBEVP_DigestInit_ex\fR\|(3),
  190. \&\fBEVP_DigestUpdate\fR\|(3) and \fBEVP_DigestFinal\fR\|(3) (and other related functions).
  191. .PP
  192. All \*(L"functions\*(R" mentioned here are passed as function pointers between
  193. \&\fIlibcrypto\fR and the provider in \s-1\fBOSSL_DISPATCH\s0\fR\|(3) arrays via
  194. \&\s-1\fBOSSL_ALGORITHM\s0\fR\|(3) arrays that are returned by the provider's
  195. \&\fBprovider_query_operation()\fR function
  196. (see \*(L"Provider Functions\*(R" in \fBprovider\-base\fR\|(7)).
  197. .PP
  198. All these \*(L"functions\*(R" have a corresponding function type definition
  199. named \fBOSSL_FUNC_{name}_fn\fR, and a helper function to retrieve the
  200. function pointer from an \s-1\fBOSSL_DISPATCH\s0\fR\|(3) element named
  201. \&\fBOSSL_FUNC_{name}\fR.
  202. For example, the \*(L"function\*(R" \fBOSSL_FUNC_digest_newctx()\fR has these:
  203. .PP
  204. .Vb 3
  205. \& typedef void *(OSSL_FUNC_digest_newctx_fn)(void *provctx);
  206. \& static ossl_inline OSSL_FUNC_digest_newctx_fn
  207. \& OSSL_FUNC_digest_newctx(const OSSL_DISPATCH *opf);
  208. .Ve
  209. .PP
  210. \&\s-1\fBOSSL_DISPATCH\s0\fR\|(3) arrays are indexed by numbers that are provided as
  211. macros in \fBopenssl\-core_dispatch.h\fR\|(7), as follows:
  212. .PP
  213. .Vb 3
  214. \& OSSL_FUNC_digest_newctx OSSL_FUNC_DIGEST_NEWCTX
  215. \& OSSL_FUNC_digest_freectx OSSL_FUNC_DIGEST_FREECTX
  216. \& OSSL_FUNC_digest_dupctx OSSL_FUNC_DIGEST_DUPCTX
  217. \&
  218. \& OSSL_FUNC_digest_init OSSL_FUNC_DIGEST_INIT
  219. \& OSSL_FUNC_digest_update OSSL_FUNC_DIGEST_UPDATE
  220. \& OSSL_FUNC_digest_final OSSL_FUNC_DIGEST_FINAL
  221. \& OSSL_FUNC_digest_digest OSSL_FUNC_DIGEST_DIGEST
  222. \&
  223. \& OSSL_FUNC_digest_get_params OSSL_FUNC_DIGEST_GET_PARAMS
  224. \& OSSL_FUNC_digest_get_ctx_params OSSL_FUNC_DIGEST_GET_CTX_PARAMS
  225. \& OSSL_FUNC_digest_set_ctx_params OSSL_FUNC_DIGEST_SET_CTX_PARAMS
  226. \&
  227. \& OSSL_FUNC_digest_gettable_params OSSL_FUNC_DIGEST_GETTABLE_PARAMS
  228. \& OSSL_FUNC_digest_gettable_ctx_params OSSL_FUNC_DIGEST_GETTABLE_CTX_PARAMS
  229. \& OSSL_FUNC_digest_settable_ctx_params OSSL_FUNC_DIGEST_SETTABLE_CTX_PARAMS
  230. .Ve
  231. .PP
  232. A digest algorithm implementation may not implement all of these functions.
  233. In order to be usable all or none of OSSL_FUNC_digest_newctx, OSSL_FUNC_digest_freectx,
  234. OSSL_FUNC_digest_init, OSSL_FUNC_digest_update and OSSL_FUNC_digest_final should be implemented.
  235. All other functions are optional.
  236. .SS "Context Management Functions"
  237. .IX Subsection "Context Management Functions"
  238. \&\fBOSSL_FUNC_digest_newctx()\fR should create and return a pointer to a provider side
  239. structure for holding context information during a digest operation.
  240. A pointer to this context will be passed back in a number of the other digest
  241. operation function calls.
  242. The parameter \fIprovctx\fR is the provider context generated during provider
  243. initialisation (see \fBprovider\fR\|(7)).
  244. .PP
  245. \&\fBOSSL_FUNC_digest_freectx()\fR is passed a pointer to the provider side digest context in
  246. the \fIdctx\fR parameter.
  247. This function should free any resources associated with that context.
  248. .PP
  249. \&\fBOSSL_FUNC_digest_dupctx()\fR should duplicate the provider side digest context in the
  250. \&\fIdctx\fR parameter and return the duplicate copy.
  251. .SS "Digest Generation Functions"
  252. .IX Subsection "Digest Generation Functions"
  253. \&\fBOSSL_FUNC_digest_init()\fR initialises a digest operation given a newly created
  254. provider side digest context in the \fIdctx\fR parameter.
  255. The \fIparams\fR, if not \s-1NULL,\s0 should be set on the context in a manner similar to
  256. using \fBOSSL_FUNC_digest_set_ctx_params()\fR.
  257. .PP
  258. \&\fBOSSL_FUNC_digest_update()\fR is called to supply data to be digested as part of a
  259. previously initialised digest operation.
  260. The \fIdctx\fR parameter contains a pointer to a previously initialised provider
  261. side context.
  262. \&\fBOSSL_FUNC_digest_update()\fR should digest \fIinl\fR bytes of data at the location pointed to
  263. by \fIin\fR.
  264. \&\fBOSSL_FUNC_digest_update()\fR may be called multiple times for a single digest operation.
  265. .PP
  266. \&\fBOSSL_FUNC_digest_final()\fR generates a digest started through previous \fBOSSL_FUNC_digest_init()\fR
  267. and \fBOSSL_FUNC_digest_update()\fR calls.
  268. The \fIdctx\fR parameter contains a pointer to the provider side context.
  269. The digest should be written to \fI*out\fR and the length of the digest to
  270. \&\fI*outl\fR.
  271. The digest should not exceed \fIoutsz\fR bytes.
  272. .PP
  273. \&\fBOSSL_FUNC_digest_digest()\fR is a \*(L"oneshot\*(R" digest function.
  274. No provider side digest context is used.
  275. Instead the provider context that was created during provider initialisation is
  276. passed in the \fIprovctx\fR parameter (see \fBprovider\fR\|(7)).
  277. \&\fIinl\fR bytes at \fIin\fR should be digested and the result should be stored at
  278. \&\fIout\fR. The length of the digest should be stored in \fI*outl\fR which should not
  279. exceed \fIoutsz\fR bytes.
  280. .SS "Digest Parameters"
  281. .IX Subsection "Digest Parameters"
  282. See \s-1\fBOSSL_PARAM\s0\fR\|(3) for further details on the parameters structure used by
  283. these functions.
  284. .PP
  285. \&\fBOSSL_FUNC_digest_get_params()\fR gets details of the algorithm implementation
  286. and stores them in \fIparams\fR.
  287. .PP
  288. \&\fBOSSL_FUNC_digest_set_ctx_params()\fR sets digest operation parameters for the
  289. provider side digest context \fIdctx\fR to \fIparams\fR.
  290. Any parameter settings are additional to any that were previously set.
  291. Passing \s-1NULL\s0 for \fIparams\fR should return true.
  292. .PP
  293. \&\fBOSSL_FUNC_digest_get_ctx_params()\fR gets digest operation details details from
  294. the given provider side digest context \fIdctx\fR and stores them in \fIparams\fR.
  295. Passing \s-1NULL\s0 for \fIparams\fR should return true.
  296. .PP
  297. \&\fBOSSL_FUNC_digest_gettable_params()\fR returns a constant \s-1\fBOSSL_PARAM\s0\fR\|(3) array
  298. containing descriptors of the parameters that \fBOSSL_FUNC_digest_get_params()\fR
  299. can handle.
  300. .PP
  301. \&\fBOSSL_FUNC_digest_gettable_ctx_params()\fR and
  302. \&\fBOSSL_FUNC_digest_settable_ctx_params()\fR both return constant
  303. \&\s-1\fBOSSL_PARAM\s0\fR\|(3) arrays as descriptors of the parameters that
  304. \&\fBOSSL_FUNC_digest_get_ctx_params()\fR and \fBOSSL_FUNC_digest_set_ctx_params()\fR
  305. can handle, respectively. The array is based on the current state of
  306. the provider side context if \fIdctx\fR is not \s-1NULL\s0 and on the provider
  307. side algorithm \fIprovctx\fR otherwise.
  308. .PP
  309. Parameters currently recognised by built-in digests with this function
  310. are as follows. Not all parameters are relevant to, or are understood
  311. by all digests:
  312. .ie n .IP """blocksize"" (\fB\s-1OSSL_DIGEST_PARAM_BLOCK_SIZE\s0\fR) <unsigned integer>" 4
  313. .el .IP "``blocksize'' (\fB\s-1OSSL_DIGEST_PARAM_BLOCK_SIZE\s0\fR) <unsigned integer>" 4
  314. .IX Item "blocksize (OSSL_DIGEST_PARAM_BLOCK_SIZE) <unsigned integer>"
  315. The digest block size.
  316. The length of the \*(L"blocksize\*(R" parameter should not exceed that of a \fBsize_t\fR.
  317. .ie n .IP """size"" (\fB\s-1OSSL_DIGEST_PARAM_SIZE\s0\fR) <unsigned integer>" 4
  318. .el .IP "``size'' (\fB\s-1OSSL_DIGEST_PARAM_SIZE\s0\fR) <unsigned integer>" 4
  319. .IX Item "size (OSSL_DIGEST_PARAM_SIZE) <unsigned integer>"
  320. The digest output size.
  321. The length of the \*(L"size\*(R" parameter should not exceed that of a \fBsize_t\fR.
  322. .ie n .IP """flags"" (\fB\s-1OSSL_DIGEST_PARAM_FLAGS\s0\fR) <unsigned integer>" 4
  323. .el .IP "``flags'' (\fB\s-1OSSL_DIGEST_PARAM_FLAGS\s0\fR) <unsigned integer>" 4
  324. .IX Item "flags (OSSL_DIGEST_PARAM_FLAGS) <unsigned integer>"
  325. Diverse flags that describe exceptional behaviour for the digest:
  326. .RS 4
  327. .IP "\fB\s-1EVP_MD_FLAG_ONESHOT\s0\fR" 4
  328. .IX Item "EVP_MD_FLAG_ONESHOT"
  329. This digest method can only handle one block of input.
  330. .IP "\fB\s-1EVP_MD_FLAG_XOF\s0\fR" 4
  331. .IX Item "EVP_MD_FLAG_XOF"
  332. This digest method is an extensible-output function (\s-1XOF\s0).
  333. .IP "\fB\s-1EVP_MD_FLAG_DIGALGID_NULL\s0\fR" 4
  334. .IX Item "EVP_MD_FLAG_DIGALGID_NULL"
  335. When setting up a DigestAlgorithmIdentifier, this flag will have the
  336. parameter set to \s-1NULL\s0 by default. Use this for PKCS#1. \fINote: if
  337. combined with \s-1EVP_MD_FLAG_DIGALGID_ABSENT,\s0 the latter will override.\fR
  338. .IP "\fB\s-1EVP_MD_FLAG_DIGALGID_ABSENT\s0\fR" 4
  339. .IX Item "EVP_MD_FLAG_DIGALGID_ABSENT"
  340. When setting up a DigestAlgorithmIdentifier, this flag will have the
  341. parameter be left absent by default. \fINote: if combined with
  342. \&\s-1EVP_MD_FLAG_DIGALGID_NULL,\s0 the latter will be overridden.\fR
  343. .IP "\fB\s-1EVP_MD_FLAG_DIGALGID_CUSTOM\s0\fR" 4
  344. .IX Item "EVP_MD_FLAG_DIGALGID_CUSTOM"
  345. Custom DigestAlgorithmIdentifier handling via ctrl, with
  346. \&\fB\s-1EVP_MD_FLAG_DIGALGID_ABSENT\s0\fR as default. \fINote: if combined with
  347. \&\s-1EVP_MD_FLAG_DIGALGID_NULL,\s0 the latter will be overridden.\fR
  348. Currently unused.
  349. .RE
  350. .RS 4
  351. .Sp
  352. The length of the \*(L"flags\*(R" parameter should equal that of an
  353. \&\fBunsigned long int\fR.
  354. .RE
  355. .SS "Digest Context Parameters"
  356. .IX Subsection "Digest Context Parameters"
  357. \&\fBOSSL_FUNC_digest_set_ctx_params()\fR sets digest parameters associated with the
  358. given provider side digest context \fIdctx\fR to \fIparams\fR.
  359. Any parameter settings are additional to any that were previously set.
  360. See \s-1\fBOSSL_PARAM\s0\fR\|(3) for further details on the parameters structure.
  361. .PP
  362. \&\fBOSSL_FUNC_digest_get_ctx_params()\fR gets details of currently set parameters
  363. values associated with the give provider side digest context \fIdctx\fR
  364. and stores them in \fIparams\fR.
  365. See \s-1\fBOSSL_PARAM\s0\fR\|(3) for further details on the parameters structure.
  366. .SH "RETURN VALUES"
  367. .IX Header "RETURN VALUES"
  368. \&\fBOSSL_FUNC_digest_newctx()\fR and \fBOSSL_FUNC_digest_dupctx()\fR should return the newly created
  369. provider side digest context, or \s-1NULL\s0 on failure.
  370. .PP
  371. \&\fBOSSL_FUNC_digest_init()\fR, \fBOSSL_FUNC_digest_update()\fR, \fBOSSL_FUNC_digest_final()\fR, \fBOSSL_FUNC_digest_digest()\fR,
  372. \&\fBOSSL_FUNC_digest_set_params()\fR and \fBOSSL_FUNC_digest_get_params()\fR should return 1 for success or
  373. 0 on error.
  374. .PP
  375. \&\fBOSSL_FUNC_digest_size()\fR should return the digest size.
  376. .PP
  377. \&\fBOSSL_FUNC_digest_block_size()\fR should return the block size of the underlying digest
  378. algorithm.
  379. .SH "BUGS"
  380. .IX Header "BUGS"
  381. The \fBEVP_Q_digest()\fR, \fBEVP_Digest()\fR and \fBEVP_DigestFinal_ex()\fR \s-1API\s0 calls do not
  382. expect the digest size to be larger than \s-1EVP_MAX_MD_SIZE.\s0 Any algorithm which
  383. produces larger digests is unusable with those \s-1API\s0 calls.
  384. .SH "SEE ALSO"
  385. .IX Header "SEE ALSO"
  386. \&\fBprovider\fR\|(7), \s-1\fBOSSL_PROVIDER\-FIPS\s0\fR\|(7), \fBOSSL_PROVIDER\-default\fR\|(7),
  387. \&\fBOSSL_PROVIDER\-legacy\fR\|(7),
  388. \&\fBEVP_MD\-common\fR\|(7), \s-1\fBEVP_MD\-BLAKE2\s0\fR\|(7), \s-1\fBEVP_MD\-MD2\s0\fR\|(7),
  389. \&\s-1\fBEVP_MD\-MD4\s0\fR\|(7), \s-1\fBEVP_MD\-MD5\s0\fR\|(7), \s-1\fBEVP_MD\-MD5\-SHA1\s0\fR\|(7),
  390. \&\s-1\fBEVP_MD\-MDC2\s0\fR\|(7), \s-1\fBEVP_MD\-RIPEMD160\s0\fR\|(7), \s-1\fBEVP_MD\-SHA1\s0\fR\|(7),
  391. \&\s-1\fBEVP_MD\-SHA2\s0\fR\|(7), \s-1\fBEVP_MD\-SHA3\s0\fR\|(7), \s-1\fBEVP_MD\-KECCAK\s0\fR\|(7)
  392. \&\s-1\fBEVP_MD\-SHAKE\s0\fR\|(7), \s-1\fBEVP_MD\-SM3\s0\fR\|(7), \s-1\fBEVP_MD\-WHIRLPOOL\s0\fR\|(7),
  393. \&\s-1\fBEVP_MD\-NULL\s0\fR\|(7),
  394. \&\fBlife_cycle\-digest\fR\|(7), \fBEVP_DigestInit\fR\|(3)
  395. .SH "HISTORY"
  396. .IX Header "HISTORY"
  397. The provider \s-1DIGEST\s0 interface was introduced in OpenSSL 3.0.
  398. .SH "COPYRIGHT"
  399. .IX Header "COPYRIGHT"
  400. Copyright 2019\-2023 The OpenSSL Project Authors. All Rights Reserved.
  401. .PP
  402. Licensed under the Apache License 2.0 (the \*(L"License\*(R"). You may not use
  403. this file except in compliance with the License. You can obtain a copy
  404. in the file \s-1LICENSE\s0 in the source distribution or at
  405. <https://www.openssl.org/source/license.html>.