P2p crypto - #1
Open
nwct wants to merge 100 commits into
Open
Conversation
- introduce new crypto layer - introduce security association (key, context) into peer_info - set up dummy keys until we have key negotiation and derivation You need to install gnutls >2.99 into n2nv2/gnutls, if you don't have it installed on your system.
- introduce symmetric p2p packet encryption and authentication - key are constant zero
Conflicts: n2n_v2/crypto.c n2n_v2/crypto.h n2n_v2/edge.c n2n_v2/n2n.c n2n_v2/n2n.h
- AES256 in GCM mode seems not to be supported by gnutls right now - improved debug output
- fix peer lookup for SA lookup - fix sending non-encrypted packets
traffic encryption seems to provied basic functionality
Conflicts: .gitignore n2n_v2/crypto.c n2n_v2/crypto.h n2n_v2/edge.c n2n_v2/n2n.c n2n_v2/n2n.h
- we use HKDF, a scheme based on HMAC - added some references
- introduce a session key derivation scheme called HKDF, which is designed for derivation of symmetric keys out of DH shared secrets - changed overhead defines to prefix AEAD_
- introduce the ECDH key exchange - works in principle, but is untested in this form
- new error control (macro) - move aes/session/SA functions out of core
- wipe keys - fix length check
- move master keys to hmac.c - compute and verify HMAC tags - doc: handshake packets are recognized by the special SPI zero
- dependencies - special SPI zero
finished outline of packet decoding replaced underscores in packet types with hyphens for consistency
- removed obsolete hanshake syn-ack section - changed 0 denotes handshake to 0 denotes non-payload
and: libgcrypt version check improved, few comments added/changed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.