| 40 | } |
| 41 | |
| 42 | Bytes generateKey() { |
| 43 | Bytes key(EncryptionType::keyLength()); |
| 44 | crypto_secretbox_keygen(key.data()); |
| 45 | return key; |
| 46 | } |
| 47 | |
| 48 | Bytes randomBytes(size_t num_bytes) { |
| 49 | Bytes random_bytes(num_bytes); |
no outgoing calls
no test coverage detected