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

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs · ActionScript · 24 lines · 14 code · 1 blank · 9 comment · 0 complexity · 71b35528bac9ffee79c5cef6e44be0ac MD5 · raw file

  1. /**
  2. * KeyExchanges
  3. *
  4. * An enumeration of key exchange methods defined by TLS
  5. * ( right now, only RSA is actually implemented )
  6. * Copyright (c) 2007 Henri Torgemane
  7. *
  8. * See LICENSE.txt for full license information.
  9. */
  10. package com.hurlant.crypto.tls {
  11. public class KeyExchanges {
  12. public static const NULL:uint = 0;
  13. public static const RSA:uint = 1;
  14. public static const DH_DSS:uint = 2;
  15. public static const DH_RSA:uint = 3;
  16. public static const DHE_DSS:uint = 4;
  17. public static const DHE_RSA:uint = 5;
  18. public static const DH_anon:uint = 6;
  19. public static function useRSA(p:uint):Boolean {
  20. return (p==RSA);
  21. }
  22. }
  23. }