C# 클래스 Org.BouncyCastle.Crypto.Tls.TlsBlockCipher

A generic TLS 1.0 block cipher. This can be used for AES or 3DES for example.
상속: TlsCipher
파일 보기 프로젝트 열기: mapo80/iTextSharp-Monotouch

보호된 프로퍼티들

프로퍼티 타입 설명
context TlsClientContext
decryptCipher IBlockCipher
encryptCipher IBlockCipher
rMac TlsMac
wMac TlsMac

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
LowestBitSet ( uint x ) : int

메소드 상세

ChooseExtraPadBlocks() 보호된 메소드

protected ChooseExtraPadBlocks ( SecureRandom r, int max ) : int
r Org.BouncyCastle.Security.SecureRandom
max int
리턴 int

CreateKeyParameter() 보호된 메소드

protected CreateKeyParameter ( byte buf, int &off, int len ) : KeyParameter
buf byte
off int
len int
리턴 Org.BouncyCastle.Crypto.Parameters.KeyParameter

CreateParametersWithIV() 보호된 메소드

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

CreateTlsMac() 보호된 메소드

protected CreateTlsMac ( IDigest digest, byte buf, int &off ) : TlsMac
digest IDigest
buf byte
off int
리턴 TlsMac

DecodeCiphertext() 공개 메소드

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
리턴 byte[]

EncodePlaintext() 공개 메소드

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
리턴 byte[]

TlsBlockCipher() 공개 메소드

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
리턴 System

프로퍼티 상세

context 보호되어 있는 프로퍼티

protected TlsClientContext context
리턴 TlsClientContext

decryptCipher 보호되어 있는 프로퍼티

protected IBlockCipher decryptCipher
리턴 IBlockCipher

encryptCipher 보호되어 있는 프로퍼티

protected IBlockCipher encryptCipher
리턴 IBlockCipher

rMac 보호되어 있는 프로퍼티

protected TlsMac,Org.BouncyCastle.Crypto.Tls rMac
리턴 TlsMac

wMac 보호되어 있는 프로퍼티

protected TlsMac,Org.BouncyCastle.Crypto.Tls wMac
리턴 TlsMac