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

Method generateKey

src/database/internal/ExternalMediaFileStorage.cpp:222–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220 }
221
222 QByteArray ExternalMediaFileStorage::generateKey() const {
223 QByteArray keyBytes(cryptoGetKeySize(), '\0');
224 crypto_aead_xchacha20poly1305_ietf_keygen(reinterpret_cast<unsigned char*>(keyBytes.data()));
225 return keyBytes;
226 }
227
228 QByteArray ExternalMediaFileStorage::generateNonce() const {
229 QByteArray nonceBytes(cryptoGetNonceSize(), '\0');

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected