From: Pauli Date: Wed, 25 Sep 2019 10:42:42 +0000 (+1000) Subject: Use OSSL_PARAM types. Limits are explained in the description where appropriate. X-Git-Tag: openssl-3.0.0-alpha1~1276 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=72c162abb093857b2b3ea4fa2c1785eda7d6228f;p=oweals%2Fopenssl.git Use OSSL_PARAM types. Limits are explained in the description where appropriate. Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/10011) --- diff --git a/doc/man7/provider-digest.pod b/doc/man7/provider-digest.pod index 3d7808452c..83989dcf8b 100644 --- a/doc/man7/provider-digest.pod +++ b/doc/man7/provider-digest.pod @@ -227,9 +227,10 @@ parameters are relevant to, or are understood by all digests: =over 4 -=item B (size_t) +=item B (unsigned integer) Sets the digest length for extendable output functions. +The length of the "xoflen" parameter should not exceed that of a B. =item B (octet string) @@ -243,7 +244,7 @@ section 5.6.8. The next call after setting this parameter will be OP_digest_final(). This is only relevant for implementations of SHA1 or MD5_SHA1. -=item B (uint) +=item B (unsigned integer) Sets the pad type to be used. The only built-in digest that uses this is MDC2. @@ -251,7 +252,7 @@ Normally the final MDC2 block is padded with 0s. If the pad type is set to 2 then the final block is padded with 0x80 followed by 0s. -=item B (utf8 string) +=item B (UTF8 string) Gets the digest Message Integrity Check algorithm string. This is used when creating S/MIME multipart/signed messages, as specified in diff --git a/doc/man7/provider-mac.pod b/doc/man7/provider-mac.pod index 77feab6b9b..f9d6e35329 100644 --- a/doc/man7/provider-mac.pod +++ b/doc/man7/provider-mac.pod @@ -159,7 +159,7 @@ Sets the key in the associated MAC ctx. Sets the IV of the underlying cipher, when applicable. -=item B (utf8 string) +=item B (UTF8 string) Sets the custom string in the associated MAC ctx. @@ -167,31 +167,31 @@ Sets the custom string in the associated MAC ctx. Sets the salt of the underlying cipher, when applicable. -=item B (int) +=item B (integer) Sets XOF mode in the associated MAC ctx. 0 means no XOF mode, 1 means XOF mode. -=item B (int) +=item B (integer) Gets flags associated with the MAC. =for comment We need to investigate if this is the right approach -=item B (utf8 string) +=item B (UTF8 string) -=item B (utf8 string) +=item B (UTF8 string) Sets the name of the underlying cipher or digest to be used. It must name a suitable algorithm for the MAC that's being used. -=item B (utf8 string) +=item B (UTF8 string) Sets the properties to be queried when trying to fetch the underlying algorithm. This must be given together with the algorithm naming parameter to be considered valid. -=item B (int) +=item B (integer) Can be used to get the resulting MAC size. diff --git a/doc/man7/provider-signature.pod b/doc/man7/provider-signature.pod index 1ab4831035..777b991cc6 100644 --- a/doc/man7/provider-signature.pod +++ b/doc/man7/provider-signature.pod @@ -194,15 +194,17 @@ algorithms: =over 4 -=item "digest" (B) +=item "digest" (B) Get or sets the name of the digest algorithm used for the input to the signature functions. -=item "digest-size" (B) +=item "digest-size" (B) Gets or sets the output size of the digest algorithm used for the input to the signature functions. +The length of the "digest-size" parameter should not exceed that of a B. + =back