aboutsummaryrefslogtreecommitdiff
path: root/test/common_plat/validation/api/crypto/test_vectors_len.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/common_plat/validation/api/crypto/test_vectors_len.h')
-rw-r--r--test/common_plat/validation/api/crypto/test_vectors_len.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/common_plat/validation/api/crypto/test_vectors_len.h b/test/common_plat/validation/api/crypto/test_vectors_len.h
new file mode 100644
index 000000000..4fbb5cd70
--- /dev/null
+++ b/test/common_plat/validation/api/crypto/test_vectors_len.h
@@ -0,0 +1,38 @@
+/* Copyright (c) 2014, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+#ifndef TEST_VECTORS_LEN_
+#define TEST_VECTORS_LEN_
+
+/* TDES-CBC */
+#define TDES_CBC_KEY_LEN 24
+#define TDES_CBC_IV_LEN 8
+#define TDES_CBC_MAX_DATA_LEN 16
+
+/* AES128-CBC */
+#define AES128_CBC_KEY_LEN 16
+#define AES128_CBC_IV_LEN 16
+#define AES128_CBC_MAX_DATA_LEN 64
+
+/* AES128-CBC */
+#define AES128_GCM_KEY_LEN 16
+#define AES128_GCM_IV_LEN 12
+#define AES128_GCM_MAX_DATA_LEN 106
+#define AES128_GCM_DIGEST_LEN 16
+#define AES128_GCM_CHECK_LEN 16
+
+/* HMAC-MD5 */
+#define HMAC_MD5_KEY_LEN 16
+#define HMAC_MD5_MAX_DATA_LEN 128
+#define HMAC_MD5_DIGEST_LEN 16
+#define HMAC_MD5_96_CHECK_LEN 12
+
+/* HMAC-SHA256 */
+#define HMAC_SHA256_KEY_LEN 32
+#define HMAC_SHA256_MAX_DATA_LEN 128
+#define HMAC_SHA256_DIGEST_LEN 32
+#define HMAC_SHA256_128_CHECK_LEN 16
+
+#endif