added unwrap lol

This commit is contained in:
uh wot 2021-09-03 04:24:07 +02:00
parent 9be0b7d316
commit fd54890190
Signed by: uhwot
GPG key ID: CB2454984587B781
3 changed files with 4 additions and 4 deletions

View file

@ -31,7 +31,7 @@ impl Cipher {
}
pub fn decrypt_chunk(&self, chunk: &mut [u8]) {
self.cipher.clone().decrypt(chunk);
self.cipher.clone().decrypt(chunk).unwrap();
}
}
@ -62,4 +62,4 @@ pub fn legacy_stream_url(md5_origin: &str, format: &str, id: &str, media_version
let ciphertext = cipher.encrypt_vec(&metadata_hash);
format!("https://cdns-proxy-{}.dzcdn.net/mobile/1/{}", md5_origin.chars().next().unwrap(), hex::encode(ciphertext))
}
}