4
* This class encapsulates all the security parameters that get negotiated
5
* during the TLS handshake. It also holds all the key derivation methods.
6
* Copyright (c) 2007 Henri Torgemane
8
* See LICENSE.txt for full license information.
10
package com.hurlant.crypto.tls {
11
import flash.utils.ByteArray;
13
public interface ISecurityParameters {
14
function get version() : uint;
15
function reset():void;
16
function getBulkCipher():uint;
17
function getCipherType():uint;
18
function getMacAlgorithm():uint;
19
function setCipher(cipher:uint):void;
20
function setCompression(algo:uint):void;
21
function setPreMasterSecret(secret:ByteArray):void;
22
function setClientRandom(secret:ByteArray):void;
23
function setServerRandom(secret:ByteArray):void;
24
function get useRSA():Boolean;
25
function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
26
function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
27
function getConnectionStates():Object;
b'\\ No newline at end of file'