Built and included modified libsodium with additional wrappers, working blake, sha256/512 hashes

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-06-09 20:30:12 +02:00
1 parent 710ac43e8c
commit 197aacac33
30 files changed
+170 -89

No files matched your search

@@ -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())
}
@@ -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())
}
@@ -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())
}