PageRenderTime 3814ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/data/java_stdlib/classpath/gnu.javax.crypto.cipher.java

https://github.com/facebook/pfff
Java | 400 lines | 400 code | 0 blank | 0 comment | 0 complexity | 309977b1b80aa44bcbdc648cf3caa8f5 MD5 | raw file
  1. package gnu.javax.crypto.cipher;
  2. class WeakKeyException {
  3. }
  4. class Twofish {
  5. int valid;
  6. int KAT_CT;
  7. int KAT_KEY;
  8. int RS_GF_FDBK;
  9. int MDS;
  10. int GF256_FDBK_4;
  11. int GF256_FDBK_2;
  12. int P_34;
  13. int P_33;
  14. int P_32;
  15. int P_31;
  16. int P_30;
  17. int P_24;
  18. int P_23;
  19. int P_22;
  20. int P_21;
  21. int P_20;
  22. int P_14;
  23. int P_13;
  24. int P_12;
  25. int P_11;
  26. int P_10;
  27. int P_04;
  28. int P_03;
  29. int P_02;
  30. int P_01;
  31. int P_00;
  32. int P;
  33. int Pm;
  34. int SK_ROTL;
  35. int SK_BUMP;
  36. int SK_STEP;
  37. int ROUND_SUBKEYS;
  38. int OUTPUT_WHITEN;
  39. int INPUT_WHITEN;
  40. int ROUNDS;
  41. int MAX_ROUNDS;
  42. int DEFAULT_KEY_SIZE;
  43. int DEFAULT_BLOCK_SIZE;
  44. int log;
  45. }
  46. class TripleDES {
  47. class Context {
  48. int k3;
  49. int k2;
  50. int k1;
  51. }
  52. int des;
  53. int KEY_SIZE;
  54. int BLOCK_SIZE;
  55. }
  56. class Square {
  57. int valid;
  58. int KAT_CT;
  59. int KAT_KEY;
  60. int Td;
  61. int Te;
  62. int Sd;
  63. int Se;
  64. int Sdata;
  65. int OFFSET;
  66. int ROOT;
  67. int ROUNDS;
  68. int DEFAULT_KEY_SIZE;
  69. int DEFAULT_BLOCK_SIZE;
  70. }
  71. class Serpent {
  72. class Key {
  73. int k131;
  74. int k130;
  75. int k129;
  76. int k128;
  77. int k127;
  78. int k126;
  79. int k125;
  80. int k124;
  81. int k123;
  82. int k122;
  83. int k121;
  84. int k120;
  85. int k119;
  86. int k118;
  87. int k117;
  88. int k116;
  89. int k115;
  90. int k114;
  91. int k113;
  92. int k112;
  93. int k111;
  94. int k110;
  95. int k109;
  96. int k108;
  97. int k107;
  98. int k106;
  99. int k105;
  100. int k104;
  101. int k103;
  102. int k102;
  103. int k101;
  104. int k100;
  105. int k99;
  106. int k98;
  107. int k97;
  108. int k96;
  109. int k95;
  110. int k94;
  111. int k93;
  112. int k92;
  113. int k91;
  114. int k90;
  115. int k89;
  116. int k88;
  117. int k87;
  118. int k86;
  119. int k85;
  120. int k84;
  121. int k83;
  122. int k82;
  123. int k81;
  124. int k80;
  125. int k79;
  126. int k78;
  127. int k77;
  128. int k76;
  129. int k75;
  130. int k74;
  131. int k73;
  132. int k72;
  133. int k71;
  134. int k70;
  135. int k69;
  136. int k68;
  137. int k67;
  138. int k66;
  139. int k65;
  140. int k64;
  141. int k63;
  142. int k62;
  143. int k61;
  144. int k60;
  145. int k59;
  146. int k58;
  147. int k57;
  148. int k56;
  149. int k55;
  150. int k54;
  151. int k53;
  152. int k52;
  153. int k51;
  154. int k50;
  155. int k49;
  156. int k48;
  157. int k47;
  158. int k46;
  159. int k45;
  160. int k44;
  161. int k43;
  162. int k42;
  163. int k41;
  164. int k40;
  165. int k39;
  166. int k38;
  167. int k37;
  168. int k36;
  169. int k35;
  170. int k34;
  171. int k33;
  172. int k32;
  173. int k31;
  174. int k30;
  175. int k29;
  176. int k28;
  177. int k27;
  178. int k26;
  179. int k25;
  180. int k24;
  181. int k23;
  182. int k22;
  183. int k21;
  184. int k20;
  185. int k19;
  186. int k18;
  187. int k17;
  188. int k16;
  189. int k15;
  190. int k14;
  191. int k13;
  192. int k12;
  193. int k11;
  194. int k10;
  195. int k9;
  196. int k8;
  197. int k7;
  198. int k6;
  199. int k5;
  200. int k4;
  201. int k3;
  202. int k2;
  203. int k1;
  204. int k0;
  205. }
  206. int x4;
  207. int x3;
  208. int x2;
  209. int x1;
  210. int x0;
  211. int valid;
  212. int KAT_CT;
  213. int KAT_KEY;
  214. int PHI;
  215. int ROUNDS;
  216. int DEFAULT_BLOCK_SIZE;
  217. int DEFAULT_KEY_SIZE;
  218. }
  219. class Rijndael {
  220. int valid;
  221. int KAT_CT;
  222. int KAT_KEY;
  223. int shifts;
  224. int rcon;
  225. int U4;
  226. int U3;
  227. int U2;
  228. int U1;
  229. int T8;
  230. int T7;
  231. int T6;
  232. int T5;
  233. int T4;
  234. int T3;
  235. int T2;
  236. int T1;
  237. int Si;
  238. int S;
  239. int SS;
  240. int DEFAULT_KEY_SIZE;
  241. int DEFAULT_BLOCK_SIZE;
  242. int log;
  243. }
  244. class NullCipher {
  245. }
  246. class Khazad {
  247. int valid;
  248. int KAT_CT;
  249. int KAT_KEY;
  250. int rc;
  251. int T7;
  252. int T6;
  253. int T5;
  254. int T4;
  255. int T3;
  256. int T2;
  257. int T1;
  258. int T0;
  259. int S;
  260. int Sd;
  261. int R;
  262. int DEFAULT_KEY_SIZE;
  263. int DEFAULT_BLOCK_SIZE;
  264. int log;
  265. }
  266. class IBlockCipherSpi {
  267. }
  268. class IBlockCipher {
  269. int KEY_MATERIAL;
  270. int CIPHER_BLOCK_SIZE;
  271. }
  272. class DES {
  273. class Context {
  274. int dk;
  275. int ek;
  276. int EXPANDED_KEY_SIZE;
  277. }
  278. int POSSIBLE_WEAK_KEYS;
  279. int SEMIWEAK_KEYS;
  280. int WEAK_KEYS;
  281. int PC2;
  282. int PC1;
  283. int ROTARS;
  284. int PARITY;
  285. int SP8;
  286. int SP7;
  287. int SP6;
  288. int SP5;
  289. int SP4;
  290. int SP3;
  291. int SP2;
  292. int SP1;
  293. int KEY_SIZE;
  294. int BLOCK_SIZE;
  295. }
  296. class CipherFactory {
  297. }
  298. class Cast5 {
  299. class Cast5Key {
  300. int Kr15;
  301. int Kr14;
  302. int Kr13;
  303. int Kr12;
  304. int Kr11;
  305. int Kr10;
  306. int Kr9;
  307. int Kr8;
  308. int Kr7;
  309. int Kr6;
  310. int Kr5;
  311. int Kr4;
  312. int Kr3;
  313. int Kr2;
  314. int Kr1;
  315. int Kr0;
  316. int Km15;
  317. int Km14;
  318. int Km13;
  319. int Km12;
  320. int Km11;
  321. int Km10;
  322. int Km9;
  323. int Km8;
  324. int Km7;
  325. int Km6;
  326. int Km5;
  327. int Km4;
  328. int Km3;
  329. int Km2;
  330. int Km1;
  331. int Km0;
  332. int rounds;
  333. }
  334. int _16_ROUNDS;
  335. int _12_ROUNDS;
  336. int S8;
  337. int S7;
  338. int S6;
  339. int S5;
  340. int S4;
  341. int S3;
  342. int S2;
  343. int S1;
  344. int valid;
  345. int KAT_CT;
  346. int KAT_PT;
  347. int KAT_KEY;
  348. int DEFAULT_KEY_SIZE;
  349. int DEFAULT_BLOCK_SIZE;
  350. }
  351. class Blowfish {
  352. class Block {
  353. int right;
  354. int left;
  355. }
  356. class Context {
  357. int s3;
  358. int s2;
  359. int s1;
  360. int s0;
  361. int p;
  362. }
  363. int TV_CT;
  364. int TV_KEY;
  365. int valid;
  366. int KS3;
  367. int KS2;
  368. int KS1;
  369. int KS0;
  370. int P;
  371. int MAX_KEY_LENGTH;
  372. int DEFAULT_KEY_SIZE;
  373. int DEFAULT_BLOCK_SIZE;
  374. }
  375. class BaseCipher {
  376. int lock;
  377. int currentKey;
  378. int currentBlockSize;
  379. int defaultKeySize;
  380. int defaultBlockSize;
  381. int name;
  382. int log;
  383. }
  384. class Anubis {
  385. int valid;
  386. int KAT_CT;
  387. int KAT_KEY;
  388. int rc;
  389. int T5;
  390. int T4;
  391. int T3;
  392. int T2;
  393. int T1;
  394. int T0;
  395. int S;
  396. int Sd;
  397. int DEFAULT_KEY_SIZE;
  398. int DEFAULT_BLOCK_SIZE;
  399. int log;
  400. }