-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libcaliptra: add SHA accelerator API
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
- Loading branch information
Showing
6 changed files
with
288 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Licensed under the Apache-2.0 license | ||
#pragma once | ||
|
||
#include <caliptra_top_reg.h> | ||
|
||
// Mirrored from the top reg file | ||
|
||
#define CALIPTRA_SHA_ACCELERATOR_BASE_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_BASE_ADDR | ||
#define CALIPTRA_SHA_ACCELERATOR_LOCK_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_LOCK | ||
#define CALIPTRA_SHA_ACCELERATOR_USER_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_USER | ||
#define CALIPTRA_SHA_ACCELERATOR_MODE_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_MODE | ||
#define CALIPTRA_SHA_ACCELERATOR_START_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_START_ADDRESS | ||
#define CALIPTRA_SHA_ACCELERATOR_DLEN_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_DLEN | ||
#define CALIPTRA_SHA_ACCELERATOR_DATAIN_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_DATAIN | ||
#define CALIPTRA_SHA_ACCELERATOR_EXECUTE_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_EXECUTE | ||
#define CALIPTRA_SHA_ACCELERATOR_STATUS_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_STATUS | ||
#define CALIPTRA_SHA_ACCELERATOR_DIGEST_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_DIGEST_0 // TODO: This should be an array | ||
#define CALIPTRA_SHA_ACCELERATOR_CONTROL_ADDR CALIPTRA_TOP_REG_SHA512_ACC_CSR_CONTROL |