Skip to content

Commit

Permalink
fixup! regression: 4005: Export CFG_GCM_NIST_VECTORS flag
Browse files Browse the repository at this point in the history
Add copyright

Signed-off-by: Olivier Masse <[email protected]>
  • Loading branch information
omasse-linaro committed Nov 20, 2023
1 parent 15f2b8c commit 119ca7c
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmDecrypt128.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmDecrypt192.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmDecrypt256.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmEncryptExtIV128.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmEncryptExtIV192.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/nist/gcmEncryptExtIV256.h
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 119ca7c

Please sign in to comment.