/** * CFB8Mode * * An ActionScript 3 implementation of the CFB-8 confidentiality mode * Copyright (c) 2007 Henri Torgemane * * See LICENSE.txt for full license information. */ package com.hurlant.crypto.symmetric { import com.hurlant.crypto.tests.TestCase; import flash.utils.ByteArray; /** * * Note: The constructor accepts an optional padding argument, but ignores it otherwise. */ public class CFB8Mode extends IVMode implements IMode { public function CFB8Mode(key:ISymmetricKey, padding:IPad = null) { super(key, null); } public function encrypt(src:ByteArray):void { var vector:ByteArray = getIV4e(); var tmp:ByteArray = new ByteArray; for (var i:uint=0;i