1
0
Fork 0
forked from External/grumble
Commit graph

28 commits

Author SHA1 Message Date
Mikkel Krautz
cac5952847 Fix a few typos in pkg/cryptstate.
Thanks to @GEverding for mentioning this in mumble-voip/grumble#9
2016-10-15 19:22:00 +02:00
Mikkel Krautz
b871d9c092 pkg/cryptstate: remove NULL crypto mode.
It's not too sensible to have a NULL mode in the first place,
and the CryptState code expects non-0 IVs and keys.

Drop it.
2016-10-15 19:18:08 +02:00
Mikkel Krautz
533283bd53 pkg/cryptstate: unexport DecryptHistorySize. 2012-12-09 13:22:39 +01:00
Mikkel Krautz
5d9df8383a pkg/cryptstate: add XSalsa20-Poly1305 to the SupportedModes list. 2012-12-09 13:14:45 +01:00
Mikkel Krautz
cbe2ffea3d pkg/cryptstate: add NULL crypto mode. 2012-12-09 12:58:59 +01:00
Mikkel Krautz
edf98fa75f pkg/cryptstate: add support for XSalsa20-Poly1305 crypto mode. 2012-12-09 12:44:33 +01:00
Mikkel Krautz
cd363d197e grumble: allow for other ciphers than OCB2-AES128. 2012-12-08 23:50:32 +01:00
Mikkel Krautz
eacf839182 pkg/cryptstate: add Overhead(); use it internally. 2012-12-08 23:39:19 +01:00
Mikkel Krautz
56b174d983 pkg/cryptstate: make cryptstate independent of the chosen crypto mode. 2012-12-08 23:34:42 +01:00
Mikkel Krautz
154b7938d3 pkg/cryptstate, pkg/cryptstate/ocb2: move OCB2 tag verification into ocb2.Decrypt. 2012-12-08 22:56:05 +01:00
Mikkel Krautz
2b12adc014 pkg/cryptstate: get rid of ocb2.NonceSize hard-coding. 2012-12-08 22:39:24 +01:00
Mikkel Krautz
33a7e1304d pkg/cryptstate: cleanups for multiple crypto modes. 2012-12-08 22:25:58 +01:00
Mikkel Krautz
cabe380244 grumble: add support for crypto mode negotiation. 2012-12-08 22:10:21 +01:00
Mikkel Krautz
d6b71c5553 grumble, pkg/cryptstate: make it possible to use CryptState as a non-pointer member. 2012-12-02 12:59:30 +01:00
Mikkel Krautz
5c54c17247 pkg/cryptstate: use new OCB2 consts for array definitions. 2012-12-01 17:32:24 +01:00
Mikkel Krautz
0f058d3b76 pkg/cryptstate, pkg/cryptstate/ocb2: split OCB2 implementation out into its own package. 2012-12-01 11:42:02 +01:00
Mikkel Krautz
eb64671d5a pkg/cryptstate: use passed-in nonce in OCBEncrypt. 2012-12-01 11:16:02 +01:00
Mikkel Krautz
dd76f22eb7 grumble, pkg/*: go fmt. 2012-11-18 17:59:07 +01:00
Mikkel Krautz
fee67fa856 More Go 1 updates. 2012-03-06 01:07:10 +01:00
Mikkel Krautz
e46a65109f Update for Go 1. 2012-02-06 22:17:42 +01:00
Mikkel Krautz
71b8314c2e Major gofix run. 2011-11-08 15:05:13 +01:00
Mikkel Krautz
e15ce28618 cryptstate: s/AESBlockSize/aes.BlockSize, rename to grumble/cryptstate. 2011-05-14 18:50:07 +02:00
Mikkel Krautz
a2c9a15386 Server-side crypt resync. Properly store ping stats. 2011-05-13 22:26:15 +02:00
Mikkel Krautz
d535cbc6fa Grumble gofmt run. 2011-05-13 15:46:45 +02:00
Benjamin Jemlich
b8d8f71780 Small cleanups in cryptstate 2011-01-05 06:34:47 +08:00
Benjamin Jemlich
4594562304 Fix a bug in the cryptstate implementation
Iterating from 1 to AES_BLOCK_SIZE and not using the value in the loop is probably not correct.
2011-01-05 06:34:46 +08:00
Mikkel Krautz
0bf84fb3f3 Use new crypto API. 2010-11-20 16:11:41 +01:00
Mikkel Krautz
73ab596ae6 Throw the code out there. :) 2010-09-20 15:14:22 +02:00