diff --git a/Cargo.toml b/Cargo.toml index b32603c..c832a7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ aes = "0.9" ctr = "0.10" hmac = "0.12" md-5 = "0.11" -rand = "0.8" +rand = "0.10" anyhow = "1.0" base64 = "0.22" reqwest = { version = "0.13", features = ["json"] } diff --git a/src/crypto/wiiu.rs b/src/crypto/wiiu.rs index 242ca6e..78899ed 100644 --- a/src/crypto/wiiu.rs +++ b/src/crypto/wiiu.rs @@ -3,7 +3,7 @@ use ctr::cipher::{KeyIvInit, StreamCipher}; use hmac::{Hmac, Mac}; use sha2::Sha256; use md5::{Md5, Digest}; -use rand::RngCore; +use rand::Rng; use anyhow::{Result, bail}; type HmacSha256 = Hmac; @@ -84,7 +84,7 @@ pub fn encrypt_wiiu(content: &[u8], aes_key: &[u8], hmac_key: &[u8]) -> Result