Procs
proc generate(rng: Rng; T: type): T:type {.noinit, ...raises: [].}
- Create a new instance of T filled with random data. Source Edit
proc generateBytes(rng: Rng; n: int): seq[byte] {....raises: [], tags: [], forbids: [].}
- Source Edit
proc newBearSslRng(drbg: ref HmacDrbgContext): Rng {....raises: [], tags: [], forbids: [].}
-
Wrap an existing BearSSL HMAC-DRBG context.
This is a temporary compatibility API for the BearSSL to BoringSSL migration. New code should use newRng.
Source Edit