Skip to content

Commit

Permalink
Fixing build error missed due to hash transcript option
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Prinz <[email protected]>
taprinz authored and jyao1 committed Mar 14, 2024
1 parent ab6f6e4 commit 8ebd487
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions spdmlib/src/crypto/crypto_null/hash_impl.rs
Original file line number Diff line number Diff line change
@@ -24,7 +24,8 @@ fn hash_all(base_hash_algo: SpdmBaseHashAlgo, data: &[u8]) -> Option<SpdmDigestS

#[cfg(feature = "hashed-transcript-data")]
mod hash_ext {
use crate::error::{SpdmResult, SPDM_STATUS_CRYPTO_ERROR};
use crate::error::SpdmResult;
use crate::protocol::{SpdmBaseHashAlgo, SpdmDigestStruct};

pub fn hash_ctx_update(handle: usize, data: &[u8]) -> SpdmResult {
unimplemented!()
@@ -41,8 +42,4 @@ mod hash_ext {
pub fn hash_ctx_init(base_hash_algo: SpdmBaseHashAlgo) -> Option<usize> {
unimplemented!()
}

fn insert_to_table(value: Box<HashCtxConcrete>) -> usize {
unimplemented!()
}
}

0 comments on commit 8ebd487

Please sign in to comment.