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

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

?? idea.java

?? java 平臺 telnet 繁體中文版
?? JAVA
字號:
/****************************************************************************** * * Copyright (c) 1998,99 by Mindbright Technology AB, Stockholm, Sweden. *                 www.mindbright.se, info@mindbright.se * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * ***************************************************************************** * $Author: marcus $ * $Date: 2000/12/20 21:48:30 $ * $Name:  $ *****************************************************************************//* * !!! Author's comment: The contents of this file is heavily based * upon Tatu Ylonen's c-code (from the ssh1 package). His comments follows: * ... * This code is based on Xuejia Lai: On the Design and Security of Block * Ciphers, ETH Series in Information Processing, vol. 1, Hartung-Gorre * Verlag, Konstanz, Switzerland, 1992.  Another source was Bruce * Schneier: Applied Cryptography, John Wiley & Sons, 1994. * * The IDEA mathematical formula may be covered by one or more of the * following patents: PCT/CH91/00117, EP 0 482 154 B1, US Pat. 5,214,703. */package de.mud.ssh;import java.math.BigInteger;public final class IDEA extends Cipher {  protected int[]   key_schedule = new int[52];  protected int     IV0 = 0;  protected int     IV1 = 0;  public synchronized void encrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len) {    int[]  out = new int[2];    int iv0 = IV0;    int iv1 = IV1;    int end = srcOff + len;    for(int si = srcOff, di = destOff; si < end; si += 8, di += 8) {      encrypt(iv0, iv1, out);      iv0 = out[0];      iv1 = out[1];      iv0 ^= ((src[si + 3] & 0xff) | ((src[si + 2] & 0xff) << 8) |	      ((src[si + 1] & 0xff) << 16) | ((src[si] & 0xff) << 24));      iv1 ^= ((src[si + 7] & 0xff) | ((src[si + 6] & 0xff) << 8) |	      ((src[si + 5] & 0xff) << 16) | ((src[si + 4] & 0xff) << 24));      if(di + 8 <= end) {	  dest[di+3] = (byte)( iv0         & 0xff);	  dest[di+2] = (byte)((iv0 >>> 8 ) & 0xff);	  dest[di+1] = (byte)((iv0 >>> 16) & 0xff);	  dest[di]   = (byte)((iv0 >>> 24) & 0xff);	  dest[di+7] = (byte)( iv1         & 0xff);	  dest[di+6] = (byte)((iv1 >>> 8 ) & 0xff);	  dest[di+5] = (byte)((iv1 >>> 16) & 0xff);	  dest[di+4] = (byte)((iv1 >>> 24) & 0xff);      } else {	  switch(end - di) {	  case 7:	      dest[di+6] = (byte)((iv1 >>> 8) & 0xff);	  case 6:	      dest[di+5] = (byte)((iv1 >>> 16) & 0xff);	  case 5:	      dest[di+4] = (byte)((iv1 >>> 24) & 0xff);	  case 4:	      dest[di+3] = (byte)( iv0         & 0xff);	  case 3:	      dest[di+2] = (byte)((iv0 >>> 8) & 0xff);	  case 2:	      dest[di+1] = (byte)((iv0 >>> 16) & 0xff);	  case 1:	      dest[di]   = (byte)((iv0 >>> 24) & 0xff);	  }      }    }    IV0 = iv0;    IV1 = iv1;  }  public synchronized void decrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len) {    int[]  out = new int[2];    int iv0 = IV0;    int iv1 = IV1;    int plain0, plain1;    int end = srcOff + len;    for(int si = srcOff, di = destOff; si < end; si += 8, di += 8) {      decrypt(iv0, iv1, out);      iv0 = ((src[si + 3] & 0xff) | ((src[si + 2] & 0xff) << 8) |	      ((src[si + 1] & 0xff) << 16) | ((src[si] & 0xff) << 24));      iv1 = ((src[si + 7] & 0xff) | ((src[si + 6] & 0xff) << 8) |	      ((src[si + 5] & 0xff) << 16) | ((src[si + 4] & 0xff) << 24));      plain0 = out[0] ^ iv0;      plain1 = out[1] ^ iv1;      if(di + 8 <= end) {	  dest[di+3] = (byte)( plain0         & 0xff);	  dest[di+2] = (byte)((plain0 >>> 8 ) & 0xff);	  dest[di+1] = (byte)((plain0 >>> 16) & 0xff);	  dest[di]   = (byte)((plain0 >>> 24) & 0xff);	  dest[di+7] = (byte)( plain1         & 0xff);	  dest[di+6] = (byte)((plain1 >>> 8 ) & 0xff);	  dest[di+5] = (byte)((plain1 >>> 16) & 0xff);	  dest[di+4] = (byte)((plain1 >>> 24) & 0xff);      } else {	  switch(end - di) {	  case 7:	      dest[di+6] = (byte)((plain1 >>> 8) & 0xff);	  case 6:	      dest[di+5] = (byte)((plain1 >>> 16) & 0xff);	  case 5:	      dest[di+4] = (byte)((plain1 >>> 24) & 0xff);	  case 4:	      dest[di+3] = (byte)( plain0         & 0xff);	  case 3:	      dest[di+2] = (byte)((plain0 >>> 8) & 0xff);	  case 2:	      dest[di+1] = (byte)((plain0 >>> 16) & 0xff);	  case 1:	      dest[di]   = (byte)((plain0 >>> 24) & 0xff);	  }      }    }    IV0 = iv0;    IV1 = iv1;  }  public void setKey(byte[] key) {      int i, ki = 0, j = 0;      for(i = 0; i < 8; i++)	  key_schedule[i] = ((key[2 * i] & 0xff) << 8) | (key[(2 * i) + 1] & 0xff);      for(i = 8, j = 0; i < 52; i++) {	  j++;	  key_schedule[ki + j + 7] = ((key_schedule[ki + (j & 7)] << 9) |				      (key_schedule[ki + ((j + 1) & 7)] >>> 7)) & 0xffff;	  ki += j & 8;	  j &= 7;      }  }  public final void encrypt(int l, int r, int[] out) {      int t1 = 0, t2 = 0, x1, x2, x3, x4, ki = 0;      x1 = (l >>> 16);      x2 = (l & 0xffff);      x3 = (r >>> 16);      x4 = (r & 0xffff);      for(int round = 0; round < 8; round++) {	  x1 = mulop(x1 & 0xffff, key_schedule[ki++]);	  x2 = (x2 + key_schedule[ki++]);	  x3 = (x3 + key_schedule[ki++]);	  x4 = mulop(x4 & 0xffff, key_schedule[ki++]);	  t1 = (x1 ^ x3);	  t2 = (x2 ^ x4);	  t1 = mulop(t1 & 0xffff, key_schedule[ki++]);	  t2 = (t1 + t2);	  t2 = mulop(t2 & 0xffff, key_schedule[ki++]);	  t1 = (t1 + t2);	  x1 = (x1 ^ t2);	  x4 = (x4 ^ t1);	  t1 = (t1 ^ x2);	  x2 = (t2 ^ x3);	  x3 = t1;      }        t2 = x2;      x1 = mulop(x1 & 0xffff, key_schedule[ki++]);      x2 = (t1 + key_schedule[ki++]);      x3 = ((t2 + key_schedule[ki++]) & 0xffff);      x4 = mulop(x4 & 0xffff, key_schedule[ki]);      out[0] = (x1 << 16) | (x2 & 0xffff);      out[1] = (x3 << 16) | (x4 & 0xffff);  }  public final void decrypt(int l, int r, int[] out) {      encrypt(l, r, out);  }  public static final int mulop(int a, int b) {      int ab = a * b;      if(ab != 0) {	  int lo = ab & 0xffff;	  int hi = (ab >>> 16) & 0xffff;	  return ((lo - hi) + ((lo < hi) ? 1 : 0));      }      if(a == 0)	  return (1 - b);      return  (1 - a);  }    /* !!! REMOVE DEBUG !!!  public static void main(String[] argv) {    byte[] key = {       (byte)0xd3, (byte)0x96, (byte)0xcf, (byte)0x07, (byte)0xfa, (byte)0xa2, (byte)0x64,      (byte)0xfe, (byte)0xf3, (byte)0xa2, (byte)0x06, (byte)0x07, (byte)0x1a, (byte)0xb6,      (byte)0x13, (byte)0xf6    };    byte[] txt = {      (byte)0x2e, (byte)0xbe, (byte)0xc5, (byte)0xac, (byte)0x02, (byte)0xa1, (byte)0xd5,       (byte)0x7f, (byte)0x01, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x1f, (byte)0x43,       (byte)0x6f, (byte)0x72, (byte)0x72, (byte)0x75, (byte)0x70, (byte)0x74, (byte)0x65,       (byte)0x64, (byte)0x20, (byte)0x63, (byte)0x68, (byte)0x65, (byte)0x63, (byte)0x6b,       (byte)0x20, (byte)0x62, (byte)0x79, (byte)0x74, (byte)0x65, (byte)0x73, (byte)0x20,       (byte)0x6f, (byte)0x6e, (byte)0x20, (byte)0x69, (byte)0x6e, (byte)0x70, (byte)0x75,       (byte)0x74, (byte)0x2e, (byte)0x91, (byte)0x9a, (byte)0x57, (byte)0xdd    };    byte[] enc;    byte[] dec;    System.out.println("key: " + printHex(key));    System.out.println("txt: " + printHex(txt));    IDEA cipher = new IDEA();    cipher.setKey(key);    for(int i = 0; i < 52; i++) {	if((i & 0x7) == 0)	    System.out.println("");	System.out.print(" " + cipher.key_schedule[i]);    }    enc = cipher.encrypt(txt);    System.out.println("enc: " + printHex(enc));    cipher = new IDEA();    cipher.setKey(key);    dec = cipher.decrypt(enc);    System.out.println("dec: " + printHex(dec));  }  static String printHex(byte[] buf) {    byte[] out = new byte[buf.length + 1];    out[0] = 0;    System.arraycopy(buf, 0, out, 1, buf.length);    BigInteger big = new BigInteger(out);    return big.toString(16);  }    */}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区中文字幕| 日韩成人午夜精品| 欧美视频在线观看一区二区| 视频在线观看国产精品| 欧美日韩久久一区二区| 国产成人日日夜夜| 亚洲高清一区二区三区| 国产日本亚洲高清| 欧美乱妇20p| 国产成+人+日韩+欧美+亚洲| 午夜精品一区在线观看| 欧美国产激情二区三区| 91国产成人在线| 懂色av一区二区夜夜嗨| 亚洲超碰97人人做人人爱| 亚洲国产精品国自产拍av| 8v天堂国产在线一区二区| 岛国一区二区三区| 奇米精品一区二区三区在线观看| 国产精品毛片无遮挡高清| 3d成人动漫网站| 日本乱码高清不卡字幕| 国产激情一区二区三区| 久久99久久久久久久久久久| 亚洲免费观看在线观看| 久久精品无码一区二区三区| 91精品国产综合久久蜜臀| thepron国产精品| 久久国产精品72免费观看| 亚洲国产视频一区二区| 国产精品久久久久aaaa樱花| 久久久久久久久久久电影| 欧美一区二区私人影院日本| 国产精品主播直播| 国产精品一区二区你懂的| 天堂av在线一区| 午夜欧美电影在线观看| 有码一区二区三区| 日韩精品电影一区亚洲| 亚洲国产精品久久人人爱蜜臀 | 精品福利一区二区三区免费视频| 91麻豆自制传媒国产之光| 国产黄色91视频| 视频一区二区国产| 亚洲图片欧美视频| 中文字幕一区在线观看视频| 成人欧美一区二区三区小说| 2020国产精品| 久久久久久**毛片大全| 2021国产精品久久精品| 欧美成人a在线| 久久在线免费观看| 欧美不卡一区二区三区四区| 精品国产欧美一区二区| 日韩欧美在线影院| 日韩免费视频一区| 26uuu精品一区二区在线观看| 91精品在线免费观看| 欧美成人福利视频| 精品福利一二区| 精品国产一区二区三区四区四| 久久久精品综合| 久久精品日产第一区二区三区高清版| 久久久美女毛片| 国产精品素人一区二区| 国产精品美女久久久久久久久 | 91精品国产综合久久香蕉麻豆| 在线精品国精品国产尤物884a | 欧美一激情一区二区三区| 欧美男同性恋视频网站| 日韩三级电影网址| 久久理论电影网| 国产网站一区二区| 亚洲精选免费视频| 亚洲成人av免费| 国产一区二区伦理| 99国产精品久久久久久久久久 | 在线播放一区二区三区| 欧美一区二区三区视频在线观看 | 欧美一区日韩一区| 久久久久国产免费免费| 日韩欧美你懂的| 国产精品久久久久久一区二区三区 | 亚洲欧美色图小说| 亚洲妇熟xx妇色黄| 人人精品人人爱| 国产一区二区在线看| 成人av手机在线观看| 欧美三级乱人伦电影| 精品毛片乱码1区2区3区| 国产校园另类小说区| 精品一区二区三区在线视频| 久久精品99国产精品| 成人久久视频在线观看| 欧美天堂亚洲电影院在线播放| 精品国内二区三区| 亚洲日本护士毛茸茸| 日本女人一区二区三区| 99re这里都是精品| 欧美一卡二卡三卡| 亚洲免费视频中文字幕| 激情综合亚洲精品| 色婷婷综合久色| 日韩欧美视频在线| 亚洲精品综合在线| 高清成人免费视频| 欧美日韩视频专区在线播放| 69久久99精品久久久久婷婷| 成人欧美一区二区三区视频网页| 天堂一区二区在线免费观看| 91香蕉视频黄| 久久综合999| 亚洲自拍偷拍九九九| 丁香婷婷综合五月| 日韩欧美的一区二区| 亚洲国产精品久久久久婷婷884| 国产精品中文字幕日韩精品| 7777精品伊人久久久大香线蕉完整版 | 777久久久精品| 一区二区激情视频| 床上的激情91.| 日韩亚洲欧美一区| 香蕉成人伊视频在线观看| 成人sese在线| 国产亚洲欧洲997久久综合 | 1024国产精品| 国产综合色精品一区二区三区| 91官网在线免费观看| 中文在线一区二区| 国产成+人+日韩+欧美+亚洲| 在线播放国产精品二区一二区四区| 最新国产の精品合集bt伙计| 国产精品羞羞答答xxdd| 日韩视频123| 久色婷婷小香蕉久久| 欧美视频在线一区| 午夜不卡av免费| 欧亚洲嫩模精品一区三区| 中文字幕视频一区| 99精品视频免费在线观看| 久久综合久久综合九色| 国产一区二区三区不卡在线观看| 91精品在线观看入口| 日本不卡中文字幕| 在线播放日韩导航| 中文字幕在线不卡一区| 91免费国产视频网站| 成人福利视频在线| 国产精品久久久久久久久晋中| 国产精品一区一区| 亚洲欧美一区二区三区极速播放 | 奇米精品一区二区三区在线观看 | 欧美精选在线播放| 亚洲成人综合网站| 久久久激情视频| 91日韩在线专区| 人妖欧美一区二区| 国产精品久久午夜夜伦鲁鲁| 欧美视频一区二区在线观看| 九一九一国产精品| 麻豆视频一区二区| 日韩欧美国产一二三区| 欧美一区二区三区男人的天堂| 一区二区三区四区高清精品免费观看 | 国产亚洲精品bt天堂精选| 久久一日本道色综合| 午夜在线电影亚洲一区| 色综合天天综合在线视频| 欧美一卡二卡在线| 麻豆精品视频在线观看| 中文字幕av一区二区三区| 成人精品高清在线| 亚洲成人免费影院| 欧美日韩和欧美的一区二区| 天天操天天色综合| 久久精品日产第一区二区三区高清版| 国产jizzjizz一区二区| 玉米视频成人免费看| 欧美军同video69gay| 亚洲电影你懂得| 久久久久亚洲综合| 91一区二区在线观看| 爽好多水快深点欧美视频| 欧美tk—视频vk| www.欧美精品一二区| 免费在线观看成人| 久久亚洲精华国产精华液| 成人国产视频在线观看| 日韩黄色片在线观看| 国产网红主播福利一区二区| 欧美三级韩国三级日本一级| 麻豆精品久久精品色综合| 欧美在线观看视频一区二区| 韩国欧美国产一区| 有码一区二区三区| 国产色综合久久| 欧美美女黄视频| av一区二区三区黑人| 日韩av在线发布| 亚洲精品中文字幕在线观看|