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

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

?? serpent_standard.java

?? Serpent算法及vb實現 畢業設計是做的 希望對大家有幫助
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
        byte[] result = new byte[] {            (byte)(a), (byte)(a >>> 8), (byte)(a >>> 16), (byte)(a >>> 24),            (byte)(b), (byte)(b >>> 8), (byte)(b >>> 16), (byte)(b >>> 24),            (byte)(c), (byte)(c >>> 8), (byte)(c >>> 16), (byte)(c >>> 24),            (byte)(d), (byte)(d >>> 8), (byte)(d >>> 16), (byte)(d >>> 24)        };if (DEBUG && debuglevel > 6) {System.out.println("PT="+toString(result));System.out.println();}if (DEBUG) trace(OUT, "blockDecrypt()");        return result;    }// own methods//...........................................................................    /**     * @return The bit value at position <code>i</code> in a 32-bit entity,     *      where the least significant bit (the rightmost one) is at     *      position 0.     */    private static int getBit (int x, int i) { return (x >>> i) & 0x01; }        /**     * @return The bit value at position <code>i</code> in an array of 32-bit     *      entities, where the least significant 32-bit entity is at index     *      position 0 and the least significant bit (the rightmost one) in     *      any 32-bit entity is at position 0.     */    private static int getBit (int[] x, int i) {        return (x[i / 32] >>> (i % 32)) & 0x01;    }    /**     * Set the bit at position <code>i</code> in an array of 32-bit entities     * to a given value <code>v</code>, where the least significant 32-bit     * entity is at index position 0 and the least significant bit (the     * rightmost one) in any 32-bit entity is at position 0.     */    private static void setBit (int[] x, int i, int v) {        if ((v & 0x01) == 1)            x[i / 32] |= 1 << (i % 32); // set it        else            x[i / 32] &= ~(1 << (i % 32)); // clear it    }    /**     * @return The nibble --a 4-bit entity-- in <code>x</code> given its     *      position <code>i</code>, where the least significant nibble     *      (the rightmost one) is at position 0.     */    private static int getNibble (int x, int i) { return (x >>> (4 * i)) & 0x0F; }    /**     * @return A 128-bit entity which is the result of applying the Initial     *      Permutation (IP) to a 128-bit entity <code>x</code>.     */    private static int[] IP (int[] x) { return permutate(IPtable, x); }    /**     * @return A 128-bit entity which is the result of applying the inverse of     *      the Initial Permutation to a 128-bit entity <code>x</code>.     */    private static int[] IPinverse (int[] x) { return permutate(FPtable, x); }    /**     * @return A 128-bit entity which is the result of applying the Final     *      Permutation (FP) to a 128-bit entity <code>x</code>.     */    private static int[] FP (int[] x) { return permutate(FPtable, x); }    /**     * @return A 128-bit entity which is the result of applying the inverse of     *      the Final Permutation to a 128-bit entity <code>x</code>.     */    private static int[] FPinverse (int[] x) { return permutate(IPtable, x); }        /**     * @return A 128-bit entity which is the result of applying a permutation     *      coded in a given table <code>T</code> to a 128-bit entity     *      <code>x</code>.     */    private static int[] permutate (byte[] T, int[] x) {        int[] result = new int[4];        for (int i = 0;  i < 128; i++)            setBit(result, i, getBit(x, T[i] & 0x7F));        return result;    }    /**     * @return A 128-bit entity as the result of XORing, bit-by-bit, two given     *      128-bit entities <code>x</code> and <code>y</code>.     */    private static int[] xor128 (int[] x, int[] y) {        return new int[] {x[0] ^ y[0], x[1] ^ y[1], x[2] ^ y[2], x[3] ^ y[3]};    }    /**     * @return The nibble --a 4-bit entity-- obtained by applying a given     *      S-box to a 32-bit entity <code>x</code>.     */    private static int S (int box, int x) { return Sbox[box][x] & 0x0F; }    /**     * @return The nibble --a 4-bit entity-- obtained byapplying the inverse     *      of a given S-box to a 32-bit entity <code>x</code>.     */    private static int Sinverse (int box, int x) { return SboxInverse[box][x] & 0x0F; }    /**     * @return A 128-bit entity being the result of applying, in parallel,     *      32 copies of a given S-box to a 128-bit entity <code>x</code>.     */    private static int[] Shat (int box, int[] x) {        int[] result = new int[4];        for (int i = 0; i < 4; i++)            for (int nibble = 0; nibble < 8; nibble++)                result[i] |= S(box, getNibble(x[i], nibble)) << (nibble * 4);        return result;    }    /**     * @return A 128-bit entity being the result of applying, in parallel,     *      32 copies of the inverse of a given S-box to a 128-bit entity     *      <code>x</code>.     */    private static int[] ShatInverse (int box, int[] x) {        int[] result = new int[4];        for (int i = 0; i < 4; i++)            for (int nibble = 0; nibble < 8; nibble++)                result[i] |= Sinverse(box, getNibble(x[i], nibble)) << (nibble * 4);        return result;    }    /**     * @return A 128-bit entity being the result of applying the linear     *      transformation to a 128-bit entity <code>x</code>.     */    private static int[] LT (int[] x) { return transform(LTtable, x); }    /**     * @return A 128-bit entity being the result of applying the inverse of     *      the linear transformation to a 128-bit entity <code>x</code>.     */    private static int[] LTinverse (int[] x) {        return transform(LTtableInverse, x);    }    /**     * @return A 128-bit entity being the result of applying a transformation     *      coded in a table <code>T</code> to a 128-bit entity <code>x</code>.     *      Each row, of say index <code>i</code>, in <code>T</code> indicates     *      the bits from <code>x</code> to be XORed together in order to     *      produce the resulting bit at position <code>i</code>.     */    private static int[] transform (byte[][] T, int[] x) {        int j, b;        int[] result = new int[4];        for (int i = 0; i < 128; i++) {            b = 0;            j = 0;            while (T[i][j] != xFF) {                b ^= getBit(x, T[i][j] & 0x7F);                j++;            }            setBit(result, i, b);        }        return result;    }    /**     * @return the 128-bit entity as the result of applying the round function     *      R at round <code>i</code> to the 128-bit entity <code>Bhati</code>,     *      using the appropriate subkeys from <code>Khat</code>.     */    private static int[] R (int i, int[] Bhati, int[][] Khat) {if (DEBUG && debuglevel > 6) debug("Bhat["+i+"]: "+toReversedString(Bhati));        int[] xored = xor128(Bhati, Khat[i]);if (DEBUG && debuglevel > 6) debug("xored["+i+"]: "+toReversedString(xored));        int[] Shati = Shat(i, xored);if (DEBUG && debuglevel > 6) debug("Shat["+i+"]: "+toReversedString(Shati));        int[] BhatiPlus1;        if ((0 <= i) && (i <= ROUNDS - 2))            BhatiPlus1 = LT(Shati);        else if (i == ROUNDS - 1)            BhatiPlus1 = xor128(Shati, Khat[ROUNDS]);        else            throw new RuntimeException(                "Round "+i+" is out of 0.."+(ROUNDS-1)+" range");        return BhatiPlus1;    }    /**     * @return the 128-bit entity as the result of applying the inverse of     *      the round function R at round <code>i</code> to the 128-bit     *      entity <code>Bhati</code>, using the appropriate subkeys from     *      <code>Khat</code>.     */    private static int[] Rinverse (int i, int[] BhatiPlus1, int[][] Khat) {if (DEBUG && debuglevel > 6) debug("Bhat["+i+"+1]: "+toReversedString(BhatiPlus1));        int[] Shati = new int[4];        if ((0 <= i) && (i <= ROUNDS - 2))            Shati = LTinverse(BhatiPlus1);        else if (i == ROUNDS - 1)            Shati = xor128(BhatiPlus1, Khat[ROUNDS]);        else            throw new RuntimeException(                "Round "+i+" is out of 0.."+(ROUNDS-1)+" range");if (DEBUG && debuglevel > 6) debug("Shat["+i+"]: "+toReversedString(Shati));        int[] xored = ShatInverse(i, Shati);if (DEBUG && debuglevel > 6) debug("xored["+i+"]: "+toReversedString(xored));        int[] Bhati = xor128(xored, Khat[i]);        return Bhati;    }    private static int[] Rinverse (int i, int[] BhatiPlus1, int[][] Khat, int in, int val) {        int[] Shati = new int[4];        if ((0 <= i) && (i <= ROUNDS - 2))            Shati = LTinverse(BhatiPlus1);        else if (i == ROUNDS - 1)            Shati = xor128(BhatiPlus1, Khat[ROUNDS]);        else            throw new RuntimeException(                "Round "+i+" is out of 0.."+(ROUNDS-1)+" range");        int[] xored = ShatInverse(i, Shati);	if(i==in) {	  xored[0] = val | (val<<4);	  xored[0] |= (xored[0]<<8);	  xored[0] |= (xored[0]<<16);	  xored[1] = xored[2] = xored[3] = xored[0];	}        int[] Bhati = xor128(xored, Khat[i]);        return Bhati;    }// utility static methods (from cryptix.util.core.Hex class)//...........................................................................    /**     * Returns a string of 8 hexadecimal digits (most significant     * digit first) corresponding to the integer <i>n</i>, which is     * treated as unsigned.     */    public static String intToString (int n) {        char[] buf = new char[8];        for (int i = 7; i >= 0; i--) {            buf[i] = HEX_DIGITS[n & 0x0F];            n >>>= 4;        }        return new String(buf);    }    /**     * Returns a string of hexadecimal digits from a byte array. Each     * byte is converted to 2 hex symbols.     */    private static String toString (byte[] ba) {        int length = ba.length;        char[] buf = new char[length * 2];        for (int i = 0, j = 0, k; i < length; ) {            k = ba[i++];            buf[j++] = HEX_DIGITS[(k >>> 4) & 0x0F];            buf[j++] = HEX_DIGITS[ k        & 0x0F];        }        return new String(buf);    }    /**     * Returns a string of hexadecimal digits from an integer array. Each     * int is converted to 4 hex symbols.     */    private static String toString (int[] ia) {        int length = ia.length;        char[] buf = new char[length * 8];        for (int i = 0, j = 0, k; i < length; i++) {            k = ia[i];            buf[j++] = HEX_DIGITS[(k >>> 28) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 24) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 20) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 16) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 12) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>>  8) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>>  4) & 0x0F];            buf[j++] = HEX_DIGITS[ k         & 0x0F];        }        return new String(buf);    }// other utility static methods//...........................................................................    /**     * Returns an hexadecimal number (respresented as a string of hexadecimal      * digits from a byte array). Each byte is converted to 2 hex symbols.     * The order is however, as of printing a number from a little-endian     * internal representation (i.e., reverse order).     */    public static String toReversedString (byte[] ba) {        int length = ba.length;        char[] buf = new char[length * 2];        for (int i = length-1, j = 0, k; i >=0; ) {            k = ba[i--];            buf[j++] = HEX_DIGITS[(k >>> 4) & 0x0F];            buf[j++] = HEX_DIGITS[ k        & 0x0F];        }        return new String(buf);    }    /**     * Returns a string of hexadecimal digits from an integer array. Each     * int is converted to 4 hex symbols.     */    private static String toReversedString (int[] ia) {        int length = ia.length;        char[] buf = new char[length * 8];        for (int i = length-1, j = 0, k; i >= 0; i--) {            k = ia[i];            buf[j++] = HEX_DIGITS[(k >>> 28) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 24) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 20) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 16) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>> 12) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>>  8) & 0x0F];            buf[j++] = HEX_DIGITS[(k >>>  4) & 0x0F];            buf[j++] = HEX_DIGITS[ k         & 0x0F];        }        return new String(buf);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区影院 | 日本亚洲一区二区| 国产精品日日摸夜夜摸av| 2024国产精品视频| 久久先锋影音av| 久久久一区二区| 国产欧美日韩卡一| 国产精品视频看| 亚洲欧美一区二区三区孕妇| 亚洲天堂中文字幕| 亚洲h精品动漫在线观看| 五月综合激情婷婷六月色窝| 亚洲va国产天堂va久久en| 视频一区欧美精品| 狠狠色丁香久久婷婷综| 国产成人精品免费一区二区| 国产成人午夜片在线观看高清观看| 国产精品一区二区视频| 91捆绑美女网站| 欧美丰满美乳xxx高潮www| 日韩久久久久久| 国产精品情趣视频| 亚洲一区二区成人在线观看| 日本欧美肥老太交大片| 国产成人综合精品三级| 一本到三区不卡视频| 在线不卡一区二区| 国产日本欧美一区二区| 香蕉久久夜色精品国产使用方法| 蜜桃精品在线观看| 成人app网站| 91.xcao| 国产午夜精品久久| 午夜在线电影亚洲一区| 国产精品亚洲午夜一区二区三区| 色婷婷久久综合| 精品国产一区二区三区四区四 | 亚洲特黄一级片| 日本欧美一区二区三区| 99视频精品免费视频| 欧美久久久影院| 国产精品成人免费精品自在线观看 | 成人av高清在线| 欧美日韩成人综合| 中文字幕av资源一区| 日韩福利电影在线| 色欧美乱欧美15图片| 精品国产青草久久久久福利| 亚洲国产精品久久不卡毛片 | 久久久777精品电影网影网| 亚洲国产精品久久人人爱| av中文字幕一区| 国产日韩精品一区二区浪潮av| 日韩成人一级大片| 欧美绝品在线观看成人午夜影视| 国产精品人成在线观看免费| 蜜桃久久久久久久| 777亚洲妇女| 亚洲制服丝袜一区| 日本乱人伦一区| 国产精品盗摄一区二区三区| 国产麻豆一精品一av一免费| 欧美一二三区在线| 日韩不卡免费视频| 精品视频999| 亚洲一区二区三区四区五区中文| 91丨porny丨中文| 国产精品女上位| 夫妻av一区二区| 国产午夜精品久久久久久免费视| 精品午夜久久福利影院 | 成人小视频免费观看| 欧美成人三级电影在线| 精油按摩中文字幕久久| 精品国产乱码久久久久久牛牛| 蜜臂av日日欢夜夜爽一区| 欧美精品少妇一区二区三区| 丝袜诱惑亚洲看片| 日韩欧美在线影院| 久久超碰97中文字幕| 久久婷婷色综合| 成人综合在线网站| 国产精品网站一区| 色哟哟在线观看一区二区三区| 亚洲人成小说网站色在线| 一本久道久久综合中文字幕| 亚洲综合丝袜美腿| 欧美裸体一区二区三区| 捆绑调教一区二区三区| 久久久.com| 色综合色狠狠天天综合色| 亚洲电影一区二区| 日韩一卡二卡三卡国产欧美| 免费看黄色91| 久久精品无码一区二区三区| 91色在线porny| 肉色丝袜一区二区| 国产欧美视频一区二区| 91极品美女在线| 日韩电影在线免费看| 精品国产青草久久久久福利| 99精品一区二区三区| 天天av天天翘天天综合网| 精品国产一区二区三区久久影院| 不卡的av中国片| 图片区日韩欧美亚洲| 亚洲国产高清不卡| 欧美喷潮久久久xxxxx| 国产精选一区二区三区| 亚洲一区二区三区四区在线观看 | 日韩专区欧美专区| 欧美经典三级视频一区二区三区| 欧美午夜一区二区| 久久精品国产第一区二区三区| 国产精品久久久久天堂| 欧美日韩国产综合久久 | 色婷婷亚洲婷婷| 国产一区二区三区在线观看精品| 亚洲精品高清视频在线观看| 久久久美女毛片| 欧美日韩高清影院| av电影在线观看一区| 精彩视频一区二区三区 | 2020国产精品| 欧美日韩一区小说| 99精品视频在线观看免费| 久久精品av麻豆的观看方式| 亚洲福利视频一区| 亚洲日本一区二区三区| 中文一区二区完整视频在线观看| 欧美片在线播放| 欧美午夜电影一区| 成人黄色国产精品网站大全在线免费观看 | 日韩网站在线看片你懂的| 色综合久久久网| 成人免费三级在线| 成人永久免费视频| 国产精品一区二区男女羞羞无遮挡| 日韩—二三区免费观看av| 偷偷要91色婷婷| 亚洲电影在线播放| 自拍偷自拍亚洲精品播放| 国产日韩精品一区二区浪潮av| 日韩欧美不卡在线观看视频| 日韩一区二区三区免费看| 制服.丝袜.亚洲.另类.中文| 欧美日韩视频第一区| 欧美夫妻性生活| 欧美一区二区三区系列电影| 欧美美女视频在线观看| 欧美乱熟臀69xxxxxx| 制服.丝袜.亚洲.中文.综合| 欧美一区国产二区| 884aa四虎影成人精品一区| 欧美精品九九99久久| 日韩一级黄色片| 日韩精品中文字幕在线一区| 欧美精品一区二区三区四区 | 亚洲女同一区二区| 亚洲乱码国产乱码精品精98午夜| 最新成人av在线| 夜夜精品视频一区二区| 亚洲国产成人porn| 男男视频亚洲欧美| 国产精品系列在线观看| proumb性欧美在线观看| 色婷婷久久久久swag精品 | 中文字幕一区二区日韩精品绯色| 中文一区二区完整视频在线观看| 日韩美女视频19| 亚洲成a人v欧美综合天堂下载| 日本成人在线网站| 国产一区二区在线看| 91网站在线播放| 91精品国产91久久综合桃花 | 国产成人精品www牛牛影视| 99re视频精品| 91精品久久久久久久91蜜桃| 欧美v国产在线一区二区三区| 国产精品久久毛片av大全日韩| 亚洲成人综合网站| 国产成人精品免费网站| 欧美在线短视频| 久久这里只有精品6| 亚洲一区二区四区蜜桃| 国产主播一区二区| 91福利在线看| 日韩欧美www| 亚洲综合丝袜美腿| 国产91精品在线观看| 欧美偷拍一区二区| 国产精品热久久久久夜色精品三区| 亚洲成av人片| 成人av电影在线观看| 日韩一级片网址| 亚洲最新视频在线观看| 成人午夜免费av| 精品三级在线观看| 五月婷婷另类国产| 日本久久一区二区|