On Fri, Apr 23, 2021 at 4:20 PM Jonathan Wood <jw...@softcircuits.com> wrote:
>
> Yes, I see it was updated now. I seem to be having a hard time though. Are 
> there any examples that show 1) encrypting non-string data (BYTE*), and 2) 
> encrypting using a password?

For (1), a StringSource handles both char* and byte*. See
https://www.cryptopp.com/wiki/StringSource.

For (2), you generally want a KDF or password-based KDF. See
https://www.cryptopp.com/wiki/KeyDerivationFunction.

I think the state of the art for {PB}KDF is Krawczyk's HKDF. The HKDF
page shows you how to derive independent keys using HKDF. See
https://www.cryptopp.com/wiki/HKDF.

Going beyond simple key derivation and encryption, you can achieve
very good security with an Integrated Encryption Scheme (IES). IES is
IND-CCA2, which is a strong notion of security. See
https://www.cryptopp.com/wiki/Integrated_Encryption_Scheme.

Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cryptopp-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8k2jWLvLs9uGJQZjehnaN8mBrsBSgQHPOL5muRGLgv2vw%40mail.gmail.com.

Reply via email to