public class SM3 extends Object
| 构造器和说明 |
|---|
SM3() |
| 限定符和类型 | 方法和说明 |
|---|---|
private static byte[] |
back(byte[] in)
字节数组逆序
|
private static int |
bigEndianByteToInt(byte[] bytes) |
private static byte[] |
bigEndianIntToByte(int num) |
private static int |
bitCycleLeft(int n,
int bitLen) |
private static byte[] |
bitSmall8CycleLeft(byte[] in,
int len) |
private static byte[] |
byteCycleLeft(byte[] in,
int byteLen) |
static byte[] |
CF(byte[] V,
byte[] B) |
static int[] |
CF(int[] V,
int[] B) |
private static int[] |
convert(byte[] arr) |
private static byte[] |
convert(int[] arr) |
private static int[][] |
expand(int[] B) |
private static int |
FF1j(int X,
int Y,
int Z) |
private static int |
FF2j(int X,
int Y,
int Z) |
private static int |
FFj(int X,
int Y,
int Z,
int j) |
private static int |
GG1j(int X,
int Y,
int Z) |
private static int |
GG2j(int X,
int Y,
int Z) |
private static int |
GGj(int X,
int Y,
int Z,
int j) |
private static int |
P0(int X) |
private static int |
P1(int X) |
static byte[] |
padding(byte[] in,
int bLen)
对最后一个分组字节数据padding
|
static int |
rotateLeft(int x,
int n) |
public static byte[] CF(byte[] V,
byte[] B)
private static int[] convert(byte[] arr)
private static byte[] convert(int[] arr)
public static int[] CF(int[] V,
int[] B)
private static int[][] expand(int[] B)
private static byte[] bigEndianIntToByte(int num)
private static int bigEndianByteToInt(byte[] bytes)
private static int FFj(int X,
int Y,
int Z,
int j)
private static int GGj(int X,
int Y,
int Z,
int j)
private static int FF1j(int X,
int Y,
int Z)
private static int FF2j(int X,
int Y,
int Z)
private static int GG1j(int X,
int Y,
int Z)
private static int GG2j(int X,
int Y,
int Z)
private static int P0(int X)
private static int P1(int X)
public static byte[] padding(byte[] in,
int bLen)
in - bLen - 分组个数private static byte[] back(byte[] in)
in - public static int rotateLeft(int x,
int n)
private static int bitCycleLeft(int n,
int bitLen)
private static byte[] bitSmall8CycleLeft(byte[] in,
int len)
private static byte[] byteCycleLeft(byte[] in,
int byteLen)
Copyright © 2023. All rights reserved.