pub struct CryptoHelper;Expand description
The crypto functions used in Steam’s protocols.
Implementations§
Source§impl CryptoHelper
impl CryptoHelper
Sourcepub fn symmetric_decrypt(
input: &[u8],
key: &[u8],
) -> Result<Vec<u8>, SteamError>
pub fn symmetric_decrypt( input: &[u8], key: &[u8], ) -> Result<Vec<u8>, SteamError>
Decrypts AES-256-CBC (PKCS7) data whose IV is prepended, ECB-encrypted.
The first 16 bytes of input are the IV, encrypted with AES-256-ECB
(no padding); the rest is decrypted with AES-256-CBC using that IV. The
key has to be 32 bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CryptoHelper
impl RefUnwindSafe for CryptoHelper
impl Send for CryptoHelper
impl Sync for CryptoHelper
impl Unpin for CryptoHelper
impl UnsafeUnpin for CryptoHelper
impl UnwindSafe for CryptoHelper
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more