Skip to content

Commit 73656da

Browse files
committed
ocicrypt-rs: add import for hmac updation
The new version hmac needs to import KeyInit to make the lint happy. Signed-off-by: Xynnn007 <xynnn@linux.alibaba.com>
1 parent 9195e68 commit 73656da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ocicrypt-rs/src/blockcipher/aes_ctr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use std::io::Read;
66
use anyhow::{anyhow, Result};
77
use ctr::cipher::generic_array::GenericArray;
88
use ctr::cipher::{KeyIvInit, StreamCipher};
9-
use hmac::{Hmac, Mac};
9+
use hmac::{Hmac, KeyInit, Mac};
1010
use sha2::Sha256;
1111

1212
use crate::blockcipher::{EncryptionFinalizer, LayerBlockCipher, LayerBlockCipherOptions};

0 commit comments

Comments
 (0)