2 #ifndef SSP21_CRYPTOSUITE_H 3 #define SSP21_CRYPTOSUITE_H 5 #include "ssp21/crypto/gen/NonceMode.h" 6 #include "ssp21/crypto/gen/HandshakeEphemeral.h" 7 #include "ssp21/crypto/gen/HandshakeHash.h" 8 #include "ssp21/crypto/gen/HandshakeKDF.h" 9 #include "ssp21/crypto/gen/SessionMode.h" 25 nonce_mode(nonce_mode),
26 handshake_ephemeral(handshake_ephemeral),
27 handshake_hash(handshake_hash),
28 handshake_kdf(handshake_kdf),
29 session_mode(session_mode)
SSP21-cpp main namespace.
new nonce must strictly be equal to last nonce plus one
Use HKDF with HMAC-SHA256.
x25519 algorithm public key
HMAC-SHA256 truncated to 16 bytes.