Re-enables benchmark with native android ChaCha functions

This commit is contained in:
Vitor Pamplona
2026-03-25 11:17:17 -04:00
parent 60a44d25eb
commit 617db3613f
2 changed files with 25 additions and 30 deletions
@@ -38,28 +38,6 @@ class ChaCha20 {
key: ByteArray,
) = decryptLibSodium(message, nonce, key)
/*
fun encryptNative(
message: ByteArray,
nonce: ByteArray,
key: ByteArray,
): ByteArray {
val cipher = Cipher.getInstance("ChaCha20")
cipher.init(Cipher.ENCRYPT_MODE, FixedKey(key, "ChaCha20"), IvParameterSpec(nonce))
return cipher.doFinal(message)
}
fun decryptNative(
message: ByteArray,
nonce: ByteArray,
key: ByteArray,
): ByteArray {
val cipher = Cipher.getInstance("ChaCha20")
cipher.init(Cipher.DECRYPT_MODE, FixedKey(key, "ChaCha20"), IvParameterSpec(nonce))
return cipher.doFinal(message)
}
*/
fun encryptLibSodium(
message: ByteArray,
nonce: ByteArray,