MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / generateKey

Function generateKey

libminifi/src/utils/EncryptionUtils.cpp:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

getEncryptionKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected