scoop:scoop.crypto:0.1.0
src/native/digest.scoop
Selected production source · src/native/digest.scoop
1
package scoop.crypto.native3
@Extern(name = "scoop_crypto_digest_new") internal fun digestNew(algorithm: Int): CryptoResult4
@Extern(name = "scoop_crypto_digest_update") internal fun digestUpdate(handle: ULong, data: Ptr<Byte>, count: Long): CryptoResult5
@Extern(name = "scoop_crypto_digest_finish") internal fun digestFinish(handle: ULong): CryptoResult6
@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): CryptoResult8
@Extern(name = "scoop_crypto_secret_export") internal fun secretExport(handle: ULong): CryptoResult9
@Extern(name = "scoop_crypto_hmac") internal fun nativeHmac(algorithm: Int, key: ULong, data: Ptr<Byte>, count: Long): CryptoResult10
@Extern(name = "scoop_crypto_equal") internal fun nativeEqual(left: Ptr<Byte>, right: Ptr<Byte>, count: Long): Int11
@Extern(name = "scoop_crypto_random") internal fun nativeRandom(count: Long): CryptoResult12
@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