PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/tls/ISecurityParameters.as

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
ActionScript | 29 lines | 19 code | 1 blank | 9 comment | 0 complexity | b946325cb137abb7b39e9520a1c2c508 MD5 | raw file
 1/**
 2 * ISecurityParameters
 3 * 
 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
 7 * 
 8 * See LICENSE.txt for full license information.
 9 */
10package com.hurlant.crypto.tls {
11	import flash.utils.ByteArray;
12	
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;
28	}
29}