aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c')
-rw-r--r--crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c b/crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c
index cfc78e07709f..634bae4c1c1d 100644
--- a/crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c
+++ b/crypto/openssl/providers/implementations/ciphers/ciphercommon_block.c
@@ -37,8 +37,8 @@
* which is a multiple of the blocksize.
*/
size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen,
- size_t blocksize,
- const unsigned char **in, size_t *inlen)
+ size_t blocksize,
+ const unsigned char **in, size_t *inlen)
{
size_t blockmask = ~(blocksize - 1);
size_t bufremain = blocksize - *buflen;
@@ -61,7 +61,7 @@ size_t ossl_cipher_fillblock(unsigned char *buf, size_t *buflen,
* fit into a full block.
*/
int ossl_cipher_trailingdata(unsigned char *buf, size_t *buflen, size_t blocksize,
- const unsigned char **in, size_t *inlen)
+ const unsigned char **in, size_t *inlen)
{
if (*inlen == 0)
return 1;
@@ -139,18 +139,18 @@ int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize)
* the mac is random
*/
int ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion,
- unsigned char *buf, size_t *buflen,
- size_t blocksize,
- unsigned char **mac, int *alloced, size_t macsize,
- int aead)
+ unsigned char *buf, size_t *buflen,
+ size_t blocksize,
+ unsigned char **mac, int *alloced, size_t macsize,
+ int aead)
{
int ret;
switch (tlsversion) {
case SSL3_VERSION:
return ssl3_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,
- alloced, blocksize, macsize,
- libctx);
+ alloced, blocksize, macsize,
+ libctx);
case TLS1_2_VERSION:
case DTLS1_2_VERSION:
@@ -163,8 +163,8 @@ int ossl_cipher_tlsunpadblock(OSSL_LIB_CTX *libctx, unsigned int tlsversion,
/* Fall through */
case TLS1_VERSION:
ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac,
- alloced, blocksize, macsize,
- aead, libctx);
+ alloced, blocksize, macsize,
+ aead, libctx);
return ret;
default: