sogo: master 2e0fc3ca

Author Committer Branch Timestamp Parent
the_nic the_nic master 2020-05-03 13:17 master 8f7df73a
Changeset

feat(core): Add PBKDF2 support

Extend NSData+Crypto to support PBKDF2 with SHA1 HMAC as dovecot
is using it since v2.3.0.

The format hashed passwords is {PBKDF2}$1$<salt>$<rounds>$<hashed value in hex>

The implementation of pkcs#5 PBKDF2 is taken from openbsd (with minor
adjustments) as OpenSSL and GnuTLS would require quite new versions to
support this hash.

mod - Documentation/SOGoInstallationGuide.asciidoc Diff File
mod - SoObjects/SOGo/GNUmakefile Diff File
mod - SoObjects/SOGo/NSData+Crypto.h Diff File
mod - SoObjects/SOGo/NSData+Crypto.m Diff File
add - SoObjects/SOGo/pkcs5_pbkdf2.c Diff File
add - SoObjects/SOGo/pkcs5_pbkdf2.h Diff File
mod - Tests/Unit/TestNSString+Crypto.m Diff File