亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cbc.java

?? jpeg2000編解碼
?? JAVA
字號:
// $Id: CBC.java,v 1.1.1.1 2002/08/27 12:32:12 grosbois Exp $//// $Log: CBC.java,v $// Revision 1.1.1.1  2002/08/27 12:32:12  grosbois// Add cryptix 3.2//// Revision 1.7  2000/08/17 11:40:57  edwin// java.* -> xjava.*//// Revision 1.6  1998/04/02 01:42:01  raif// *** empty log message ***//// Revision 1.5.1  1998/04/02  raif// + added Gertjan van Oosten <gertjan@West.NL> bug correction//   in the engineUpdate/DECRYPT method/case.// + removed dead code.// + cosmetics.//// Revision 1.5  1997/12/09 05:14:36  raif// *** empty log message ***//// Revision 1.4  1997/11/20 19:39:31  hopwood// + cryptix.util.* name changes.//// Revision 1.3.1  1997/11/16  David Hopwood// + Removed commented-out code (since we will be using FeedbackMode//   permanently now).// + Fixed imports.// + FIXME: engineUpdate incorrectly assumes only one block of input.//// Revision 1.3  1997/11/07 05:53:25  raif// *** empty log message ***//// Revision 1.2  1997/11/05 08:01:56  raif// + Renamed temp to xorBlock.// + Call cipher.update instead of cipher.crypt.// + Fixed the decrypt bug.// + Added all the fixes that date back from Aug/97.//// Revision 1.1.1.1  1997/11/03 22:36:56  hopwood// + Imported to CVS (tagged as 'start').//// $Endlog$/* * Copyright (c) 1997, 1998 Systemics Ltd on behalf of * the Cryptix Development Team.  All rights reserved. */package cryptix.provider.mode;import cryptix.CryptixException;import xjava.security.Cipher;import java.security.Key;import java.security.KeyException;import java.security.InvalidParameterException;import xjava.security.IllegalBlockSizeException;/** * Implements a block cipher in CBC mode. The block size is the same as * that of the underlying cipher. * <p> * <b>References:</b> * <ol> *   <li> <a href="mailto:schneier@counterpane.com">Bruce Schneier</a>, *        "Section 9.3 Cipher Block Chaining Mode," and "Section 9.11 Choosing a Cipher Mode," *        <cite>Applied Cryptography, 2nd edition</cite>, *        John Wiley &amp; Sons, 1996.<p> *   <li> <samp>sci.crypt</samp> FAQ, "Part 5: Product Ciphers," *        <a href="ftp://ftp.rtfm.mit.edu/pub/usenet/news.answers/cryptography-faq/part05"> *        ftp://ftp.rtfm.mit.edu/pub/usenet/news.answers/cryptography-faq/part05</a>.<p> *   <li> National Bureau of Standards (now NIST), *        "DES Modes of Operation," *        <cite>NBS FIPS PUB 81</cite>, *        U.S. Department of Commerce, December 1980.</ol><p> * * <b>Copyright</b> &copy; 1997, 1998 * <a href="http://www.systemics.com/">Systemics Ltd</a> on behalf of the * <a href="http://www.systemics.com/docs/cryptix/">Cryptix Development Team</a>. * <br>All rights reserved.<p> * * <b>$Revision: 1.1.1.1 $</b> * @author David Hopwood * @author Raif S. Naffah * @since  Cryptix 2.2.2 */public class CBCextends FeedbackMode{// Variables//...........................................................................    /**     * Temporary buffer to hold input bytes when there's not enough of     * them to cipher.     */    protected byte[] xorBlock;// Constructors//...........................................................................    /**     * Constructs a CBC cipher, assuming that the IV will be provided     * via <code>setInitializationVector</code>.     * <p>     * The IV value should be random, but unlike     * <a href=cryptix.provider.mode.CFB.html>CFB</a> mode, it is not     * absolutely required to be unique.     */    public CBC() { super(false, false, "Cryptix"); }    /**     * Constructs a CBC cipher, assuming that the IV will be provided     * via <code>setInitializationVector</code>.     * See the previous constructor for more details.     *     * @param  cipher   the cipher object to use in CBC mode.     * @exception NullPointerException if cipher == null     * @exception IllegalBlockSizeException if cipher.getPlaintextBlockSize() !=     *                  cipher.getCiphertextBlockSize()     */    public CBC (Cipher cipher) {        this();        engineSetCipher(cipher);    }    /**     * Constructs a CBC cipher, using an initialization vector     * provided in the constructor.     * <p>     * For CBC mode the IV value should be random, but unlike     * <a href=cryptix.security.CFB.html>CFB</a> mode, it is not     * absolutely required to be unique.     *     * @param  cipher   the block cipher to use     * @param  iv       the initial value for the shift register (IV)     * @exception NullPointerException if cipher == null     */    public CBC (Cipher cipher, byte[] iv) {        this(cipher);        setInitializationVector(iv);    }// FeedbackMode and Mode methods//...........................................................................    protected void engineSetCipher (Cipher cipher) {        super.engineSetCipher(cipher);        xorBlock = new byte[length];    }// Cipher methods//...........................................................................    protected int engineBlockSize() { return length; }    protected void engineInitEncrypt (Key newkey) throws KeyException {        cipher.initEncrypt(newkey);        if (ivStart != null)            System.arraycopy(ivStart, 0, ivBlock, 0, length);    }    protected void engineInitDecrypt (Key newkey) throws KeyException {        cipher.initDecrypt(newkey);        if (ivStart != null)            System.arraycopy(ivStart, 0, ivBlock, 0, length);    }    /**     * <b>SPI</b>: This is the main engine method for updating data.     * It may be called with any size of input.     * <p>     * <code>in</code> and <code>out</code> may be the same array, and the     * input and output regions may overlap.     *     * @param in        the input data.     * @param inOffset  the offset into <code>in</code> specifying where     *                  the data starts.     * @param inLen     the length of the subarray.     * @param out       the output array.     * @param outOffset the offset indicating where to start writing into     *                  the <code>out</code> array.     * @return the number of bytes written.     */    protected int engineUpdate (byte[] in, int inOffset, int inLen,                                byte[] out, int outOffset) {        if (ivBlock == null)            throw new InvalidParameterException("CBC: IV is not set");        switch (getState()) {            case ENCRYPT:                for (int i = 0; i < inLen; )                    ivBlock[i++] ^= in[inOffset++];                cipher.update(ivBlock, 0, inLen, ivBlock, 0);                System.arraycopy(ivBlock, 0, out, outOffset, inLen);                break;            case DECRYPT:                byte[] ivTmp = new byte[inLen];                System.arraycopy(in, inOffset, ivTmp, 0, inLen);                cipher.update(in, inOffset, inLen, xorBlock, 0);                for (int i = 0; i < inLen; i++)                    out[i+outOffset] = (byte) (xorBlock[i] ^ ivBlock[i]);                System.arraycopy(ivTmp, 0, ivBlock, 0, inLen);                ivTmp = null;                break;            default:                throw new CryptixException("CBC: Cipher not initialized");        }        return inLen;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合狠狠综合| 日本国产一区二区| 天堂在线一区二区| 午夜电影一区二区三区| 亚洲欧洲成人av每日更新| 国产欧美日韩亚州综合| 国产精品色噜噜| 国产亚洲精品超碰| 亚洲国产成人在线| 亚洲免费在线电影| 亚洲成av人**亚洲成av**| 婷婷久久综合九色综合绿巨人 | 在线精品视频免费播放| 99精品视频中文字幕| www.亚洲免费av| 色婷婷av久久久久久久| 在线观看免费亚洲| 欧美日韩在线播放三区| 欧美一二三四区在线| 欧美精品一区二区三区蜜臀| 精品久久久久久久久久久久包黑料| 日韩免费性生活视频播放| 久久免费电影网| 亚洲欧美综合在线精品| 亚洲国产成人高清精品| 蜜桃久久av一区| 国产高清精品网站| 99视频一区二区| 91.xcao| 精品国产电影一区二区| 国产精品私人影院| 亚洲va国产va欧美va观看| 国产一区啦啦啦在线观看| aaa国产一区| 在线成人av影院| 国产欧美一区二区三区网站| 亚洲一卡二卡三卡四卡| 国产乱码精品1区2区3区| 色天天综合色天天久久| 日韩久久久精品| 亚洲免费高清视频在线| 精品一二线国产| 精品污污网站免费看| 欧美激情自拍偷拍| 蜜桃91丨九色丨蝌蚪91桃色| 91免费小视频| 久久久另类综合| 日韩成人一级片| 欧美日韩在线播| 亚洲国产一二三| 成人午夜电影小说| 欧美精品tushy高清| 久久久不卡网国产精品二区| 午夜精品视频一区| 97精品电影院| 国产精品欧美极品| 国产一区二区在线电影| 综合久久久久综合| 国产精品久久久久四虎| 精一区二区三区| 欧美理论电影在线| 亚洲精品欧美在线| 99久久久国产精品免费蜜臀| 精品国产一区二区三区四区四| 一区二区三区资源| av爱爱亚洲一区| 国产精品女主播av| 国产黄色精品网站| 久久久不卡网国产精品二区| 久久国产精品露脸对白| 69av一区二区三区| 日日摸夜夜添夜夜添精品视频| 色老头久久综合| 亚洲永久免费av| 色综合咪咪久久| 亚洲美女少妇撒尿| 欧美亚男人的天堂| 午夜a成v人精品| 911精品产国品一二三产区| 天天av天天翘天天综合网 | 国产亚洲污的网站| 韩国成人福利片在线播放| 欧美videos大乳护士334| 精品制服美女丁香| 2024国产精品| 国产精品91xxx| 国产精品人妖ts系列视频| 国产99久久久国产精品 | 成人h精品动漫一区二区三区| 精品国产乱码久久久久久图片| 毛片av一区二区| 欧美精品一区二区精品网| 国产成人午夜高潮毛片| 中文字幕不卡的av| 欧美在线视频不卡| 日韩高清一级片| 久久天堂av综合合色蜜桃网 | 一区二区三区欧美视频| 欧美在线不卡一区| 日产欧产美韩系列久久99| 欧美成人福利视频| eeuss鲁一区二区三区| 一区二区三区中文在线| 51午夜精品国产| 国产成人无遮挡在线视频| 国产精品久久久久久久第一福利| 在线精品视频一区二区| 久久成人麻豆午夜电影| 亚洲人成小说网站色在线| 欧美高清dvd| 国产福利精品一区二区| 亚洲一二三区在线观看| 欧美成人一区二区三区片免费| 成人av网址在线观看| 视频在线观看国产精品| 国产精品麻豆欧美日韩ww| 欧美人狂配大交3d怪物一区| 国产成人综合网站| 日韩影视精彩在线| 中文字幕一区视频| 欧美videos中文字幕| 色一情一乱一乱一91av| 激情综合亚洲精品| 性做久久久久久免费观看欧美| 中文字幕av在线一区二区三区| 69堂亚洲精品首页| 色琪琪一区二区三区亚洲区| 紧缚奴在线一区二区三区| 一区二区三区美女视频| 欧美国产日韩亚洲一区| 欧美一级片免费看| 欧美亚洲一区二区三区四区| 岛国精品在线播放| 91美女在线视频| 国产一区二区在线观看免费 | 91精品国产综合久久精品麻豆| 大胆亚洲人体视频| 国产在线不卡一卡二卡三卡四卡| 亚洲va在线va天堂| 亚洲一区二区三区自拍| 亚洲欧洲日产国码二区| 国产亚洲va综合人人澡精品 | 欧美国产日韩一二三区| 欧美岛国在线观看| 制服.丝袜.亚洲.中文.综合| 欧美亚洲综合久久| 欧洲人成人精品| 欧美亚洲高清一区| 欧美调教femdomvk| 91黄色激情网站| 91国产成人在线| 在线观看日韩一区| 欧美日韩综合不卡| 4438成人网| 4438x亚洲最大成人网| 91精品国产综合久久精品| 777亚洲妇女| 91精品国产一区二区三区| 欧美一区二区在线免费播放| 91精品国产色综合久久| 日韩视频一区二区三区在线播放| 91精品啪在线观看国产60岁| 欧美一区二区三区成人| 欧美电影免费观看高清完整版| 日韩欧美一级二级三级久久久| 日韩精品自拍偷拍| 精品国产乱码久久久久久浪潮| 2017欧美狠狠色| 国产色婷婷亚洲99精品小说| 日韩激情中文字幕| 久久国产精品99久久久久久老狼| 美女一区二区视频| 国产成人在线视频网站| www.日韩av| 欧美日韩精品专区| 26uuu国产电影一区二区| 国产精品久久久久四虎| 亚洲综合色自拍一区| 秋霞午夜鲁丝一区二区老狼| 国产真实乱对白精彩久久| 成人18视频在线播放| 欧美日韩精品三区| 日本一区免费视频| 亚洲国产成人av网| 国产麻豆精品视频| 欧美在线观看一区| 久久久不卡网国产精品二区| 亚洲乱码国产乱码精品精的特点| 天使萌一区二区三区免费观看| 国内外成人在线| 色成年激情久久综合| 欧美一区二区三区免费视频| 亚洲国产精品av| 日本不卡视频一二三区| av成人老司机| 欧美成人三级电影在线| 亚洲综合区在线| 国产69精品久久99不卡| 日韩一级片网站| 一区二区三区精密机械公司|