java.lang.Object
org.fisco.bcos.sdk.crypto.hash.SM3Hash
- All Implemented Interfaces:
Hash
public class SM3Hash
extends java.lang.Object
implements Hash
-
Constructor Summary
Constructors
Constructor |
Description |
SM3Hash() |
|
-
Method Summary
Modifier and Type |
Method |
Description |
byte[] |
hash(byte[] inputBytes) |
|
java.lang.String |
hash(java.lang.String inputData) |
|
java.lang.String |
hashBytes(byte[] inputBytes) |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
public java.lang.String hash(java.lang.String inputData)
- Specified by:
hash
in interface Hash
-
public java.lang.String hashBytes(byte[] inputBytes)
- Specified by:
hashBytes
in interface Hash
-
public byte[] hash(byte[] inputBytes)
- Specified by:
hash
in interface Hash