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

A generic TLS 1.0 block cipher. This can be used for AES or 3DES for example.
Inheritance: TlsCipher
Afficher le fichier Open project: mapo80/iTextSharp-Monotouch

Protected Properties

Свойство Type Description
context TlsClientContext
decryptCipher IBlockCipher
encryptCipher IBlockCipher
rMac TlsMac
wMac TlsMac

Méthodes publiques

Méthode Description
DecodeCiphertext ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte ciphertext, int offset, int len ) : byte[]
EncodePlaintext ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte plaintext, int offset, int len ) : byte[]
TlsBlockCipher ( TlsClientContext context, IBlockCipher encryptCipher, IBlockCipher decryptCipher, IDigest writeDigest, IDigest readDigest, int cipherKeySize ) : System

Méthodes protégées

Méthode Description
ChooseExtraPadBlocks ( SecureRandom r, int max ) : int
CreateKeyParameter ( byte buf, int &off, int len ) : KeyParameter
CreateParametersWithIV ( KeyParameter key, byte buf, int &off, int len ) : ParametersWithIV
CreateTlsMac ( IDigest digest, byte buf, int &off ) : TlsMac

Private Methods

Méthode Description
LowestBitSet ( uint x ) : int

Method Details

ChooseExtraPadBlocks() protected méthode

protected ChooseExtraPadBlocks ( SecureRandom r, int max ) : int
r Org.BouncyCastle.Security.SecureRandom
max int
Résultat int

CreateKeyParameter() protected méthode

protected CreateKeyParameter ( byte buf, int &off, int len ) : KeyParameter
buf byte
off int
len int
Résultat Org.BouncyCastle.Crypto.Parameters.KeyParameter

CreateParametersWithIV() protected méthode

protected CreateParametersWithIV ( KeyParameter key, byte buf, int &off, int len ) : ParametersWithIV
key Org.BouncyCastle.Crypto.Parameters.KeyParameter
buf byte
off int
len int
Résultat Org.BouncyCastle.Crypto.Parameters.ParametersWithIV

CreateTlsMac() protected méthode

protected CreateTlsMac ( IDigest digest, byte buf, int &off ) : TlsMac
digest IDigest
buf byte
off int
Résultat TlsMac

DecodeCiphertext() public méthode

public DecodeCiphertext ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte ciphertext, int offset, int len ) : byte[]
type Org.BouncyCastle.Crypto.Tls.ContentType
ciphertext byte
offset int
len int
Résultat byte[]

EncodePlaintext() public méthode

public EncodePlaintext ( Org.BouncyCastle.Crypto.Tls.ContentType type, byte plaintext, int offset, int len ) : byte[]
type Org.BouncyCastle.Crypto.Tls.ContentType
plaintext byte
offset int
len int
Résultat byte[]

TlsBlockCipher() public méthode

public TlsBlockCipher ( TlsClientContext context, IBlockCipher encryptCipher, IBlockCipher decryptCipher, IDigest writeDigest, IDigest readDigest, int cipherKeySize ) : System
context TlsClientContext
encryptCipher IBlockCipher
decryptCipher IBlockCipher
writeDigest IDigest
readDigest IDigest
cipherKeySize int
Résultat System

Property Details

context protected_oe property

protected TlsClientContext context
Résultat TlsClientContext

decryptCipher protected_oe property

protected IBlockCipher decryptCipher
Résultat IBlockCipher

encryptCipher protected_oe property

protected IBlockCipher encryptCipher
Résultat IBlockCipher

rMac protected_oe property

protected TlsMac,Org.BouncyCastle.Crypto.Tls rMac
Résultat TlsMac

wMac protected_oe property

protected TlsMac,Org.BouncyCastle.Crypto.Tls wMac
Résultat TlsMac