Skip to content

Commit e9b7221

Browse files
updated documentation for set_key
1 parent cc03b37 commit e9b7221

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/src/hil/symmetric_encryption.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait AES<'a, K: AESKeySize> {
5959
fn set_client(&'a self, client: &'a dyn Client<'a>);
6060

6161
/// Set the encryption key.
62-
/// Returns `INVAL` if length is not `AES128_KEY_SIZE`
62+
/// Returns `INVAL` if length is not `AESKeySize::LENGTH`
6363
fn set_key(&self, key: &[u8]) -> Result<(), ErrorCode>;
6464

6565
/// Set the IV (or initial counter).
@@ -187,7 +187,7 @@ pub trait AESGCM<'a, K: AESKeySize> {
187187
fn set_client(&'a self, client: &'a dyn GCMClient);
188188

189189
/// Set the key to be used for GCM encryption
190-
/// Returns `INVAL` if length is not `AES128_KEY_SIZE`
190+
/// Returns `INVAL` if length is not `AESKeySize::LENGTH`
191191
fn set_key(&self, key: &[u8]) -> Result<(), ErrorCode>;
192192

193193
/// Set the IV to be used for GCM encryption. The IV should be less

0 commit comments

Comments
 (0)