C# Class RocksmithToolkitLib.PsarcLoader.RijndaelEncryptor

显示文件 Open project: rscustom/rocksmith-custom-song-toolkit Class Usage Examples

Public Properties

Property Type Description
PsarcKey byte[]

Public Methods

Method Description
DecryptFile ( Stream input, Stream output, byte key ) : void
DecryptPSARC ( Stream input, Stream output, long len ) : void
EncryptFile ( Stream input, Stream output, byte key ) : void
EncryptPSARC ( Stream input, Stream output, long len ) : void
Unzip ( Stream str, Stream outStream, bool rewind = true ) : void

Unpacks zipped data.

Unzip ( byte array, Stream outStream, bool rewind = true ) : void
Zip ( Stream str, Stream outStream, long plainLen, bool rewind = true ) : long
Zip ( byte array, Stream outStream, long plainLen, bool rewind = true ) : long

Private Methods

Method Description
Crypto ( Stream input, Stream output, ICryptoTransform transform, long len ) : void
InitRijndael ( Rijndael rij, byte key, CipherMode cipher ) : void

Method Details

DecryptFile() public static method

public static DecryptFile ( Stream input, Stream output, byte key ) : void
input Stream
output Stream
key byte
return void

DecryptPSARC() public static method

public static DecryptPSARC ( Stream input, Stream output, long len ) : void
input Stream
output Stream
len long
return void

EncryptFile() public static method

public static EncryptFile ( Stream input, Stream output, byte key ) : void
input Stream
output Stream
key byte
return void

EncryptPSARC() public static method

public static EncryptPSARC ( Stream input, Stream output, long len ) : void
input Stream
output Stream
len long
return void

Unzip() public static method

Unpacks zipped data.
public static Unzip ( Stream str, Stream outStream, bool rewind = true ) : void
str Stream In Stream.
outStream Stream Out stream.
rewind bool Manual control for stream seek position.
return void

Unzip() public static method

public static Unzip ( byte array, Stream outStream, bool rewind = true ) : void
array byte
outStream Stream
rewind bool
return void

Zip() public static method

public static Zip ( Stream str, Stream outStream, long plainLen, bool rewind = true ) : long
str Stream
outStream Stream
plainLen long
rewind bool
return long

Zip() public static method

public static Zip ( byte array, Stream outStream, long plainLen, bool rewind = true ) : long
array byte
outStream Stream
plainLen long
rewind bool
return long

Property Details

PsarcKey public_oe static_oe property

public static byte[] PsarcKey
return byte[]