移植中

This commit is contained in:
zcy
2025-09-05 15:55:46 +08:00
parent 2310d0aca1
commit 747ac56a68
5 changed files with 65 additions and 27 deletions

View File

@@ -1,10 +1,16 @@
package com.cscn;
/**
* ZUC状态类
* ZUC状态类JavaCard版int 拆为 hi/lo short
*/
public final class Zuc256State {
int[] LFSR = new int[16]; // 线性反馈移位寄存器
int R1; // 寄存器1
int R2; // 寄存器2
// LFSR: 原 int[16] -> hi/lo 各 16
public short[] LFSR_hi = new short[16];
public short[] LFSR_lo = new short[16];
// R1, R2: 原 int -> hi/lo
public short R1_hi;
public short R1_lo;
public short R2_hi;
public short R2_lo;
}