blob: 231d1d515af70b905277b101c2b4780f04c7287e [file] [log] [blame]
Serge Bazanski72c1f2b2024-06-04 13:42:48 +00001From 00f0c95d643bc714f3361fa4f10dee3bf9f9384e Mon Sep 17 00:00:00 2001
2From: Serge Bazanski <serge@monogon.tech>
3Date: Tue, 4 Jun 2024 12:59:30 +0200
4Subject: [PATCH 4/6] boringssl compat: removed camellia support
5
6BoringSSL removed Camellia support out of principle, we don't care for
7it either and the TPM spec doesn't mandate it.
8---
9 src/tpm2/TpmProfile_Common.h | 6 +++---
10 1 file changed, 3 insertions(+), 3 deletions(-)
11
12diff --git a/src/tpm2/TpmProfile_Common.h b/src/tpm2/TpmProfile_Common.h
13index a4bf462..78842a6 100644
14--- a/src/tpm2/TpmProfile_Common.h
15+++ b/src/tpm2/TpmProfile_Common.h
16@@ -133,11 +133,11 @@
17
18 #define SM4_128 (NO * ALG_SM4)
19
20-#define ALG_CAMELLIA ALG_YES
21+#define ALG_CAMELLIA ALG_NO
22
23-#define CAMELLIA_128 (YES * ALG_CAMELLIA)
24+#define CAMELLIA_128 (NO * ALG_CAMELLIA)
25 #define CAMELLIA_192 (NO * ALG_CAMELLIA)
26-#define CAMELLIA_256 (YES * ALG_CAMELLIA)
27+#define CAMELLIA_256 (NO * ALG_CAMELLIA)
28
29 #define ALG_TDES ALG_YES /* libtpms enabled */
30
31--
322.42.0
33