Commit Graph

  • b2cae9b389
    Add generateKeyPairFromPrivateKey master v1.0.3 Richard Ramos 2022-12-14 12:11:33 -04:00
  • 815c0ed47c
    Expose Hash, RS, H and add ad to Encrypt funcs Richard Ramos 2022-12-14 12:10:23 -04:00
  • b14b0d0806
    Change project org Richard Ramos 2022-10-27 09:07:46 -04:00
  • 166d5e87be
    Deduplicate WriteMessage content Richard Ramos 2022-10-23 09:01:24 -04:00
  • da2a9c978d
    Upgrade to go 1.17 and rename module for easier integration Richard Ramos 2022-10-23 09:00:46 -04:00
  • a75b6f240d
    chore: change project org v1.0.2 Richard Ramos 2022-10-27 09:07:46 -04:00
  • 4fcac0b407
    refactor: deduplicate WriteMessage content v1.0.1 Richard Ramos 2022-10-23 09:01:24 -04:00
  • d794400c8f
    chore: upgrade to go 1.17 and rename module for easier integration Richard Ramos 2022-10-23 09:00:46 -04:00
  • 736a742127
    Add WriteMessageAndGetPK with parameter to return list of handshake messages v1.0.1-handshakeMessages Richard Ramos 2022-06-26 09:01:10 -04:00
  • d803f5c4b0 Add SetNonce to CipherState. David Fifield 2021-10-03 16:05:55 -06:00
  • 2499bf1bad Fix potential DoS in Decrypt v1.0.0 Jonathan Rudenberg 2021-04-22 13:09:18 -04:00
  • 927fa1b4bb Add ErrMaxNonce before n overflows Jonathan Rudenberg 2021-04-20 18:02:02 -04:00
  • 0d4f803fc7 Return error from CipherSuite.Encrypt Jonathan Rudenberg 2021-04-20 16:35:37 -04:00
  • fc2bb37e28
    Use X25519 instead of ScalarMult for safety (#43) Jonathan Rudenberg 2021-04-22 13:00:17 -04:00
  • 8554521d17 Fix lint complaints Jonathan Rudenberg 2021-04-20 16:54:45 -04:00
  • 8aa584aaa2 Update README Jonathan Rudenberg 2021-04-20 16:48:01 -04:00
  • 59221ed642 Add GitHub Actions config Jonathan Rudenberg 2021-04-20 16:47:47 -04:00
  • 4bdb43be31 Add go.mod Nate Brown 2021-03-24 21:32:17 -05:00
  • ecaaffdb65 go fmt pass Nate Brown 2021-03-24 21:34:22 -05:00
  • 5a73e02a33 Roll back static key in the face of failure Nate Brown 2021-03-24 20:23:37 -05:00
  • 2492fe189a fixing XXfallback (#29) Gerardo Di Giacomo 2018-03-26 20:05:43 -07:00
  • d1c47b3565 added XXfallback handshake, getters for local and peer ephemeral (#28) Gerardo Di Giacomo 2018-03-26 14:13:16 -07:00
  • 953535c65f Add a getter for handshake msgIdx (#27) Nathan Brown 2018-03-08 12:40:28 -08:00
  • 01638cb52d
    Revert "added GetNonce and SetNonce following Noise revision 33 (aimed at UDP-based protocols) (#25)" (#26) Jonathan Rudenberg 2018-01-24 15:22:32 -05:00
  • 0530451f2f added GetNonce and SetNonce following Noise revision 33 (aimed at UDP-based protocols) (#25) David Wong 2018-01-24 18:44:44 +00:00
  • 7e398aa738 Replace panics with errors (#24) Ryan Huber 2018-01-09 20:48:36 -06:00
  • f9b5bb75e2 Use HTTPS for Noise website Jonathan Rudenberg 2017-12-28 18:13:51 -05:00
  • fc3a9f3b3c Removed the XR pattern and added the initiator check in WriteMessage and ReadMessage according to spec (#22) David Wong 2017-09-28 00:37:07 +01:00
  • c49e9fa15d Merge pull request #20 from mimoo/mimoo-patch-1 Jonathan Rudenberg 2017-09-22 09:30:08 -04:00
  • a80962bd80 added golang's blake2b implementation David Wong 2017-09-22 14:18:33 +01:00
  • 01cefa3e20 Merge pull request #15 from Katzenpost/add_rekey.1 Jonathan Rudenberg 2017-07-11 13:14:38 -04:00
  • 39e9953cb9 Add the Rekey feature as described in spec David Stainton 2017-07-11 17:07:19 +00:00
  • b519438a73 gofmt David Stainton 2017-07-11 17:07:04 +00:00
  • c90ff62230 Merge pull request #11 from zx2c4/psk-rework Jonathan Rudenberg 2017-05-15 09:59:50 -04:00
  • bac779d5eb vectorgen: create even more vector combinations Jason A. Donenfeld 2017-05-15 13:30:16 +02:00
  • 167d176148 noise_test: update psk tests Jason A. Donenfeld 2017-05-15 12:30:36 +02:00
  • 1dc278ed6c noise_test: use 32-byte psk Jason A. Donenfeld 2017-05-15 12:16:54 +02:00
  • 5d56e55c10 vector_test: update to new psk mode Jason A. Donenfeld 2017-05-15 12:10:54 +02:00
  • 3bc46b50a9 vectorgen: generate psk test vectors Jason A. Donenfeld 2017-05-15 11:48:44 +02:00
  • 1b34a57a83 vectorgen: use 32-byte psk Jason A. Donenfeld 2017-05-15 11:29:02 +02:00
  • 6a0d1cad82 psk mode: update for redesign Jason A. Donenfeld 2017-05-11 15:56:03 +02:00
  • 6902797927 Use faster ChaCha20-Poly1305 implementation from golang.org/x/crypto Sergey Matveev 2017-01-08 11:55:28 +03:00
  • ab15322ad1 Use faster BLAKE2s implementation from golang.org/x/crypto Sergey Matveev 2017-01-08 11:49:27 +03:00
  • c01f33c418 Nicely formatted long structs, for reading easiness Sergey Matveev 2016-12-29 11:21:14 +03:00
  • 7e06e15681 Ensure that the handshake state doesn’t get lost if decryption fails Jonathan Rudenberg 2016-07-14 21:27:05 -04:00
  • bc8ae75ea2 Use optimized BLAKE2b implementation Jonathan Rudenberg 2016-07-14 12:55:09 -04:00
  • 9d48b3b0f8 Add PeerStatic method to HandshakeState Jonathan Rudenberg 2016-07-13 19:53:24 -04:00
  • b16acbb322 Add method to get channel binding Jonathan Rudenberg 2016-07-13 15:28:03 -04:00
  • ad132441f7 Update package import in vectorgen Jonathan Rudenberg 2016-07-12 22:58:03 -04:00
  • f63da97e27 Hide cipher functions from docs Jonathan Rudenberg 2016-07-12 22:56:22 -04:00
  • 9d237a2bfc Fix docs typos Jonathan Rudenberg 2016-07-12 22:45:26 -04:00
  • ca5f81ebf0 Improve Config docs Jonathan Rudenberg 2016-07-12 22:44:26 -04:00
  • 7f7abf1289 Add travis config Jonathan Rudenberg 2016-07-12 22:23:58 -04:00
  • 01ee159114 Add README and CONTRIBUTING docs Jonathan Rudenberg 2016-07-12 22:22:06 -04:00
  • 8035b36042 Add docs Jonathan Rudenberg 2016-07-12 22:20:06 -04:00
  • d4248be25d Add method to get Cipher from CipherState Jonathan Rudenberg 2016-07-12 21:32:38 -04:00
  • 9a626dbd0b Unexport SymmetricState Jonathan Rudenberg 2016-07-12 21:25:40 -04:00
  • c0dae35557 Implement XR pattern Jonathan Rudenberg 2016-04-03 11:35:23 -04:00
  • 3512ab15d1 Purge _E handshake patterns Jonathan Rudenberg 2016-04-03 11:19:13 -04:00
  • 77186df246 Add encryption messages to vectors and vectors from cacophony Jonathan Rudenberg 2015-11-16 22:08:16 -05:00
  • 82839267d3 Copy PeerEphemeral to avoid buffer corruption Jonathan Rudenberg 2015-11-16 22:07:11 -05:00
  • 3881dc9640 Add test vector generator and tester Jonathan Rudenberg 2015-11-16 20:57:02 -05:00
  • 4db302538c Update vectors from screech Jonathan Rudenberg 2015-11-16 16:40:09 -05:00
  • b11a33c4ae Add handshake Config struct Jonathan Rudenberg 2015-11-16 13:09:47 -05:00
  • d760bc3534 MixPresharedKey and new vectors Jonathan Rudenberg 2015-11-16 11:37:33 -05:00
  • 0e9c47ad19 Implement NoisePSK revision 2 Jonathan Rudenberg 2015-11-15 17:18:33 -05:00
  • f7b9b28336 Add checks from revision 18 Jonathan Rudenberg 2015-11-15 12:56:24 -05:00
  • 14af5e1fc8 Initial implementation Jonathan Rudenberg 2015-11-15 12:49:59 -05:00
  • dd1b7db1be Add test vectors from stouset old Jonathan Rudenberg 2014-07-30 22:21:33 -07:00
  • 66780e1945 Working pipe implementation Jonathan Rudenberg 2014-07-21 23:21:23 -07:00
  • 03fb1d0520 Add default rand.Reader for GenerateKey Jonathan Rudenberg 2014-07-21 23:21:14 -07:00
  • 36a0b41364 Be defensive about short ciphertexts Jonathan Rudenberg 2014-07-21 23:20:44 -07:00
  • 23f8d99470 Remove four allocs by embedding chacha20.Cipher Jonathan Rudenberg 2014-07-14 22:57:30 -07:00
  • 8f09b6f6b7 Skip first block when rekeying Jonathan Rudenberg 2014-07-13 23:43:55 -07:00
  • d3253d3baa Update Noise255 to match changes in spec Jonathan Rudenberg 2014-07-13 23:27:31 -07:00
  • e0ed980c97 Update authtext to match noise spec changes Jonathan Rudenberg 2014-07-13 23:00:24 -07:00
  • fe90ef5cb4 Make sure authtext is the last arg for consistency Jonathan Rudenberg 2014-07-13 22:17:13 -07:00
  • 2c83ac5507 Add first compatibility test Jonathan Rudenberg 2014-07-12 16:14:38 -07:00
  • 84d73f6f89 Add BodyLen, rename EncryptedLen to BoxLen Jonathan Rudenberg 2014-07-10 22:14:51 -07:00
  • 0ab5aed0b2 Move KDFNum to method param Jonathan Rudenberg 2014-07-06 22:53:19 -07:00
  • 33aa69fc14 Fix reversed extra and info Jonathan Rudenberg 2014-07-06 14:40:04 -07:00
  • 84c8891ca7 KDFNum is a uint8 Jonathan Rudenberg 2014-07-06 12:58:09 -07:00
  • e36eb5dddd Refactor to prepare for pipes implementation Jonathan Rudenberg 2014-07-06 09:45:39 -07:00
  • 39d629fcc7 Use scratch buffer to build plaintext Jonathan Rudenberg 2014-07-05 20:46:15 -07:00
  • 67a4951c9d Fix KDF Jonathan Rudenberg 2014-07-05 20:36:32 -07:00
  • 0706221ff8 Untangle chaining variable and cipher context Jonathan Rudenberg 2014-07-05 00:26:00 -07:00
  • a98f07ba16
    Remove 2 allocs by reusing CipherContext Jonathan Rudenberg 2014-07-03 22:54:08 -07:00
  • 6650461c89
    Remove 2 allocs by using buffer for keystream Jonathan Rudenberg 2014-07-03 22:46:30 -07:00
  • 908c2ac8a2
    Remove 9 allocs by using a buffer for key derivation Jonathan Rudenberg 2014-07-03 22:29:21 -07:00
  • e8ef3d40dd
    Remove an alloc by pre-allocating the dest slice Jonathan Rudenberg 2014-07-03 21:54:44 -07:00
  • 903cbf641c
    Fix authData comment Jonathan Rudenberg 2014-07-03 21:28:18 -07:00
  • b5b487a2fa
    Remove plaintextLen from mac args Jonathan Rudenberg 2014-07-03 21:27:05 -07:00
  • 8a2dc23c1f
    Add encrypt benchmark Jonathan Rudenberg 2014-07-03 21:26:45 -07:00
  • f585254b83
    Add additional roundtrip to test Jonathan Rudenberg 2014-07-03 21:12:06 -07:00
  • 63cdf72db2
    Somehow this works Jonathan Rudenberg 2014-07-02 23:48:49 -07:00
  • 16ad7c857e
    Noise255 Jonathan Rudenberg 2014-06-17 23:29:23 -07:00
  • 8c41d1b57c
    Add LICENSE Jonathan Rudenberg 2014-06-16 18:25:31 -07:00
  • 0fb25e45a1
    Start sketching Jonathan Rudenberg 2014-06-15 21:33:00 -07:00