diff options
Diffstat (limited to 'board/cr50/dcrypto/internal.h')
-rw-r--r-- | board/cr50/dcrypto/internal.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/board/cr50/dcrypto/internal.h b/board/cr50/dcrypto/internal.h new file mode 100644 index 0000000000..11f5c9a35d --- /dev/null +++ b/board/cr50/dcrypto/internal.h @@ -0,0 +1,20 @@ +/* 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_INTERNAL_H_ +#define EC_BOARD_CR50_DCRYPTO_INTERNAL_H_ + +#include "registers.h" +#include <inttypes.h> + +#define CTRL_CTR_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) +#define CTRL_ENABLE 1 +#define CTRL_ENCRYPT 1 +#define CTRL_NO_SOFT_RESET 0 + +#endif /* ! EC_BOARD_CR50_DCRYPTO_INTERNAL_H_ */ |