Working single shot xchacha20poly1305 encryption and decryption in delegated flavour

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-06-27 18:20:53 +02:00
1 parent 6228263978
commit e6f560ba8e
13 files changed
+66 -48

No files matched your search

@@ -5,6 +5,8 @@ package com.ionspin.kotlin.crypto.util
* ugljesa.jovanovic@ionspin.com
* on 22-Jun-2020
*/
val _emit = IntArray(0)
fun UByteArray.overwriteWithZeroes() {
for (i in 0 until size) {
this[i] = 0U
@@ -15,4 +17,4 @@ fun UIntArray.overwriteWithZeroes() {
for (i in 0 until size) {
this[i] = 0U
}
}
}