C# Class Org.BouncyCastle.Crypto.Tls.TlsMac

A generic TLS MAC implementation, acting as an HMAC based on some underlying Digest.
Datei anzeigen Open project: mapo80/iTextSharp-Monotouch Class Usage Examples

Protected Properties

Property Type Description
mac Org.BouncyCastle.Crypto.Macs.HMac
secret byte[]
seqNo long

Public Methods

Method Description
CalculateMac ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte message, int offset, int len ) : byte[]
GetMacSecret ( ) : byte[]
IncSequenceNumber ( ) : void
TlsMac ( IDigest digest, byte key_block, int offset, int len ) : System

Method Details

CalculateMac() public method

public CalculateMac ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte message, int offset, int len ) : byte[]
type Org.BouncyCastle.Crypto.Tls.ContentType
message byte
offset int
len int
return byte[]

GetMacSecret() public method

public GetMacSecret ( ) : byte[]
return byte[]

IncSequenceNumber() public method

public IncSequenceNumber ( ) : void
return void

TlsMac() public method

public TlsMac ( IDigest digest, byte key_block, int offset, int len ) : System
digest IDigest
key_block byte
offset int
len int
return System

Property Details

mac protected_oe property

protected HMac,Org.BouncyCastle.Crypto.Macs mac
return Org.BouncyCastle.Crypto.Macs.HMac

secret protected_oe property

protected byte[] secret
return byte[]

seqNo protected_oe property

protected long seqNo
return long