From 119ca7cc6c72c24eecb53deebd1adad04ee8d45b Mon Sep 17 00:00:00 2001 From: Olivier Masse Date: Mon, 20 Nov 2023 11:27:24 +0100 Subject: [PATCH] fixup! regression: 4005: Export CFG_GCM_NIST_VECTORS flag Add copyright Signed-off-by: Olivier Masse --- host/xtest/nist/gcmDecrypt128.h | 6 ++++++ host/xtest/nist/gcmDecrypt192.h | 6 ++++++ host/xtest/nist/gcmDecrypt256.h | 6 ++++++ host/xtest/nist/gcmEncryptExtIV128.h | 6 ++++++ host/xtest/nist/gcmEncryptExtIV192.h | 6 ++++++ host/xtest/nist/gcmEncryptExtIV256.h | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/host/xtest/nist/gcmDecrypt128.h b/host/xtest/nist/gcmDecrypt128.h index b6e47f29e..4db5de022 100644 --- a/host/xtest/nist/gcmDecrypt128.h +++ b/host/xtest/nist/gcmDecrypt128.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_DECRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0xcf, 0x06, 0x3a, 0x34, 0xd4, 0xa9, 0xa7, 0x6c, 0x2c, 0x86, 0x78, 0x7d, 0x3f, 0x96, 0xdb, 0x71, }, 16.0, /* IV */ (const uint8_t []){0x11, 0x3b, 0x97, 0x85, 0x97, 0x18, 0x64, 0xc8, 0x3b, 0x01, 0xc7, 0x87, }, 12.0, diff --git a/host/xtest/nist/gcmDecrypt192.h b/host/xtest/nist/gcmDecrypt192.h index 2a9eab03e..f991dab19 100644 --- a/host/xtest/nist/gcmDecrypt192.h +++ b/host/xtest/nist/gcmDecrypt192.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_DECRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0x0e, 0x5d, 0x6e, 0x68, 0xf8, 0x2f, 0x32, 0xbe, 0xa3, 0xf0, 0xb6, 0x94, 0x98, 0xc1, 0xa3, 0x1e, 0xf6, 0xd9, 0x55, 0xcd, 0x3d, 0x27, 0xa2, 0xa8, }, 24.0, /* IV */ (const uint8_t []){0xca, 0xf7, 0x2e, 0xe1, 0xe6, 0x2e, 0x10, 0x01, 0xe8, 0xcf, 0xbc, 0x63, }, 12.0, diff --git a/host/xtest/nist/gcmDecrypt256.h b/host/xtest/nist/gcmDecrypt256.h index 7a47798f4..cec0a5bd6 100644 --- a/host/xtest/nist/gcmDecrypt256.h +++ b/host/xtest/nist/gcmDecrypt256.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_DECRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0xf5, 0xa2, 0xb2, 0x7c, 0x74, 0x35, 0x58, 0x72, 0xeb, 0x3e, 0xf6, 0xc5, 0xfe, 0xaf, 0xaa, 0x74, 0x0e, 0x6a, 0xe9, 0x90, 0xd9, 0xd4, 0x8c, 0x3b, 0xd9, 0xbb, 0x82, 0x35, 0xe5, 0x89, 0xf0, 0x10, }, 32.0, /* IV */ (const uint8_t []){0x58, 0xd2, 0x24, 0x0f, 0x58, 0x0a, 0x31, 0xc1, 0xd2, 0x49, 0x48, 0xe9, }, 12.0, diff --git a/host/xtest/nist/gcmEncryptExtIV128.h b/host/xtest/nist/gcmEncryptExtIV128.h index 9e414d058..6f6617996 100644 --- a/host/xtest/nist/gcmEncryptExtIV128.h +++ b/host/xtest/nist/gcmEncryptExtIV128.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_ENCRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0x11, 0x75, 0x4c, 0xd7, 0x2a, 0xec, 0x30, 0x9b, 0xf5, 0x2f, 0x76, 0x87, 0x21, 0x2e, 0x89, 0x57, }, 16.0, /* IV */ (const uint8_t []){0x3c, 0x81, 0x9d, 0x9a, 0x9b, 0xed, 0x08, 0x76, 0x15, 0x03, 0x0b, 0x65, }, 12.0, diff --git a/host/xtest/nist/gcmEncryptExtIV192.h b/host/xtest/nist/gcmEncryptExtIV192.h index a31feb8f2..56ad925dc 100644 --- a/host/xtest/nist/gcmEncryptExtIV192.h +++ b/host/xtest/nist/gcmEncryptExtIV192.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_ENCRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0xaa, 0x74, 0x0a, 0xbf, 0xad, 0xcd, 0xa7, 0x79, 0x22, 0x0d, 0x3b, 0x40, 0x6c, 0x5d, 0x7e, 0xc0, 0x9a, 0x77, 0xfe, 0x9d, 0x94, 0x10, 0x45, 0x39, }, 24.0, /* IV */ (const uint8_t []){0xab, 0x22, 0x65, 0xb4, 0xc1, 0x68, 0x95, 0x55, 0x61, 0xf0, 0x43, 0x15, }, 12.0, diff --git a/host/xtest/nist/gcmEncryptExtIV256.h b/host/xtest/nist/gcmEncryptExtIV256.h index 50b135a80..f50511e87 100644 --- a/host/xtest/nist/gcmEncryptExtIV256.h +++ b/host/xtest/nist/gcmEncryptExtIV256.h @@ -1,3 +1,9 @@ +// SPDX-License-Identifier: BSD-2-Clause +/* + * Copyright (c) 2023, Linaro Limited + * All rights reserved. + */ + { TEE_ALG_AES_GCM, TEE_MODE_ENCRYPT, TEE_TYPE_AES, /* Key */ (const uint8_t []){0xb5, 0x2c, 0x50, 0x5a, 0x37, 0xd7, 0x8e, 0xda, 0x5d, 0xd3, 0x4f, 0x20, 0xc2, 0x25, 0x40, 0xea, 0x1b, 0x58, 0x96, 0x3c, 0xf8, 0xe5, 0xbf, 0x8f, 0xfa, 0x85, 0xf9, 0xf2, 0x49, 0x25, 0x05, 0xb4, }, 32.0, /* IV */ (const uint8_t []){0x51, 0x6c, 0x33, 0x92, 0x9d, 0xf5, 0xa3, 0x28, 0x4f, 0xf4, 0x63, 0xd7, }, 12.0,