C# Class Keyczar.Unofficial.AesAeadKey

Uses Authenticated Encryption with Associated Data Mode with AES. Specficially supports GCM mode.
Inheritance: Key, ICrypterKey
Exibir arquivo Open project: jbtule/keyczar-dotnet

Public Properties

Property Type Description
GcmMode string

Private Properties

Property Type Description
GetKeyParameters Org.BouncyCastle.Crypto.Parameters.KeyParameter
GetMode Func

Public Methods

Method Description
AesAeadKey ( ) : System

Initializes a new instance of the AesAeadKey class.

GetAuthSigningStream ( ) : HashingStream

Gets the authentication signing stream.

GetAuthVerifyingStream ( ) : VerifyingStream

Gets the authentication verifying stream.

GetDecryptingStream ( Stream output ) : FinishingStream

Gets the decrypting stream.

GetEncryptingStream ( Stream output ) : FinishingStream

Gets the encrypting stream.

GetFallbackKeyHash ( ) : IEnumerable

Gets the fallback key hashes. old/buggy hashes from old/other keyczar implementations

GetKeyHash ( ) : byte[]

Gets the key hash.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GenerateKey ( int size ) : void

Generates the key.

Private Methods

Method Description
GetKeyParameters ( ) : KeyParameter
GetMode ( ) : Func

Method Details

AesAeadKey() public method

Initializes a new instance of the AesAeadKey class.
public AesAeadKey ( ) : System
return System

Dispose() protected method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GenerateKey() protected method

Generates the key.
protected GenerateKey ( int size ) : void
size int The size.
return void

GetAuthSigningStream() public method

Gets the authentication signing stream.
public GetAuthSigningStream ( ) : HashingStream
return Keyczar.Crypto.Streams.HashingStream

GetAuthVerifyingStream() public method

Gets the authentication verifying stream.
public GetAuthVerifyingStream ( ) : VerifyingStream
return VerifyingStream

GetDecryptingStream() public method

Gets the decrypting stream.
public GetDecryptingStream ( Stream output ) : FinishingStream
output Stream The output.
return Keyczar.Crypto.Streams.FinishingStream

GetEncryptingStream() public method

Gets the encrypting stream.
public GetEncryptingStream ( Stream output ) : FinishingStream
output Stream The output.
return Keyczar.Crypto.Streams.FinishingStream

GetFallbackKeyHash() public method

Gets the fallback key hashes. old/buggy hashes from old/other keyczar implementations
public GetFallbackKeyHash ( ) : IEnumerable
return IEnumerable

GetKeyHash() public method

Gets the key hash.
public GetKeyHash ( ) : byte[]
return byte[]

Property Details

GcmMode public_oe static_oe property

The GCM mode
public static string GcmMode
return string