/flash-src/third-party/com/hurlant/crypto/tls/ISecurityParameters.as

http://github.com/gimite/web-socket-js · ActionScript · 29 lines · 19 code · 1 blank · 9 comment · 0 complexity · c4e2d436dea6058f8eb66dd03ecb1181 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. */
  10. package com.hurlant.crypto.tls {
  11. import flash.utils.ByteArray;
  12. public interface ISecurityParameters {
  13. function get version() : uint;
  14. function reset():void;
  15. function getBulkCipher():uint;
  16. function getCipherType():uint;
  17. function getMacAlgorithm():uint;
  18. function setCipher(cipher:uint):void;
  19. function setCompression(algo:uint):void;
  20. function setPreMasterSecret(secret:ByteArray):void;
  21. function setClientRandom(secret:ByteArray):void;
  22. function setServerRandom(secret:ByteArray):void;
  23. function get useRSA():Boolean;
  24. function computeVerifyData(side:uint, handshakeMessages:ByteArray):ByteArray;
  25. function computeCertificateVerify( side:uint, handshakeRecords:ByteArray):ByteArray;
  26. function getConnectionStates():Object;
  27. }
  28. }