| 限定符和类型 | 字段和说明 |
|---|---|
private static int |
BLOCK_LENGTH
SM3分组长度
|
private static int |
BUFFER_LENGTH
缓冲区长度
|
private static int |
BYTE_LENGTH
SM3值的长度
|
private int |
cntBlock |
private byte[] |
V
初始向量
|
private byte[] |
xBuf
缓冲区
|
private int |
xBufOff
缓冲区偏移量
|
private static final int BYTE_LENGTH
private static final int BLOCK_LENGTH
private static final int BUFFER_LENGTH
private byte[] xBuf
private int xBufOff
private byte[] V
private int cntBlock
public int doFinal(byte[] out, int outOff)
out - 保存SM3结构的缓冲区outOff - 缓冲区偏移量public void reset()
public void update(byte[] in, int inOff, int len)
in - 明文输入缓冲区inOff - 缓冲区偏移量len - 明文长度private void doUpdate()
private void doHash(byte[] B)
private byte[] doFinal()
public void update(byte in)
public int getDigestSize()
Copyright © 2024. All rights reserved.