Skip to content

Commit d12285c

Browse files
Rust wrapper: mlkem: update ss buffer length requirement comment
1 parent 4235fa5 commit d12285c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • wrapper/rust/wolfssl-wolfcrypt/src

wrapper/rust/wolfssl-wolfcrypt/src/mlkem.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ impl MlKem {
432432
/// public key and an RNG.
433433
///
434434
/// The `ct` buffer must be exactly `cipher_text_size()` bytes.
435-
/// The `ss` buffer must be exactly `shared_secret_size()` bytes.
435+
/// The `ss` buffer must be exactly `SHARED_SECRET_SIZE` bytes.
436436
///
437437
/// # Parameters
438438
///
@@ -566,7 +566,7 @@ impl MlKem {
566566
/// Decapsulate: recover the shared secret from a cipher text using this
567567
/// private key.
568568
///
569-
/// The `ss` buffer must be exactly `shared_secret_size()` bytes.
569+
/// The `ss` buffer must be exactly `SHARED_SECRET_SIZE` bytes.
570570
/// The `ct` length is validated against the expected cipher text size for
571571
/// the key type by the C library.
572572
///

0 commit comments

Comments
 (0)