forked from sergeych/crypto2
more macos targets again
This commit is contained in:
1 parent
431d91b080
commit
193a0789b6
5 files changed
+29
No files matched your search
@@ -11,6 +11,10 @@ fun ByteArray.digestKeccak(parameter: KeccakParameter): ByteArray {
|
||||
return Keccak.digest(this, parameter)
|
||||
}
|
||||
|
||||
fun UByteArray.digestKeccak(parameter: KeccakParameter): UByteArray {
|
||||
return Keccak.digest(this.toByteArray(), parameter).toUByteArray()
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the proper Keccak digest of [this] string based on the given [parameter]
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user