Commit graph

29 commits

Author SHA1 Message Date
Kamil Kisiel
8e98dd730f Merge pull request #19 from dchest/testinvalid
Add test for decoding some invalid cookies.
2015-03-27 08:58:05 -07:00
Dmitry Chestnykh
2e358078af Add test for decoding some invalid cookies. 2015-03-27 16:48:51 +01:00
Kamil Kisiel
ab638a3cc2 Revert "Improve Decode against timing attacks"
This reverts commit 1be1b717b7.
2015-03-27 08:31:10 -07:00
Kamil Kisiel
3609df1fc5 Revert "Commenting retErr and setErr in Decode"
This reverts commit c7a729999d.
2015-03-27 08:31:09 -07:00
Kamil Kisiel
5d52df3629 Revert "A few more comments on decoding."
This reverts commit a54a6f264e.
2015-03-27 08:31:06 -07:00
Kamil Kisiel
a54a6f264e A few more comments on decoding. 2015-03-17 16:36:01 -07:00
Kamil Kisiel
1dea542d12 Merge pull request #16 from elithrar/patch-1
Removed redundant calls to len()
2015-03-17 16:33:49 -07:00
Kamil Kisiel
fec4f16574 Merge pull request #15 from abduelhamit/master
Improve Decode against timing attacks
2015-03-17 16:33:24 -07:00
Matt Silverlock
d8773d3e66 Removed redundant calls to len()
subtle.ConstantTimeCompare already undertakes a length check internally.
2015-03-18 07:06:26 +08:00
Abdülhamit Yilmaz
c7a729999d Commenting retErr and setErr in Decode 2015-03-17 23:33:39 +01:00
Abdülhamit Yilmaz
1be1b717b7 Improve Decode against timing attacks 2015-03-17 20:33:51 +01:00
Abdülhamit Yilmaz
79d187a212 Add TestMissingKey 2015-03-17 20:13:00 +01:00
Abdülhamit Yilmaz
5ce09b9e8f Omit unnecessary elses
See http://golang.org/doc/effective_go.html#else
2015-03-17 19:25:18 +01:00
Kamil Kisiel
5f171f4232 Fix broken error message on invalid MAC.
Fixes #13.
2015-02-02 22:33:18 -08:00
Kamil Kisiel
f0559d009e Merge pull request #11 from dominikh/master
say that we create a key of a certain length, not strength
2014-11-20 09:07:42 -08:00
Dominik Honnef
0ff019e2d6 say that we create a key of a certain length, not strength 2014-11-20 16:05:54 +01:00
Kamil Kisiel
1b0c7f6e9a Merge pull request #7 from hjr265/master
Expose ErrMacInvalid
2014-04-09 13:11:00 +02:00
Mahmud Ridwan
80d12bdee4 Merge branch 'fix-6' 2014-04-09 09:50:51 +06:00
Mahmud Ridwan
2cceedbcce Expose ErrMacInvalid; fixes gorilla/securecookie#6 2014-04-09 09:50:10 +06:00
Kamil Kisiel
972f32923f Add go 1.2 to travis.yml 2013-12-04 23:16:17 -08:00
Kamil Kisiel
d366934a29 Add Travis badge 2013-11-30 13:27:44 -08:00
Kamil Kisiel
6e2523a6cb Add travis.yml 2013-11-30 13:25:48 -08:00
Kamil Kisiel
155134204c Better errors for {En,De}codeMulti. 2013-10-17 10:33:57 -07:00
Kamil Kisiel
6186150e83 Merge pull request #2 from jtdowney/master
Fix description for Encode
2013-01-01 23:06:34 -08:00
John Downey
d77f52d17e Fix description for Encode 2012-12-31 23:49:49 -06:00
moraes
74772485ec Use the same MultiError version from the App Engine SDK. 2012-10-13 14:05:18 -03:00
moraes
aaee2300ed Better errors for EncodeMulti and DecodeMulti. Closes #1. 2012-10-13 04:34:19 -03:00
moraes
f34e8230f6 Initial files. 2012-10-03 01:53:51 -03:00
rodrigo moraes
18fe3372e2 Initial commit 2012-10-02 14:33:33 -07:00