Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanek Bevendorff <janek@jbev.net>2017-12-26 23:55:08 +0300
committerJanek Bevendorff <janek@jbev.net>2017-12-27 00:37:45 +0300
commit901bf622132f09704cc153636db9976453e52544 (patch)
treedca4698f6e0d7dc21ea03f727f1245c1e09e9ec0 /src/keys/FileKey.h
parentac6a9e769688f909b232c377120f75041a2f2c1d (diff)
Generate random 128-byte stream instead of legacy XML format when creating key files
Add API documentation for FileKey class Resolves #1325
Diffstat (limited to 'src/keys/FileKey.h')
-rw-r--r--src/keys/FileKey.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/keys/FileKey.h b/src/keys/FileKey.h
index 7a9b1caf0..af324e530 100644
--- a/src/keys/FileKey.h
+++ b/src/keys/FileKey.h
@@ -1,4 +1,5 @@
/*
+* Copyright (C) 2017 KeePassXC Team <team@keepassxc.org>
* Copyright (C) 2011 Felix Geyer <debfx@fobos.de>
*
* This program is free software: you can redistribute it and/or modify
@@ -24,16 +25,15 @@
class QIODevice;
-class FileKey : public Key
+class FileKey: public Key
{
public:
- FileKey();
bool load(QIODevice* device);
bool load(const QString& fileName, QString* errorMsg = nullptr);
- QByteArray rawKey() const;
- FileKey* clone() const;
- static void create(QIODevice* device);
- static bool create(const QString& fileName, QString* errorMsg = nullptr);
+ QByteArray rawKey() const override;
+ FileKey* clone() const override;
+ static void create(QIODevice* device, int size = 128);
+ static bool create(const QString& fileName, QString* errorMsg = nullptr, int size = 128);
private:
bool loadXml(QIODevice* device);