Blame SOURCES/gnutls-3.7.7-aes-cbc-padding-support.patch

f4c0b8
diff --color -ruNp a/doc/Makefile.am b/doc/Makefile.am
f4c0b8
--- a/doc/Makefile.am	2022-11-15 14:14:10.632725399 +0100
f4c0b8
+++ b/doc/Makefile.am	2022-11-15 14:14:40.252300863 +0100
f4c0b8
@@ -575,6 +575,7 @@ ENUMS += enums/gnutls_certificate_verifi
f4c0b8
 ENUMS += enums/gnutls_certificate_verify_flags
f4c0b8
 ENUMS += enums/gnutls_channel_binding_t
f4c0b8
 ENUMS += enums/gnutls_cipher_algorithm_t
f4c0b8
+ENUMS += enums/gnutls_cipher_flags_t
f4c0b8
 ENUMS += enums/gnutls_close_request_t
f4c0b8
 ENUMS += enums/gnutls_compression_method_t
f4c0b8
 ENUMS += enums/gnutls_credentials_type_t
f4c0b8
@@ -882,12 +883,16 @@ FUNCS += functions/gnutls_cipher_decrypt
f4c0b8
 FUNCS += functions/gnutls_cipher_decrypt.short
f4c0b8
 FUNCS += functions/gnutls_cipher_decrypt2
f4c0b8
 FUNCS += functions/gnutls_cipher_decrypt2.short
f4c0b8
+FUNCS += functions/gnutls_cipher_decrypt3
f4c0b8
+FUNCS += functions/gnutls_cipher_decrypt3.short
f4c0b8
 FUNCS += functions/gnutls_cipher_deinit
f4c0b8
 FUNCS += functions/gnutls_cipher_deinit.short
f4c0b8
 FUNCS += functions/gnutls_cipher_encrypt
f4c0b8
 FUNCS += functions/gnutls_cipher_encrypt.short
f4c0b8
 FUNCS += functions/gnutls_cipher_encrypt2
f4c0b8
 FUNCS += functions/gnutls_cipher_encrypt2.short
f4c0b8
+FUNCS += functions/gnutls_cipher_encrypt3
f4c0b8
+FUNCS += functions/gnutls_cipher_encrypt3.short
f4c0b8
 FUNCS += functions/gnutls_cipher_get
f4c0b8
 FUNCS += functions/gnutls_cipher_get.short
f4c0b8
 FUNCS += functions/gnutls_cipher_get_block_size
f4c0b8
diff --color -ruNp a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am
f4c0b8
--- a/doc/manpages/Makefile.am	2022-11-15 14:14:10.634725438 +0100
f4c0b8
+++ b/doc/manpages/Makefile.am	2022-11-15 14:14:40.254300902 +0100
f4c0b8
@@ -273,9 +273,11 @@ APIMANS += gnutls_check_version.3
f4c0b8
 APIMANS += gnutls_cipher_add_auth.3
f4c0b8
 APIMANS += gnutls_cipher_decrypt.3
f4c0b8
 APIMANS += gnutls_cipher_decrypt2.3
f4c0b8
+APIMANS += gnutls_cipher_decrypt3.3
f4c0b8
 APIMANS += gnutls_cipher_deinit.3
f4c0b8
 APIMANS += gnutls_cipher_encrypt.3
f4c0b8
 APIMANS += gnutls_cipher_encrypt2.3
f4c0b8
+APIMANS += gnutls_cipher_encrypt3.3
f4c0b8
 APIMANS += gnutls_cipher_get.3
f4c0b8
 APIMANS += gnutls_cipher_get_block_size.3
f4c0b8
 APIMANS += gnutls_cipher_get_id.3
f4c0b8
diff --color -ruNp a/lib/crypto-api.c b/lib/crypto-api.c
f4c0b8
--- a/lib/crypto-api.c	2022-11-15 14:14:11.036733248 +0100
f4c0b8
+++ b/lib/crypto-api.c	2022-11-15 14:14:40.255300921 +0100
f4c0b8
@@ -413,6 +413,166 @@ gnutls_cipher_decrypt2(gnutls_cipher_hd_
f4c0b8
 }
