D15510: Introduce HKDF
David Faure
noreply at phabricator.kde.org
Sun Oct 7 19:29:40 BST 2018
dfaure requested changes to this revision.
dfaure added inline comments.
This revision now requires changes to proceed.
INLINE COMMENTS
> qca_basic.h:1081
>
> +class QCA_EXPORT HKDF : public Algorithm
> +{
Missing class documentation.
Missing \since tag.
> qca-botan.cpp:234
> +public:
> + BotanHKDFContext( const QString &hashName, QCA::Provider *p, const QString &type) : QCA::HKDFContext(p, type)
> + {
remove space after '('
> qca-botan.cpp:250
> +
> + Context *clone() const
> + {
override?
> qca-botan.cpp:261
> + m_hkdf->kdf(key.data(), keyLength, (const Botan::byte*)secret.data(), secret.size(),
> + (const Botan::byte*)salt.data(), salt.size(), (const Botan::byte*)info.data(), info.size());
> + QCA::SecureArray retval(QByteArray((const char*)key.data(), key.size()));
I'm allergic to C casts, after seeing them misused. Would static_cast work here? Otherwise reinterpret_cast?
REPOSITORY
R486 QCA Library
REVISION DETAIL
https://phabricator.kde.org/D15510
To: volkov, iromanov, sitter, #frameworks, dfaure
Cc: dfaure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20181007/047fb207/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list