diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2019-09-05 11:23:57 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2019-09-05 11:23:57 +1000 |
commit | 1c3ace6898032b7b45d8106ba4e0d21d75b0997e (patch) | |
tree | 5e07997567a0c99c1a0d55a2a4d258f614b0f7e0 /doc | |
parent | bc5a80910dccbc1e417f96bb7f0a3814d3ad5a4d (diff) |
Change provider params from int to size_t
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9699)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/man3/EVP_PKEY_CTX_ctrl.pod | 2 | ||||
-rw-r--r-- | doc/man7/provider-cipher.pod | 22 | ||||
-rw-r--r-- | doc/man7/provider-digest.pod | 6 | ||||
-rw-r--r-- | doc/man7/provider-keyexch.pod | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/doc/man3/EVP_PKEY_CTX_ctrl.pod b/doc/man3/EVP_PKEY_CTX_ctrl.pod index 369fc0f9d0..1787e19ab7 100644 --- a/doc/man3/EVP_PKEY_CTX_ctrl.pod +++ b/doc/man3/EVP_PKEY_CTX_ctrl.pod @@ -153,7 +153,7 @@ The parameters currently supported by the default provider are: =over 4 -=item OSSL_EXCHANGE_PARAM_PAD (int type) +=item OSSL_EXCHANGE_PARAM_PAD (uint type) Sets the DH padding mode. If B<OSSL_EXCHANGE_PARAM_PAD> is 1 then the shared secret is padded with zeroes diff --git a/doc/man7/provider-cipher.pod b/doc/man7/provider-cipher.pod index 040a34c126..1b7dff8f76 100644 --- a/doc/man7/provider-cipher.pod +++ b/doc/man7/provider-cipher.pod @@ -39,7 +39,7 @@ provider-cipher - The cipher library E<lt>-E<gt> provider functions /* Cipher parameter descriptors */ const OSSL_PARAM *OP_cipher_gettable_params(void); - /* Cipheroperation parameter descriptors */ + /* Cipher operation parameter descriptors */ const OSSL_PARAM *OP_cipher_gettable_ctx_params(void); const OSSL_PARAM *OP_cipher_settable_ctx_params(void); @@ -111,7 +111,7 @@ OP_cipher_newctx() should create and return a pointer to a provider side structure for holding context information during a cipher operation. A pointer to this context will be passed back in a number of the other cipher operation function calls. -The paramater B<provctx> is the provider context generated during provider +The parameter B<provctx> is the provider context generated during provider initialisation (see L<provider(3)>). OP_cipher_freectx() is passed a pointer to the provider side cipher context in @@ -124,7 +124,7 @@ B<cctx> parameter and return the duplicate copy. =head2 Encryption/Decryption Functions OP_cipher_encrypt_init() initialises a cipher operation for encryption given a -newly created provider side cipher context in the B<cctx> paramter. +newly created provider side cipher context in the B<cctx> parameter. The key to be used is given in B<key> which is B<keylen> bytes long. The IV to be used is given in B<iv> which is B<ivlen> bytes long. @@ -158,7 +158,7 @@ The same expectations apply to B<outsize> as documented for L<EVP_EncryptFinal(3)> and L<EVP_DecryptFinal(3)>. OP_cipher_cipher() performs encryption/decryption using the provider side cipher -context in the B<cctx> paramter that should have been previously initialised via +context in the B<cctx> parameter that should have been previously initialised via a call to OP_cipher_encrypt_init() or OP_cipher_decrypt_init. This should call the raw underlying cipher function without any padding. This will be invoked in the provider as a result of the application calling @@ -197,18 +197,18 @@ parameters are relevant to, or are understood by all ciphers: =over 4 -=item B<OSSL_CIPHER_PARAM_PADDING> (int) +=item B<OSSL_CIPHER_PARAM_PADDING> (uint) Sets the padding mode for the associated cipher ctx. Setting a value of 1 will turn padding on. -Setting a vlue of 0 will turn padding off. +Setting a value of 0 will turn padding off. -=item B<OSSL_CIPHER_PARAM_MODE> (int) +=item B<OSSL_CIPHER_PARAM_MODE> (uint) 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> (int) +=item B<OSSL_CIPHER_PARAM_BLOCK_SIZE> (size_t) Gets the block size for the associated cipher algorithm. The block size should be 1 for stream ciphers. @@ -223,13 +223,13 @@ Gets any flags for the associated cipher algorithm. See L<EVP_CIPHER_meth_set_flags(3)> for a list of currently defined cipher flags. -=item B<OSSL_CIPHER_PARAM_KEYLEN> (int) +=item B<OSSL_CIPHER_PARAM_KEYLEN> (size_t) 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. -=item B<OSSL_CIPHER_PARAM_IVLEN> (int) +=item B<OSSL_CIPHER_PARAM_IVLEN> (size_t) Gets the IV length for the associated cipher algorithm. @@ -237,7 +237,7 @@ Gets the IV length for the associated cipher algorithm. Gets the IV for the associated cipher ctx. -=item B<OSSL_CIPHER_PARAM_NUM> (int) +=item B<OSSL_CIPHER_PARAM_NUM> (uint) 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 diff --git a/doc/man7/provider-digest.pod b/doc/man7/provider-digest.pod index 31d3516def..3d7808452c 100644 --- a/doc/man7/provider-digest.pod +++ b/doc/man7/provider-digest.pod @@ -164,11 +164,11 @@ by all digests: =over 4 -=item B<OSSL_DIGEST_PARAM_BLOCK_SIZE> (int) +=item B<OSSL_DIGEST_PARAM_BLOCK_SIZE> (size_t) The digest block size. -=item B<OSSL_DIGEST_PARAM_SIZE> (int) +=item B<OSSL_DIGEST_PARAM_SIZE> (size_t) The digest output size. @@ -243,7 +243,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> (int) +=item B<OSSL_DIGEST_PARAM_PAD_TYPE> (uint) Sets the pad type to be used. The only built-in digest that uses this is MDC2. diff --git a/doc/man7/provider-keyexch.pod b/doc/man7/provider-keyexch.pod index 875d6e267e..71830c12c6 100644 --- a/doc/man7/provider-keyexch.pod +++ b/doc/man7/provider-keyexch.pod @@ -138,7 +138,7 @@ algorithms: =over 4 -=item B<OSSL_EXCHANGE_PARAM_PAD> (int) +=item B<OSSL_EXCHANGE_PARAM_PAD> (uint) Sets the padding mode for the associated key exchange ctx. Setting a value of 1 will turn padding on. |