Encryption - AES 256 bit

This commit is contained in:
Jakub Melka
2021-05-31 17:43:01 +02:00
parent ea555fe540
commit 35eeccb42d
3 changed files with 99 additions and 10 deletions

View File

@ -427,6 +427,11 @@ public:
/// algorithm. If algorithm is invalid or None, zero is returned.
/// \param algorithm Algorithm
static int getRevisionFromAlgorithm(Algorithm algorithm);
/// Generates array of random bytes with given size, using random number generator.
/// \param generator Random number generator
/// \param size Target size
static QByteArray generateRandomByteArray(QRandomGenerator& generator, int size);
};
} // namespace pdf