-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[hsmtool] Add a binding to Entrust's
acorn
library
Entrust's `acorn` library is their experimental PQ cryptography module for their nShield HSMs. This binding gives us access to their APIs from Rust so we can write `hsmtool` commands to work with SPHINCS+ algorithms. Signed-off-by: Chris Frantz <[email protected]> (cherry picked from commit 05e7c44)
- Loading branch information
Showing
6 changed files
with
625 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright lowRISC contributors (OpenTitan project). | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load("@rules_rust//rust:defs.bzl", "rust_library", "rust_test") | ||
load("@rules_rust//bindgen:bindgen.bzl", "rust_bindgen_library") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_library( | ||
name = "acorn", | ||
srcs = [ | ||
"acorn.rs", | ||
"lib.rs", | ||
], | ||
crate_root = "lib.rs", | ||
deps = [ | ||
"//sw/host/hsmtool/acorn/vendor:acorn_bindgen", | ||
"@crate_index//:anyhow", | ||
"@crate_index//:bitflags", | ||
"@crate_index//:libloading", | ||
"@crate_index//:thiserror", | ||
], | ||
) |
Oops, something went wrong.