public class SM3Digest
extends org.bouncycastle.crypto.digests.GeneralDigest
The specification says "process a bit stream", but this is written to process bytes in blocks of 4, meaning this will process 32-bit word groups. But so do also most other digest specifications, including the SHA-256 which was a origin for this specification.
限定符和类型 | 方法和说明 |
---|---|
org.bouncycastle.util.Memoable |
copy() |
int |
doFinal(byte[] out,
int outOff) |
java.lang.String |
getAlgorithmName() |
int |
getDigestSize() |
protected void |
processBlock() |
protected void |
processLength(long bitLength) |
protected void |
processWord(byte[] in,
int inOff) |
void |
reset()
reset the chaining variables
|
void |
reset(com.seeyon.ctp.common.security.Memoable other) |
void |
reset(org.bouncycastle.util.Memoable memoable) |
public SM3Digest()
public SM3Digest(SM3Digest t)
public java.lang.String getAlgorithmName()
public int getDigestSize()
public void reset(com.seeyon.ctp.common.security.Memoable other)
public void reset()
reset
在接口中 org.bouncycastle.crypto.Digest
reset
在类中 org.bouncycastle.crypto.digests.GeneralDigest
public int doFinal(byte[] out, int outOff)
protected void processWord(byte[] in, int inOff)
processWord
在类中 org.bouncycastle.crypto.digests.GeneralDigest
protected void processLength(long bitLength)
processLength
在类中 org.bouncycastle.crypto.digests.GeneralDigest
protected void processBlock()
processBlock
在类中 org.bouncycastle.crypto.digests.GeneralDigest
public org.bouncycastle.util.Memoable copy()
public void reset(org.bouncycastle.util.Memoable memoable)