diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-11-20 15:23:05 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-11-23 19:23:43 -0800 |
commit | 46c62e3b6e499e5039f72a288d6884e26d6db231 (patch) | |
tree | 963bd3afb99b18f6490d5e9a58586cbd97c494a4 /board/cr50/dcrypto/dcrypto.h | |
parent | 824d9e7a86a218dd0c4a0fc68930a0c283e6e82b (diff) | |
download | chrome-ec-46c62e3b6e499e5039f72a288d6884e26d6db231.tar.gz |
cr50: dcrypto code belongs with the chip, not with the board
Dcrypto support is a hardware property, it belongs with the chip
sub-tree, not with the board.
This patch just moves the files and modifies the makefiles to pick up
the files at the right spot.
BRANCH=none
BUG=chrome-os-partner:43025
TEST=the image still builds, the devices still boots, the
test/tmp_test/tpmtest.py still succeeds.
Change-Id: Ie321ac738c11a9f403a7943524c56ec4366db297
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/313655
Reviewed-by: Nagendra Modadugu <ngm@google.com>
Diffstat (limited to 'board/cr50/dcrypto/dcrypto.h')
-rw-r--r-- | board/cr50/dcrypto/dcrypto.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/board/cr50/dcrypto/dcrypto.h b/board/cr50/dcrypto/dcrypto.h deleted file mode 100644 index 1dab319392..0000000000 --- a/board/cr50/dcrypto/dcrypto.h +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright 2015 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. - */ - -/* - * Crypto wrapper library for CR50. - */ -#ifndef EC_BOARD_CR50_DCRYPTO_DCRYPTO_H_ -#define EC_BOARD_CR50_DCRYPTO_DCRYPTO_H_ - -/* TODO(vbendeb) don't forget to disable this for prod builds. */ -#define CRYPTO_TEST_SETUP - -#include <inttypes.h> - -enum cipher_mode { - CIPHER_MODE_ECB = 0, - CIPHER_MODE_CTR = 1, - CIPHER_MODE_CBC = 2, - CIPHER_MODE_GCM = 3 -}; - -enum encrypt_mode { - DECRYPT_MODE = 0, - ENCRYPT_MODE = 1 -}; - -int DCRYPTO_aes_init(const uint8_t *key, uint32_t key_len, const uint8_t *iv, - enum cipher_mode c_mode, enum encrypt_mode e_mode); -int DCRYPTO_aes_block(const uint8_t *in, uint8_t *out); - -void DCRYPTO_aes_write_iv(const uint8_t *iv); -void DCRYPTO_aes_read_iv(uint8_t *iv); - -#endif /* ! EC_BOARD_CR50_DCRYPTO_DCRYPTO_H_ */ |