Progress on native generator
This commit is contained in:
1 parent
c975bdb248
commit
97c631ecb7
10 files changed
+371
-49
No files matched your search
+17
-5
@@ -5,13 +5,25 @@ import kotlin.UByteArray
|
||||
|
||||
expect class Sha256State
|
||||
|
||||
expect class Hashing {
|
||||
fun crypto_hash_sha256_init(state: Sha256State): Int
|
||||
}
|
||||
expect class Sha512State
|
||||
|
||||
expect class GenericHashState
|
||||
|
||||
expect class Crypto {
|
||||
fun crypto_hash_sha256_init(state: Sha256State): Int
|
||||
|
||||
fun crypto_hash_sha256_update(state: Sha256State, input: UByteArray)
|
||||
|
||||
fun crypto_hash_sha256_final(state: Sha256State, out: UByteArray)
|
||||
|
||||
fun crypto_hash_sha512_init(state: Sha512State): Int
|
||||
|
||||
fun crypto_hash_sha512_update(state: Sha512State, input: UByteArray)
|
||||
|
||||
fun crypto_hash_sha512_final(state: Sha512State, out: UByteArray)
|
||||
|
||||
expect class GenericHash {
|
||||
fun crypto_generichash_init(
|
||||
state: UByteArray,
|
||||
state: GenericHashState,
|
||||
key: UByteArray,
|
||||
outlen: Int
|
||||
): Int
|
||||
|
||||
Reference in new issue
Block a user