f4c0b8
 
f4c0b8
 /**
f4c0b8
+ * gnutls_cipher_encrypt3:
f4c0b8
+ * @handle: is a #gnutls_cipher_hd_t type
f4c0b8
+ * @ptext: the data to encrypt
f4c0b8
+ * @ptext_len: the length of data to encrypt
f4c0b8
+ * @ctext: the encrypted data
f4c0b8
+ * @ctext_len: the length of encrypted data (initially must hold the maximum available size)
f4c0b8
+ * @flags: flags for padding
f4c0b8
+ *
f4c0b8
+ * This function will encrypt the given data using the algorithm
f4c0b8
+ * specified by the context. For block ciphers, @ptext_len is
f4c0b8
+ * typically a multiple of the block size. If not, the caller can
f4c0b8
+ * instruct the function to pad the last block according to @flags.
f4c0b8
+ * Currently, the only available padding scheme is
f4c0b8
+ * %GNUTLS_CIPHER_PADDING_PKCS7.
f4c0b8
+ *
f4c0b8
+ * If @ctext is not %NULL, it must hold enough space to store
f4c0b8
+ * resulting cipher text. To check the required size, this function
f4c0b8
+ * can be called with @ctext set to %NULL. Then @ctext_len will be
f4c0b8
+ * updated without performing actual encryption.
f4c0b8
+ *
f4c0b8
+ * Returns: Zero or a negative error code on error.
f4c0b8
+ *
f4c0b8
+ * Since: 3.7.7
f4c0b8
+ **/
f4c0b8
+int
f4c0b8
+gnutls_cipher_encrypt3(gnutls_cipher_hd_t handle,
f4c0b8
+		       const void *ptext, size_t ptext_len,
f4c0b8
+		       void *ctext, size_t *ctext_len,
f4c0b8
+		       unsigned flags)
f4c0b8
+{
f4c0b8
+	api_cipher_hd_st *h = handle;
f4c0b8
+	const cipher_entry_st *e = h->ctx_enc.e;
f4c0b8
+	int block_size = _gnutls_cipher_get_block_size(e);
f4c0b8
+	int ret = 0;
f4c0b8
+
f4c0b8
+	if (unlikely(ctext_len == NULL)) {
f4c0b8
+		return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	if (_gnutls_cipher_type(e) == CIPHER_BLOCK &&
f4c0b8
+	    (flags & GNUTLS_CIPHER_PADDING_PKCS7)) {
f4c0b8
+		size_t n, r;
f4c0b8
+		uint8_t last_block[MAX_CIPHER_BLOCK_SIZE];
f4c0b8
+		const uint8_t *p = ptext;
f4c0b8
+		uint8_t *c = ctext;
f4c0b8
+
f4c0b8
+		if (!INT_ADD_OK(ptext_len, block_size, &n)) {
f4c0b8
+			return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
f4c0b8
+		}
f4c0b8
+
f4c0b8
+		n = (n / block_size) * block_size;
f4c0b8
+
f4c0b8
+		if (!ctext) {
f4c0b8
+			*ctext_len = n;
f4c0b8
+			return 0;
f4c0b8
+		}
f4c0b8
+
f4c0b8
+		if (*ctext_len < n) {
f4c0b8
+			return gnutls_assert_val(GNUTLS_E_SHORT_MEMORY_BUFFER);
f4c0b8
+		}
f4c0b8
+
f4c0b8
+		/* Encrypt up to the last complete block */
f4c0b8
+		r = ptext_len % block_size;
f4c0b8
+
f4c0b8
+		ret = _gnutls_cipher_encrypt2(&h->ctx_enc,
f4c0b8
+					      ptext, ptext_len - r,
f4c0b8
+					      ctext, ptext_len - r);
f4c0b8
+		if (ret < 0) {
f4c0b8
+			goto error;
f4c0b8
+		}
f4c0b8
+
f4c0b8
+		/* Encrypt the last block with padding */
f4c0b8
+		gnutls_memset(last_block, block_size - r, sizeof(last_block));
f4c0b8
+		if (r > 0) {
f4c0b8
+			memcpy(last_block, &p[ptext_len - r], r);
f4c0b8
+		}
f4c0b8
+		ret = _gnutls_cipher_encrypt2(&h->ctx_enc,
f4c0b8
+					      last_block, block_size,
f4c0b8
+					      &c[ptext_len - r], block_size);
f4c0b8
+		if (ret < 0) {
f4c0b8
+			goto error;
f4c0b8
+		}
f4c0b8
+		*ctext_len = n;
f4c0b8
+	} else {
f4c0b8
+		if (!ctext) {
f4c0b8
+			*ctext_len = ptext_len;
f4c0b8
+			return 0;
f4c0b8
+		}
f4c0b8
+
f4c0b8
+		ret = _gnutls_cipher_encrypt2(&h->ctx_enc, ptext, ptext_len,
f4c0b8
+					      ctext, *ctext_len);
f4c0b8
+		if (ret < 0) {
f4c0b8
+			goto error;
f4c0b8
+		}
f4c0b8
+		*ctext_len = ptext_len;
f4c0b8
+	}
f4c0b8
+
f4c0b8
+ error:
f4c0b8
+	if (ret < 0) {
f4c0b8
+		_gnutls_switch_fips_state(GNUTLS_FIPS140_OP_ERROR);
f4c0b8
+	} else {
f4c0b8
+		_gnutls_switch_fips_state(GNUTLS_FIPS140_OP_APPROVED);
f4c0b8
+	}
f4c0b8
+	return ret;
f4c0b8
+}
f4c0b8
+
f4c0b8
+/**
f4c0b8
+ * gnutls_cipher_decrypt3:
f4c0b8
+ * @handle: is a #gnutls_cipher_hd_t type
f4c0b8
+ * @ctext: the data to decrypt
f4c0b8
+ * @ctext_len: the length of data to decrypt
f4c0b8
+ * @ptext: the decrypted data
f4c0b8
+ * @ptext_len: the available length for decrypted data
f4c0b8
+ * @flags: flags for padding
f4c0b8
+ *
f4c0b8
+ * This function will decrypt the given data using the algorithm
f4c0b8
+ * specified by the context. If @flags is specified, padding for the
f4c0b8
+ * decrypted data will be removed accordingly and @ptext_len will be
f4c0b8
+ * updated.
f4c0b8
+ *
f4c0b8
+ * Returns: Zero or a negative error code on error.
f4c0b8
+ *
f4c0b8
+ * Since: 3.7.7
f4c0b8
+ **/
f4c0b8
+int
f4c0b8
+gnutls_cipher_decrypt3(gnutls_cipher_hd_t handle,
f4c0b8
+		       const void *ctext, size_t ctext_len,
f4c0b8
+		       void *ptext, size_t *ptext_len,
f4c0b8
+		       unsigned flags)
f4c0b8
+{
f4c0b8
+	api_cipher_hd_st *h = handle;
f4c0b8
+	int ret;
f4c0b8
+
f4c0b8
+	ret = gnutls_cipher_decrypt2(handle,
f4c0b8
+				     ctext, ctext_len,
f4c0b8
+				     ptext, *ptext_len);
f4c0b8
+	if (ret < 0) {
f4c0b8
+		return ret;
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	if (_gnutls_cipher_type(h->ctx_enc.e) == CIPHER_BLOCK &&
f4c0b8
+	    (flags & GNUTLS_CIPHER_PADDING_PKCS7)) {
f4c0b8
+		uint8_t *p = ptext;
f4c0b8
+		uint8_t padding = p[*ptext_len - 1];
f4c0b8
+		if (!padding || padding > _gnutls_cipher_get_block_size(h->ctx_enc.e)) {
f4c0b8
+			return gnutls_assert_val(GNUTLS_E_DECRYPTION_FAILED);
f4c0b8
+		}
f4c0b8
+		/* Check that the prior bytes are all PADDING */
f4c0b8
+		for (size_t i = *ptext_len - padding; i < *ptext_len; i++) {
f4c0b8
+			if (padding != p[*ptext_len - 1]) {
f4c0b8
+				return gnutls_assert_val(GNUTLS_E_DECRYPTION_FAILED);
f4c0b8
+			}
f4c0b8
+		}
f4c0b8
+		*ptext_len -= padding;
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	return 0;
f4c0b8
+}
f4c0b8
+
f4c0b8
+/**
f4c0b8
  * gnutls_cipher_deinit:
f4c0b8
  * @handle: is a #gnutls_cipher_hd_t type
f4c0b8
  *
f4c0b8
diff --color -ruNp a/lib/includes/gnutls/crypto.h b/lib/includes/gnutls/crypto.h
f4c0b8
--- a/lib/includes/gnutls/crypto.h	2022-05-10 13:57:43.000000000 +0200
f4c0b8
+++ b/lib/includes/gnutls/crypto.h	2022-11-15 14:14:40.256300941 +0100
f4c0b8
@@ -49,6 +49,28 @@ int gnutls_cipher_encrypt2(gnutls_cipher
f4c0b8
 			   const void *text, size_t textlen,
f4c0b8
 			   void *ciphertext, size_t ciphertextlen);
f4c0b8
 
f4c0b8
+/**
f4c0b8
+ * gnutls_cipher_flags_t:
f4c0b8
+ * @GNUTLS_CIPHER_PADDING_PKCS7: Flag to indicate PKCS#7 padding
f4c0b8
+ *
f4c0b8
+ * Enumeration of flags to control block cipher padding, used by
f4c0b8
+ * gnutls_cipher_encrypt3() and gnutls_cipher_decrypt3().
f4c0b8
+ *
f4c0b8
+ * Since: 3.7.7
f4c0b8
+ */
f4c0b8
+typedef enum gnutls_cipher_flags_t {
f4c0b8
+	GNUTLS_CIPHER_PADDING_PKCS7 = 1
f4c0b8
+} gnutls_cipher_flags_t;
f4c0b8
+
f4c0b8
+int gnutls_cipher_encrypt3(gnutls_cipher_hd_t handle,
f4c0b8
+			   const void *ptext, size_t ptext_len,
f4c0b8
+			   void *ctext, size_t *ctext_len,
f4c0b8
+			   unsigned flags);
f4c0b8
+int gnutls_cipher_decrypt3(gnutls_cipher_hd_t handle,
f4c0b8
+			   const void *ctext, size_t ctext_len,
f4c0b8
+			   void *ptext, size_t *ptext_len,
f4c0b8
+			   unsigned flags);
f4c0b8
+
f4c0b8
 void gnutls_cipher_set_iv(gnutls_cipher_hd_t handle, void *iv,
f4c0b8
 			  size_t ivlen);
f4c0b8
 
f4c0b8
diff --color -ruNp a/lib/libgnutls.map b/lib/libgnutls.map
f4c0b8
--- a/lib/libgnutls.map	2022-11-15 14:14:11.142735308 +0100
f4c0b8
+++ b/lib/libgnutls.map	2022-11-15 14:14:40.256300941 +0100
f4c0b8
@@ -1403,6 +1403,8 @@ GNUTLS_3_7_7
f4c0b8
 {
f4c0b8
  global:
f4c0b8
 	gnutls_fips140_run_self_tests;
f4c0b8
+	gnutls_cipher_encrypt3;
f4c0b8
+	gnutls_cipher_decrypt3;
f4c0b8
  local:
f4c0b8
 	*;
f4c0b8
 } GNUTLS_3_7_5;
f4c0b8
diff --color -ruNp a/tests/cipher-padding.c b/tests/cipher-padding.c
f4c0b8
--- a/tests/cipher-padding.c	1970-01-01 01:00:00.000000000 +0100
f4c0b8
+++ b/tests/cipher-padding.c	2022-11-15 14:14:40.258300980 +0100
f4c0b8
@@ -0,0 +1,160 @@
f4c0b8
+/*
f4c0b8
+ * Copyright (C) 2022 Red Hat, Inc.
f4c0b8
+ *
f4c0b8
+ * Author: Daiki Ueno
f4c0b8
+ *
f4c0b8
+ * This file is part of GnuTLS.
f4c0b8
+ *
f4c0b8
+ * The GnuTLS is free software; you can redistribute it and/or
f4c0b8
+ * modify it under the terms of the GNU Lesser General Public License
f4c0b8
+ * as published by the Free Software Foundation; either version 2.1 of
f4c0b8
+ * the License, or (at your option) any later version.
f4c0b8
+ *
f4c0b8
+ * This library is distributed in the hope that it will be useful, but
f4c0b8
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
f4c0b8
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
f4c0b8
+ * Lesser General Public License for more details.
f4c0b8
+ *
f4c0b8
+ * You should have received a copy of the GNU Lesser General Public License
f4c0b8
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>
f4c0b8
+ *
f4c0b8
+ */
f4c0b8
+
f4c0b8
+#include <config.h>
f4c0b8
+
f4c0b8
+#include <gnutls/crypto.h>
f4c0b8
+#include <limits.h>
f4c0b8
+#include <stdint.h>
f4c0b8
+#include <stdio.h>
f4c0b8
+#include "utils.h"
f4c0b8
+
f4c0b8
+static void tls_log_func(int level, const char *str)
f4c0b8
+{
f4c0b8
+	fprintf(stderr, "<%d>| %s", level, str);
f4c0b8
+}
f4c0b8
+
f4c0b8
+#define CLAMP(x, b) (((x) + (b)) / (b)) * (b)
f4c0b8
+
f4c0b8
+static void
f4c0b8
+start(gnutls_cipher_algorithm_t algo, size_t plaintext_size, unsigned int flags)
f4c0b8
+{
f4c0b8
+	int ret;
f4c0b8
+	gnutls_cipher_hd_t ch;
f4c0b8
+	uint8_t key16[64];
f4c0b8
+	uint8_t iv16[32];
f4c0b8
+	uint8_t plaintext[128];
f4c0b8
+	uint8_t ciphertext[128];
f4c0b8
+	size_t block_size;
f4c0b8
+	size_t size;
f4c0b8
+	gnutls_datum_t key, iv;
f4c0b8
+
f4c0b8
+	success("%s %zu %u\n",
f4c0b8
+		gnutls_cipher_get_name(algo), plaintext_size, flags);
f4c0b8
+
f4c0b8
+	block_size = gnutls_cipher_get_block_size(algo);
f4c0b8
+
f4c0b8
+	key.data = key16;
f4c0b8
+	key.size = gnutls_cipher_get_key_size(algo);
f4c0b8
+	assert(key.size <= sizeof(key16));
f4c0b8
+
f4c0b8
+	iv.data = iv16;
f4c0b8
+	iv.size = gnutls_cipher_get_iv_size(algo);
f4c0b8
+	assert(iv.size <= sizeof(iv16));
f4c0b8
+
f4c0b8
+	memset(iv.data, 0xff, iv.size);
f4c0b8
+	memset(key.data, 0xfe, key.size);
f4c0b8
+	memset(plaintext, 0xfa, sizeof(plaintext));
f4c0b8
+
f4c0b8
+	ret = gnutls_cipher_init(&ch, algo, &key, &iv;;
f4c0b8
+	if (ret < 0) {
f4c0b8
+		fail("gnutls_cipher_init failed\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	/* Check overflow if PKCS#7 is requested */
f4c0b8
+	if (flags & GNUTLS_CIPHER_PADDING_PKCS7) {
f4c0b8
+		ret = gnutls_cipher_encrypt3(ch,
f4c0b8
+					     plaintext, SIZE_MAX,
f4c0b8
+					     NULL, &size,
f4c0b8
+					     flags);
f4c0b8
+		if (ret != GNUTLS_E_INVALID_REQUEST) {
f4c0b8
+			fail("gnutls_cipher_encrypt3 succeeded\n");
f4c0b8
+		}
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	/* Get the ciphertext size */
f4c0b8
+	ret = gnutls_cipher_encrypt3(ch,
f4c0b8
+				     plaintext, plaintext_size,
f4c0b8
+				     NULL, &size,
f4c0b8
+				     flags);
f4c0b8
+	if (ret < 0) {
f4c0b8
+		fail("gnutls_cipher_encrypt3 failed\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	if (flags & GNUTLS_CIPHER_PADDING_PKCS7) {
f4c0b8
+		if (size <= plaintext_size) {
f4c0b8
+			fail("no padding appended\n");
f4c0b8
+		}
f4c0b8
+		if (size != CLAMP(plaintext_size, block_size)) {
f4c0b8
+			fail("size does not match: %zu (expected %zu)\n",
f4c0b8
+			     size, CLAMP(plaintext_size, block_size));
f4c0b8
+		}
f4c0b8
+	} else {
f4c0b8
+		if (size != plaintext_size) {
f4c0b8
+			fail("size does not match: %zu (expected %zu)\n",
f4c0b8
+			     size, plaintext_size);
f4c0b8
+		}
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	/* Encrypt with padding */
f4c0b8
+	ret = gnutls_cipher_encrypt3(ch,
f4c0b8
+				     plaintext, plaintext_size,
f4c0b8
+				     ciphertext, &size,
f4c0b8
+				     flags);
f4c0b8
+	if (ret < 0) {
f4c0b8
+		fail("gnutls_cipher_encrypt3 failed\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	/* Decrypt with padding */
f4c0b8
+	ret = gnutls_cipher_decrypt3(ch,
f4c0b8
+				     ciphertext, size,
f4c0b8
+				     ciphertext, &size,
f4c0b8
+				     flags);
f4c0b8
+	if (ret < 0) {
f4c0b8
+		fail("gnutls_cipher_encrypt3 failed\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	if (size != plaintext_size) {
f4c0b8
+		fail("size does not match: %zu (expected %zu)\n",
f4c0b8
+		     size, plaintext_size);
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	if (memcmp(ciphertext, plaintext, size) != 0) {
f4c0b8
+		fail("plaintext does not match\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	gnutls_cipher_deinit(ch);
f4c0b8
+}
f4c0b8
+
f4c0b8
+void doit(void) {
f4c0b8
+	int ret;
f4c0b8
+
f4c0b8
+	gnutls_global_set_log_function(tls_log_func);
f4c0b8
+	if (debug) {
f4c0b8
+		gnutls_global_set_log_level(4711);
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	ret = global_init();
f4c0b8
+	if (ret < 0) {
f4c0b8
+		fail("Cannot initialize library\n");
f4c0b8
+	}
f4c0b8
+
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 0, GNUTLS_CIPHER_PADDING_PKCS7);
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 11, GNUTLS_CIPHER_PADDING_PKCS7);
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 77, GNUTLS_CIPHER_PADDING_PKCS7);
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 80, GNUTLS_CIPHER_PADDING_PKCS7);
f4c0b8
+
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 0, 0);
f4c0b8
+	start(GNUTLS_CIPHER_AES_128_CBC, 80, 0);
f4c0b8
+
f4c0b8
+	gnutls_global_deinit();
f4c0b8
+}
f4c0b8
diff --color -ruNp a/tests/Makefile.am b/tests/Makefile.am
f4c0b8
--- a/tests/Makefile.am	2022-11-15 14:14:11.144735347 +0100
f4c0b8
+++ b/tests/Makefile.am	2022-11-15 14:14:40.257300960 +0100
f4c0b8
@@ -233,7 +233,7 @@ ctests += mini-record-2 simple gnutls_hm
f4c0b8
 	 tls13-without-timeout-func buffer status-request-revoked \
f4c0b8
 	 set_x509_ocsp_multi_cli kdf-api keylog-func handshake-write \
f4c0b8
 	 x509cert-dntypes id-on-xmppAddr tls13-compat-mode ciphersuite-name \
f4c0b8
-	 x509-upnconstraint xts-key-check pkcs7-verify-double-free \
f4c0b8
+	 x509-upnconstraint cipher-padding xts-key-check pkcs7-verify-double-free \
f4c0b8
 	 fips-rsa-sizes tls12-rehandshake-ticket
f4c0b8
 
f4c0b8
 ctests += tls-channel-binding