Package org.apache.sshd.common.digest
Class SM3
java.lang.Object
org.apache.sshd.common.digest.SM3
- All Implemented Interfaces:
Comparable<Digest>,AlgorithmNameProvider,Digest,DigestInformation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ctx
private org.bouncycastle.crypto.digests.SM3Digest ctx
-
-
Constructor Details
-
SM3
public SM3()
-
-
Method Details
-
init
-
update
-
update
-
cleanctx
private void cleanctx() -
digest
-
compareTo
- Specified by:
compareToin interfaceComparable<Digest>
-
sm3
- Throws:
Exception
-
getBlockSize
public int getBlockSize()- Specified by:
getBlockSizein interfaceDigestInformation- Returns:
- The number of bytes in the digest's output
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceAlgorithmNameProvider
-