C# Class FlatRedBall.ContentExtensions.Encryption.AesEncryptionManager

Mostrar archivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method Description
AesEncryptionManager ( ) : System
DecryptFromBytes ( byte encryptedBytes, int &decryptedByteCount ) : byte[]
DecryptFromStream ( Stream stream, int encryptedByteCount, int &decryptedByteCount ) : byte[]
DecryptFromStreamToStream ( Stream fromStream, Stream toStream, Action updateAction = null ) : void
EncryptToBytes ( byte unencryptedBytes ) : byte[]
GetDecryptStream ( Stream encryptedStream ) : CryptoStream
GetPadding ( byte decryptedBytes ) : int

Private Methods

Method Description
AssignByteArrayFromString ( string value, byte byteArray ) : void
CopyFromStreamToStream ( Stream fromStream, Stream toStream, int size, Action updateAction ) : void
IsValidKeyOrVector ( string value ) : bool

Method Details

AesEncryptionManager() public method

public AesEncryptionManager ( ) : System
return System

DecryptFromBytes() public method

public DecryptFromBytes ( byte encryptedBytes, int &decryptedByteCount ) : byte[]
encryptedBytes byte
decryptedByteCount int
return byte[]

DecryptFromStream() public method

public DecryptFromStream ( Stream stream, int encryptedByteCount, int &decryptedByteCount ) : byte[]
stream Stream
encryptedByteCount int
decryptedByteCount int
return byte[]

DecryptFromStreamToStream() public method

public DecryptFromStreamToStream ( Stream fromStream, Stream toStream, Action updateAction = null ) : void
fromStream Stream
toStream Stream
updateAction Action
return void

EncryptToBytes() public method

public EncryptToBytes ( byte unencryptedBytes ) : byte[]
unencryptedBytes byte
return byte[]

GetDecryptStream() public method

public GetDecryptStream ( Stream encryptedStream ) : CryptoStream
encryptedStream Stream
return System.Security.Cryptography.CryptoStream

GetPadding() public method

public GetPadding ( byte decryptedBytes ) : int
decryptedBytes byte
return int