KotlinCrypto / secure-random

A Kotlin Multiplatform library for obtaining cryptographically secure random data from system sources
Apache License 2.0
25 stars 3 forks source link

`wasmWasi` should clear its array before dropping #15

Closed 05nelsonm closed 6 months ago

05nelsonm commented 6 months ago

Currently when wasmWasi implementation obtains random bytes, it copies them over to the provided ByteArray and then drops the reference. While it is copying them over, it should also zero out the temporary array.