Scoop API

scoop:scoop.crypto:0.1.0

src/native/digest.scoop

Selected production source · src/native/digest.scoop

1package scoop.crypto.native
3@Extern(name = "scoop_crypto_digest_new") internal fun digestNew(algorithm: Int): CryptoResult
4@Extern(name = "scoop_crypto_digest_update") internal fun digestUpdate(handle: ULong, data: Ptr<Byte>, count: Long): CryptoResult
5@Extern(name = "scoop_crypto_digest_finish") internal fun digestFinish(handle: ULong): CryptoResult
6@Extern(name = "scoop_crypto_digest_free") internal fun digestFree(handle: ULong)
7@Extern(name = "scoop_crypto_secret_import") internal fun secretImport(data: Ptr<Byte>, count: Long): CryptoResult
8@Extern(name = "scoop_crypto_secret_export") internal fun secretExport(handle: ULong): CryptoResult
9@Extern(name = "scoop_crypto_hmac") internal fun nativeHmac(algorithm: Int, key: ULong, data: Ptr<Byte>, count: Long): CryptoResult
10@Extern(name = "scoop_crypto_equal") internal fun nativeEqual(left: Ptr<Byte>, right: Ptr<Byte>, count: Long): Int
11@Extern(name = "scoop_crypto_random") internal fun nativeRandom(count: Long): CryptoResult
12@Extern(name = "scoop_crypto_aead") internal fun nativeAead(algorithm: Int, encrypt: Int, key: ULong,
13 nonce: Ptr<Byte>, aad: Ptr<Byte>, aadCount: Long, input: Ptr<Byte>, inputCount: Long, tag: Ptr<Byte>?): CryptoResult