Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / socket.io-client / lib / vendor / web-socket-js / flash-src / com / hurlant / crypto / symmetric / ISymmetricKey.as
1 /**\r
2  * ISymmetricKey\r
3  * \r
4  * An interface for symmetric encryption keys to implement.\r
5  * Copyright (c) 2007 Henri Torgemane\r
6  * \r
7  * See LICENSE.txt for full license information.\r
8  */\r
9 package com.hurlant.crypto.symmetric\r
10 {\r
11         import flash.utils.ByteArray;\r
12         \r
13         public interface ISymmetricKey\r
14         {\r
15                 /**\r
16                  * Returns the block size used by this particular encryption algorithm\r
17                  */\r
18                 function getBlockSize():uint;\r
19                 /**\r
20                  * Encrypt one block of data in "block", starting at "index", of length "getBlockSize()"\r
21                  */\r
22                 function encrypt(block:ByteArray, index:uint=0):void;\r
23                 /**\r
24                  * Decrypt one block of data in "block", starting at "index", of length "getBlockSize()"\r
25                  */\r
26                 function decrypt(block:ByteArray, index:uint=0):void;\r
27                 /**\r
28                  * Attempts to destroy sensitive information from memory, such as encryption keys.\r
29                  * Note: This is not guaranteed to work given the Flash sandbox model.\r
30                  */\r
31                 function dispose():void;\r
32                 \r
33                 function toString():String;\r
34         }\r
35 }