Skip to content

Commit

Permalink
WIP: Fix function as used in crypto module
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Sep 29, 2023
1 parent ebd014b commit ad79fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/edhoc-crypto-psa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ mod hacspec {
s2[64..64 + message.len()].copy_from_slice(message);

// (4) apply H to the stream generated in step (3)
let ih = sha256_digest(&BytesMaxBuffer::from_public_slice(&s2), 64 + message.len());
let ih = Crypto::sha256_digest(&BytesMaxBuffer::from_public_slice(&s2), 64 + message.len());

// (5) XOR (bitwise exclusive-OR) the B byte string computed in
// step (1) with opad
Expand All @@ -298,7 +298,7 @@ mod hacspec {

// (7) apply H to the stream generated in step (6) and output
// the result
let oh = sha256_digest(
let oh = Crypto::sha256_digest(
&BytesMaxBuffer::from_public_slice(&s5),
3 * SHA256_DIGEST_LEN,
);
Expand Down

0 comments on commit ad79fbe

Please sign in to comment.