summaryrefslogtreecommitdiff
path: root/board/host
diff options
context:
space:
mode:
authorNamyoon Woo <namyoon@chromium.org>2020-02-28 09:44:46 -0800
committerCommit Bot <commit-bot@chromium.org>2020-03-09 21:48:18 +0000
commit5ccb5c7cc9c448b66c6f8e0abbb2dd785da0efb7 (patch)
tree84f6021a658d5b8b11c7612dafac86ede442b27a /board/host
parent97c73303cf9d5f6c8b6e871ddebd01a8e4ce4206 (diff)
downloadchrome-ec-5ccb5c7cc9c448b66c6f8e0abbb2dd785da0efb7.tar.gz
remove cr50 related files
BUG=b:149350081 BRANCH=none TEST=build all, and emerged ec related packages for host and octopus. $ make buildall -j $ cros_workon --host list chromeos-base/chromeos-cr50-dev chromeos-base/chromeos-ec chromeos-base/chromeos-ec-headers chromeos-base/ec-devutils chromeos-base/ec-utils chromeos-base/ec-utils-test dev-util/hdctools $ sudo emerge chromeos-cr50-dev -j $ sudo emerge chromeos-ec -j $ sudo emerge chromeos-ec-headers -j $ sudo emerge ec-devutils -j $ sudo emerge ec-utils -j $ sudo emerge ec-utils-test -j $ sudo emerge hdctools -j $ cros_workon-octopus list chromeos-base/chromeos-ec chromeos-base/chromeos-ec-headers chromeos-base/ec-devutils chromeos-base/ec-utils chromeos-base/ec-utils-test dev-util/hdctools $ sudo emerge-octopus chromeos-ec -j $ sudo emerge-octopus chromeos-ec-headers -j $ sudo emerge-octopus ec-devutils -j $ sudo emerge-octopus ec-utils -j $ sudo emerge-octopus ec-utils-test -j $ sudo emerge-octopus hdctools -j Signed-off-by: Namyoon Woo <namyoon@chromium.org> Change-Id: If751b26b0635b0021c077338e96eaa8e8dcf17a5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2080631 Reviewed-by: Edward Hill <ecgh@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r--board/host/dcrypto.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/board/host/dcrypto.h b/board/host/dcrypto.h
deleted file mode 100644
index 31f04e51aa..0000000000
--- a/board/host/dcrypto.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/* Copyright 2018 The Chromium OS Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* Provides the minimal declarations needed by pinweaver to build on
- * CHIP_HOST. While it might be preferable to simply use the original dcrypto.h,
- * That would require incorporating additional headers / dependencies such as
- * cryptoc.
- */
-
-#ifndef __CROS_EC_DCRYPTO_HOST_H
-#define __CROS_EC_DCRYPTO_HOST_H
-#include <stdint.h>
-#include <string.h>
-
-/* Allow tests to return a faked result for the purpose of testing. If
- * this is not set, a combination of cryptoc and openssl are used for the
- * dcrypto implementation.
- */
-#ifndef CONFIG_DCRYPTO_MOCK
-
-/* If not using the mock struct definitions, use the ones from Cr50. */
-#include "chip/g/dcrypto/dcrypto.h"
-
-#else /* defined(CONFIG_DCRYPTO_MOCK) */
-
-#include <sha256.h>
-
-#define HASH_CTX sha256_ctx
-
-/* Used as a replacement for declarations in cryptoc that are used by Cr50, but
- * add unnecessary complexity to the test code.
- */
-struct dcrypto_mock_ctx_t {
- struct HASH_CTX hash;
-};
-#define LITE_HMAC_CTX struct dcrypto_mock_ctx_t
-#define LITE_SHA256_CTX struct HASH_CTX
-
-void HASH_update(struct HASH_CTX *ctx, const void *data, size_t len);
-uint8_t *HASH_final(struct HASH_CTX *ctx);
-
-#define AES256_BLOCK_CIPHER_KEY_SIZE 32
-#define SHA256_DIGEST_SIZE 32
-
-enum dcrypto_appid {
- RESERVED = 0,
- NVMEM = 1,
- U2F_ATTEST = 2,
- U2F_ORIGIN = 3,
- U2F_WRAP = 4,
- PERSO_AUTH = 5,
- PINWEAVER = 6,
- /* This enum value should not exceed 7. */
-};
-
-void DCRYPTO_SHA256_init(LITE_SHA256_CTX *ctx, uint32_t sw_required);
-
-void DCRYPTO_HMAC_SHA256_init(LITE_HMAC_CTX *ctx, const void *key,
- unsigned int len);
-const uint8_t *DCRYPTO_HMAC_final(LITE_HMAC_CTX *ctx);
-
-int DCRYPTO_aes_ctr(uint8_t *out, const uint8_t *key, uint32_t key_bits,
- const uint8_t *iv, const uint8_t *in, size_t in_len);
-
-struct APPKEY_CTX {};
-
-int DCRYPTO_appkey_init(enum dcrypto_appid appid, struct APPKEY_CTX *ctx);
-
-void DCRYPTO_appkey_finish(struct APPKEY_CTX *ctx);
-
-int DCRYPTO_appkey_derive(enum dcrypto_appid appid, const uint32_t input[8],
- uint32_t output[8]);
-
-#endif /* CONFIG_DCRYPTO_MOCK */
-
-#endif /* __CROS_EC_HOST_DCRYPTO_H */