MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / generateRandomEncryptionKey

Method generateRandomEncryptionKey

src/crypto/EncryptionKey.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 QByteArray EncryptionKey::generateRandomEncryptionKey() {
31 QByteArray data(getSizeOfEncryptionKeyInBytes(), 0x00);
32 randombytes_buf(data.data(), getSizeOfEncryptionKeyInBytes());
33
34 return data;
35 }
36
37 unsigned char const* EncryptionKey::getEncryptionKeyAsCharPtr() const {
38 return reinterpret_cast<unsigned char const*>(encryptionKey.data());

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected