C# Class EllipticCurveCipherSuitePlugin.KeyExchangeAlgorithmECDHE

Inheritance: AaltoTLS.PluginInterface.KeyExchangeAlgorithm
Afficher le fichier Open project: juhovh/AaltoTLS

Méthodes publiques

Méthode Description
GetClientKeys ( ProtocolVersion version, ProtocolVersion clientVersion, CertificatePublicKey publicKey ) : byte[]
GetMasterSecret ( PseudoRandomFunction prf, byte seed ) : byte[]
GetServerKeys ( ProtocolVersion version ) : byte[]
ProcessClientKeys ( ProtocolVersion version, ProtocolVersion clientVersion, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey, byte data ) : void
ProcessServerKeys ( ProtocolVersion version, byte data ) : byte[]
SupportsProtocolVersion ( ProtocolVersion version ) : bool

Private Methods

Méthode Description
Blob2Point ( byte blob ) : byte[]
CompareArrays ( byte b1, byte b2 ) : bool
GetSSLv3MasterSecret ( byte seed ) : byte[]
GetTLSv1MasterSecret ( byte seed ) : byte[]
KeySizeToNamedCurve ( int keySize ) : UInt16
NamedCurveToKeySize ( UInt16 namedCurve ) : int
Point2Blob ( byte point ) : byte[]

Method Details

GetClientKeys() public méthode

public GetClientKeys ( ProtocolVersion version, ProtocolVersion clientVersion, CertificatePublicKey publicKey ) : byte[]
version AaltoTLS.PluginInterface.ProtocolVersion
clientVersion AaltoTLS.PluginInterface.ProtocolVersion
publicKey CertificatePublicKey
Résultat byte[]

GetMasterSecret() public méthode

public GetMasterSecret ( PseudoRandomFunction prf, byte seed ) : byte[]
prf AaltoTLS.PluginInterface.PseudoRandomFunction
seed byte
Résultat byte[]

GetServerKeys() public méthode

public GetServerKeys ( ProtocolVersion version ) : byte[]
version AaltoTLS.PluginInterface.ProtocolVersion
Résultat byte[]

ProcessClientKeys() public méthode

public ProcessClientKeys ( ProtocolVersion version, ProtocolVersion clientVersion, AaltoTLS.PluginInterface.CertificatePrivateKey privateKey, byte data ) : void
version AaltoTLS.PluginInterface.ProtocolVersion
clientVersion AaltoTLS.PluginInterface.ProtocolVersion
privateKey AaltoTLS.PluginInterface.CertificatePrivateKey
data byte
Résultat void

ProcessServerKeys() public méthode

public ProcessServerKeys ( ProtocolVersion version, byte data ) : byte[]
version AaltoTLS.PluginInterface.ProtocolVersion
data byte
Résultat byte[]

SupportsProtocolVersion() public méthode

public SupportsProtocolVersion ( ProtocolVersion version ) : bool
version AaltoTLS.PluginInterface.ProtocolVersion
Résultat bool