From b60df56157ee1fd0bd4938799bac05a62fda91a1 Mon Sep 17 00:00:00 2001 From: lookshe Date: Sat, 14 Mar 2015 20:45:20 +0100 Subject: initial commit from working version --- .../com/hurlant/crypto/symmetric/ISymmetricKey.as | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/ISymmetricKey.as (limited to 'signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/ISymmetricKey.as') diff --git a/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/ISymmetricKey.as b/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/ISymmetricKey.as new file mode 100644 index 0000000..1699db5 --- /dev/null +++ b/signaling-server/node_modules/socket.io/node_modules/socket.io-client/lib/vendor/web-socket-js/flash-src/com/hurlant/crypto/symmetric/ISymmetricKey.as @@ -0,0 +1,35 @@ +/** + * ISymmetricKey + * + * An interface for symmetric encryption keys to implement. + * Copyright (c) 2007 Henri Torgemane + * + * See LICENSE.txt for full license information. + */ +package com.hurlant.crypto.symmetric +{ + import flash.utils.ByteArray; + + public interface ISymmetricKey + { + /** + * Returns the block size used by this particular encryption algorithm + */ + function getBlockSize():uint; + /** + * Encrypt one block of data in "block", starting at "index", of length "getBlockSize()" + */ + function encrypt(block:ByteArray, index:uint=0):void; + /** + * Decrypt one block of data in "block", starting at "index", of length "getBlockSize()" + */ + function decrypt(block:ByteArray, index:uint=0):void; + /** + * Attempts to destroy sensitive information from memory, such as encryption keys. + * Note: This is not guaranteed to work given the Flash sandbox model. + */ + function dispose():void; + + function toString():String; + } +} \ No newline at end of file -- cgit v1.2.3