diff options
author | Pauli <paul.dale@oracle.com> | 2019-09-26 04:14:00 +0200 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2019-09-27 08:21:51 +0200 |
commit | d56eba1fd109faa2c25fcb7cb2d9ee85e62b827f (patch) | |
tree | 5a6c61cd87b3ae9d6c0705ea924a890ab62d3763 /doc | |
parent | When building of modules is disabled, build the legacy provider into libcrypto (diff) | |
download | openssl-d56eba1fd109faa2c25fcb7cb2d9ee85e62b827f.tar.xz openssl-d56eba1fd109faa2c25fcb7cb2d9ee85e62b827f.zip |
Make OSSL_PARAM descriptions uniformly formatted.
=item B<MACRO> ("name") <type>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10024)
Diffstat (limited to '')
-rw-r--r-- | doc/man7/provider-cipher.pod | 38 | ||||
-rw-r--r-- | doc/man7/provider-digest.pod | 19 | ||||
-rw-r--r-- | doc/man7/provider-keyexch.pod | 2 | ||||
-rw-r--r-- | doc/man7/provider-mac.pod | 20 | ||||
-rw-r--r-- | doc/man7/provider-signature.pod | 4 |
5 files changed, 48 insertions, 35 deletions
diff --git a/doc/man7/provider-cipher.pod b/doc/man7/provider-cipher.pod index d5d2f13390..4753c326a0 100644 --- a/doc/man7/provider-cipher.pod +++ b/doc/man7/provider-cipher.pod @@ -197,18 +197,18 @@ parameters are relevant to, or are understood by all ciphers: =over 4 -=item B<OSSL_CIPHER_PARAM_PADDING> (uint) +=item B<OSSL_CIPHER_PARAM_PADDING> ("padding") <unsigned integer> Sets the padding mode for the associated cipher ctx. Setting a value of 1 will turn padding on. Setting a value of 0 will turn padding off. -=item B<OSSL_CIPHER_PARAM_MODE> (uint) +=item B<OSSL_CIPHER_PARAM_MODE> ("mode") <unsigned integer> Gets the mode for the associated cipher algorithm. See L<EVP_CIPHER_mode(3)> for a list of valid modes. -=item B<OSSL_CIPHER_PARAM_BLOCK_SIZE> (size_t) +=item B<OSSL_CIPHER_PARAM_BLOCK_SIZE> ("blocksize") <unsigned integer> Gets the block size for the associated cipher algorithm. The block size should be 1 for stream ciphers. @@ -216,44 +216,50 @@ Note that the block size for a cipher may be different to the block size for the underlying encryption/decryption primitive. For example AES in CTR mode has a block size of 1 (because it operates like a stream cipher), even though AES has a block size of 16. +The length of the "blocksize" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_FLAGS> (ulong) +=item B<OSSL_CIPHER_PARAM_FLAGS> ("flags") <unsigned integer> Gets any flags for the associated cipher algorithm. See L<EVP_CIPHER_meth_set_flags(3)> for a list of currently defined cipher flags. +The length of the "flags" parameter should equal that of an +B<unsigned long int>. -=item B<OSSL_CIPHER_PARAM_KEYLEN> (size_t) +=item B<OSSL_CIPHER_PARAM_KEYLEN> ("keylen") <unsigned integer> Gets the key length for the associated cipher algorithm. This can also be used to get or set the key length for the associated cipher ctx. +The length of the "keylen" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_IVLEN> (size_t) +=item B<OSSL_CIPHER_PARAM_IVLEN> ("ivlen") <unsigned integer> Gets the IV length for the associated cipher algorithm. +The length of the "ivlen" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_IV> (octet_string OR octet_ptr) +=item B<OSSL_CIPHER_PARAM_IV> ("iv") <octet string OR octet ptr> Gets the IV for the associated cipher ctx. -=item B<OSSL_CIPHER_PARAM_NUM> (uint) +=item B<OSSL_CIPHER_PARAM_NUM> ("num") <unsigned integer> Gets or sets the cipher specific "num" parameter for the associated cipher ctx. Built-in ciphers typically use this to track how much of the current underlying block has been "used" already. -=item B<OSSL_CIPHER_PARAM_AEAD_TAG> (octet_string) +=item B<OSSL_CIPHER_PARAM_AEAD_TAG> ("tag") <octet string> Gets or sets the AEAD tag for the associated cipher ctx. See L<EVP_EncryptInit(3)/AEAD Interface>. -=item B<OSSL_CIPHER_PARAM_AEAD_TAGLEN> (size_t) +=item B<OSSL_CIPHER_PARAM_AEAD_TAGLEN> ("taglen") <unsigned integer> Gets the tag length to be used for an AEAD cipher for the associated cipher ctx. It returns a default value if it has not been set. +The length of the "taglen" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_AAD> (octet_string) +=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_AAD> ("tlsaad") <octet string> =for comment TODO(3.0): Consider changing this interface so that all ciphers use the standard AEAD interface - rather than having this special purpose @@ -263,12 +269,13 @@ Sets TLSv1.2 AAD information for the associated cipher ctx. TLSv1.2 AAD information is always 13 bytes in length and is as defined for the "additional_data" field described in section 6.2.3.3 of RFC5246. -=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD> (size_t) +=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD> ("tlsaadpad") <unsigned integer> Gets the length of the tag that will be added to a TLS record for the AEAD tag for the associated cipher ctx. +The length of the "tlsaadpad" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED> (octet_string) +=item B<OSSL_CIPHER_PARAM_AEAD_TLS1_IV_FIXED> ("tlsivfixed") <octet string> =for comment TODO(3.0): This interface needs completely redesigning! @@ -303,11 +310,12 @@ Whether encrypting or decrypting the value written to B<*outl> in the OP_cipher_cipher call should be the length of the payload excluding the explicit IV length and the tag length. -=item B<OSSL_CIPHER_PARAM_AEAD_IVLEN> (size_t) +=item B<OSSL_CIPHER_PARAM_AEAD_IVLEN> ("ivlen") <unsigned integer> Sets the IV length to be used for an AEAD cipher for the associated cipher ctx. +The length of the "ivlen" parameter should not exceed that of a B<size_t>. -=item B<OSSL_CIPHER_PARAM_RANDOM_KEY> (octet_string) +=item B<OSSL_CIPHER_PARAM_RANDOM_KEY> ("randkey") <octet string> Gets a implementation specific randomly generated key for the associated cipher ctx. This is currently only supported by 3DES (which sets the key to diff --git a/doc/man7/provider-digest.pod b/doc/man7/provider-digest.pod index 83989dcf8b..4dfa2ee31c 100644 --- a/doc/man7/provider-digest.pod +++ b/doc/man7/provider-digest.pod @@ -164,15 +164,17 @@ by all digests: =over 4 -=item B<OSSL_DIGEST_PARAM_BLOCK_SIZE> (size_t) +=item B<OSSL_DIGEST_PARAM_BLOCK_SIZE> ("blocksize") <unsigned integer> The digest block size. +The length of the "blocksize" parameter should not exceed that of a B<size_t>. -=item B<OSSL_DIGEST_PARAM_SIZE> (size_t) +=item B<OSSL_DIGEST_PARAM_SIZE> ("size") <unsigned integer> The digest output size. +The length of the "size" parameter should not exceed that of a B<size_t>. -=item B<OSSL_DIGEST_PARAM_FLAGS> (unsigned long) +=item B<OSSL_DIGEST_PARAM_FLAGS> ("flags") <unsigned integer> Diverse flags that describe exceptional behaviour for the digest: @@ -208,6 +210,9 @@ Currently unused. =back +The length of the "flags" parameter should equal that of an +B<unsigned long int>. + =back =head2 Digest Context Parameters @@ -227,12 +232,12 @@ parameters are relevant to, or are understood by all digests: =over 4 -=item B<OSSL_DIGEST_PARAM_XOFLEN> (unsigned integer) +=item B<OSSL_DIGEST_PARAM_XOFLEN> ("xoflen") <unsigned integer> Sets the digest length for extendable output functions. The length of the "xoflen" parameter should not exceed that of a B<size_t>. -=item B<OSSL_DIGEST_PARAM_SSL3_MS> (octet string) +=item B<OSSL_DIGEST_PARAM_SSL3_MS> ("ssl3-ms") <octet string> This parameter is set by libssl in order to calculate a signature hash for an SSLv3 CertificateVerify message as per RFC6101. @@ -244,7 +249,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<OSSL_DIGEST_PARAM_PAD_TYPE> (unsigned integer) +=item B<OSSL_DIGEST_PARAM_PAD_TYPE> ("pad_type") <unsigned integer> Sets the pad type to be used. The only built-in digest that uses this is MDC2. @@ -252,7 +257,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<OSSL_DIGEST_PARAM_MICALG> (UTF8 string) +=item B<OSSL_DIGEST_PARAM_MICALG> ("micalg") <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-keyexch.pod b/doc/man7/provider-keyexch.pod index 9ef294395c..0935155a3d 100644 --- a/doc/man7/provider-keyexch.pod +++ b/doc/man7/provider-keyexch.pod @@ -139,7 +139,7 @@ algorithms: =over 4 -=item B<OSSL_EXCHANGE_PARAM_PAD> (uint) +=item B<OSSL_EXCHANGE_PARAM_PAD> ("pad") <unsigned integer> Sets the padding mode for the associated key exchange ctx. Setting a value of 1 will turn padding on. diff --git a/doc/man7/provider-mac.pod b/doc/man7/provider-mac.pod index f9d6e35329..fc179740fc 100644 --- a/doc/man7/provider-mac.pod +++ b/doc/man7/provider-mac.pod @@ -151,47 +151,47 @@ parameters are relevant to, or are understood by all macs: =over 4 -=item B<OSSL_MAC_PARAM_KEY> (octet string) +=item B<OSSL_MAC_PARAM_KEY> ("key") <octet string> Sets the key in the associated MAC ctx. -=item B<OSSL_MAC_PARAM_IV> (octet string) +=item B<OSSL_MAC_PARAM_IV> ("iv") <octet string> Sets the IV of the underlying cipher, when applicable. -=item B<OSSL_MAC_PARAM_CUSTOM> (UTF8 string) +=item B<OSSL_MAC_PARAM_CUSTOM> ("custom") <UTF8 string> Sets the custom string in the associated MAC ctx. -=item B<OSSL_MAC_PARAM_SALT> (octet string) +=item B<OSSL_MAC_PARAM_SALT> ("salt") <octet string> Sets the salt of the underlying cipher, when applicable. -=item B<OSSL_MAC_PARAM_BLOCK_XOF> (integer) +=item B<OSSL_MAC_PARAM_BLOCK_XOF> ("xof") <integer> Sets XOF mode in the associated MAC ctx. 0 means no XOF mode, 1 means XOF mode. -=item B<OSSL_MAC_PARAM_FLAGS> (integer) +=item B<OSSL_MAC_PARAM_FLAGS> ("flags") <integer> Gets flags associated with the MAC. =for comment We need to investigate if this is the right approach -=item B<OSSL_MAC_PARAM_CIPHER> (UTF8 string) +=item B<OSSL_MAC_PARAM_CIPHER> ("cipher") <UTF8 string> -=item B<OSSL_MAC_PARAM_DIGEST> (UTF8 string) +=item B<OSSL_MAC_PARAM_DIGEST> ("digest") <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<OSSL_MAC_PARAM_PROPERTIES> (UTF8 string) +=item B<OSSL_MAC_PARAM_PROPERTIES> ("properties") <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<OSSL_MAC_PARAM_SIZE> (integer) +=item B<OSSL_MAC_PARAM_SIZE> ("size") <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 777b991cc6..81b6feb0a2 100644 --- a/doc/man7/provider-signature.pod +++ b/doc/man7/provider-signature.pod @@ -194,12 +194,12 @@ algorithms: =over 4 -=item "digest" (B<OSSL_SIGNATURE_PARAM_DIGEST>) <UTF8 string> +=item B<OSSL_SIGNATURE_PARAM_DIGEST> ("digest") <UTF8 string> Get or sets the name of the digest algorithm used for the input to the signature functions. -=item "digest-size" (B<OSSL_SIGNATURE_PARAM_DIGEST_SIZE>) <unsigned integer> +=item B<OSSL_SIGNATURE_PARAM_DIGEST_SIZE> ("digest-size") <unsigned integer> Gets or sets the output size of the digest algorithm used for the input to the signature functions. |