mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
okular: add TODO for OOO generator [ci skip]
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d4e57e9877
commit
ea70ca3b05
1 changed files with 3 additions and 2 deletions
|
@ -157,6 +157,7 @@ Manifest::Manifest( const QString &odfFileName, const QByteArray &manifestData,
|
|||
{
|
||||
#ifdef HAVE_GCRPYT
|
||||
// the minimum that supports SHA256
|
||||
// TODO: review minimum version requirement once the decryptor implementation is working
|
||||
m_init = gcry_check_version("1.1.8");
|
||||
#endif
|
||||
// I don't know why the parser barfs on this.
|
||||
|
@ -317,7 +318,7 @@ void Manifest::checkPassword( ManifestEntry *entry, const QByteArray &fileData,
|
|||
unsigned char keybuff[algorithmlength];
|
||||
::memset( keybuff, 0, algorithmlength * sizeof(unsigned char) );
|
||||
const QByteArray salt = entry->salt();
|
||||
// password should be UTF-8 encoded
|
||||
// password must be UTF-8 encoded
|
||||
const QByteArray utf8pass = m_password.toUtf8();
|
||||
gpg_error_t gcrypterror = gcry_kdf_derive(utf8pass.constData(), utf8pass.size(),
|
||||
GCRY_KDF_PBKDF2, gcryptkeyalgorithm,
|
||||
|
@ -385,7 +386,7 @@ void Manifest::checkPassword( ManifestEntry *entry, const QByteArray &fileData,
|
|||
return;
|
||||
}
|
||||
|
||||
// buffer size must be multiple of the hashing algorithm block size
|
||||
// buffer size must be multiple of the key algorithm block size
|
||||
const unsigned int decbufflen = fileData.size() * algorithmlength;
|
||||
unsigned char decbuff[decbufflen];
|
||||
::memset( decbuff, 0, decbufflen * sizeof(unsigned char) );
|
||||
|
|
Loading…
Add table
Reference in a new issue