Skip to content

Commit 30facf2

Browse files
Switched to using constant already defined for AES-128 block sizes
Signed-off-by: Jacob Prud'homme <2160185+jacobprudhomme@users.noreply.github.com>
1 parent 6ce1680 commit 30facf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cryptoki/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ fn sha256_digest_multipart_with_key() -> TestResult {
16821682
let key_template = vec![
16831683
Attribute::Token(true),
16841684
Attribute::Private(false),
1685-
Attribute::ValueLen((256 / 8).into()),
1685+
Attribute::ValueLen((AES128_BLOCK_SIZE as u64).into()),
16861686
// Key must be non-sensitive and extractable to get its bytes and digest them directly, for comparison
16871687
Attribute::Sensitive(false),
16881688
Attribute::Extractable(true),

0 commit comments

Comments
 (0)