Built and included modified libsodium with additional wrappers, working blake, sha256/512 hashes
This commit is contained in:
1 parent
710ac43e8c
commit
197aacac33
30 files changed
+170
-89
No files matched your search
+1
-1
@@ -309,7 +309,7 @@ class Blake2bPure(val key: UByteArray? = null, val hashLength: Int = 64) : Blake
|
||||
|
||||
}
|
||||
|
||||
override fun update(data: String) {
|
||||
fun update(data: String) {
|
||||
update(data.encodeToByteArray().toUByteArray())
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -235,7 +235,7 @@ class Sha256Pure : Sha256 {
|
||||
var buffer = UByteArray(BLOCK_SIZE_IN_BYTES) { 0U }
|
||||
|
||||
|
||||
override fun update(data: String) {
|
||||
fun update(data: String) {
|
||||
return update(data.encodeToByteArray().toUByteArray())
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -309,7 +309,7 @@ class Sha512Pure : Sha512 {
|
||||
var buffer = UByteArray(BLOCK_SIZE_IN_BYTES) { 0U }
|
||||
|
||||
|
||||
override fun update(data: String) {
|
||||
fun update(data: String) {
|
||||
return update(data.encodeToByteArray().toUByteArray())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user