| 10 | namespace crypto { |
| 11 | |
| 12 | EncryptionKey::EncryptionKey() : encryptionKey(generateRandomEncryptionKey()) { |
| 13 | // Intentionally left empty. |
| 14 | } |
| 15 | |
| 16 | EncryptionKey::EncryptionKey(QByteArray const& encryptionKeyBytes) : encryptionKey(encryptionKeyBytes) { |
| 17 | if (encryptionKeyBytes.size() != getSizeOfEncryptionKeyInBytes()) { |