Further progress on delegated xchacha poly, working jvm , js in progress

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-06-25 21:16:14 +02:00
1 parent e3fe276e4c
commit 6228263978
29 files changed
+419 -131

No files matched your search

@@ -3,7 +3,7 @@ package com.ionspin.kotlin.crypto
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bMultipart
import com.ionspin.kotlin.crypto.hash.blake2b.Blake2bProperties
import com.ionspin.kotlin.crypto.hash.sha.Sha256
import com.ionspin.kotlin.crypto.hash.sha.Sha512
import com.ionspin.kotlin.crypto.hash.sha.Sha512Multipart
import com.ionspin.kotlin.crypto.keyderivation.ArgonResult
/**
@@ -18,7 +18,7 @@ interface PrimitivesApi {
fun hashSha256Multipart(): Sha256
fun hashSha256(message: UByteArray) : UByteArray
fun hashSha512Multipart(): Sha512
fun hashSha512Multipart(): Sha512Multipart
fun hashSha512(message: UByteArray) : UByteArray
fun deriveKey(
@@ -11,11 +11,11 @@ import com.ionspin.kotlin.crypto.hash.MultipartHash
object Sha512Properties {
const val MAX_HASH_BYTES = 64
}
interface Sha512 : MultipartHash {
interface Sha512Multipart : MultipartHash {
override val MAX_HASH_BYTES: Int
get() = Sha256Properties.MAX_HASH_BYTES
}
interface MultipartSha512 : Hash {
interface Sha512 : Hash {
override val MAX_HASH_BYTES: Int
get() = Sha512Properties.MAX_HASH_BYTES