aboutsummaryrefslogtreecommitdiffstats
path: root/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/tls/ISecurityParameters.as
blob: 3c18aa33b7adf2a27daad8736aea9b78c211f430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * ISecurityParameters
 * 
 * This class encapsulates all the security parameters that get negotiated
 * during the TLS handshake. It also holds all the key derivation methods.
 * Copyright (c) 2007 Henri Torgemane
 * 
 * See LICENSE.txt for full license information.
 */
package com.hurlant.crypto.tls {
	import flash.utils.ByteArray;
	
	public interface ISecurityParameters {
		function get version() : uint;
		function reset():void;
		function getBulkCipher():uint;
		function getCipherType():uint;
		function getMacAlgorithm():uint;
		function setCipher(cipher:uint):void;
		function setCompression(algo:uint):void;
		function setPreMasterSecret(secret:ByteArray):void;
		function setClientRandom(secret:ByteArray):void;
		function setServerRandom(secret:ByteArray):void;
		function get useRSA():Boolean;
		function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
		function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
		function getConnectionStates():Object;
	}
}