Skip to content

Commit e7ada04

Browse files
updated documentation for set_key
1 parent e798a3c commit e7ada04

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
@@ -53,7 +53,7 @@ pub trait AES<'a, K: AESKeySize> {
5353
fn set_client(&'a self, client: &'a dyn Client<'a>);
5454

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

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

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

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

0 commit comments

Comments
 (0)