Adriano
4b99fa18b3
go lint
2019-07-11 10:30:32 -07:00
Adrian Utrilla
97ce8a62c9
Fix empty comments not being decrypted correctly ( #344 )
...
SOPS failed to decrypt empty comments before after they were encrypted because they
would look like:
`#ENC[AES256_GCM,data:,iv:NVQvG25goSE7xi6U/QjRNtJBwr/VfChezSptI8GFsQk=,tag:yyYIW/hiIZ1qK1GEo8vHpA==,type:comment]`
Note the empty "data" value.
SOPS would fail to decrypt those and show them to the user "encrypted" when
decrypting the file.
2018-05-08 14:09:11 -04:00
Adrian Utrilla
20046c1b48
Merge branch 'master' into logging
2017-09-16 17:59:00 -07:00
Adrian Utrilla
e6f46513dd
Merge branch 'master' into encrypt-comments
2017-09-15 10:28:26 -07:00
Adrian Utrilla
3811698f54
Encapsulate stash inside cipher
2017-09-12 22:10:53 -07:00
Adrian Utrilla
08a4c7e657
Add documentation to all main packages
2017-09-12 20:01:12 -07:00
Adrian Utrilla
7d6597b60c
Change path to additionalData in Cipher Encrypt and Decrypt
...
functions
While the path inside the tree is commonly used as additional data for
AES ciphers, this is not always the case, so the generic name is better.
2017-09-11 16:59:36 -07:00
Adrian Utrilla
55c7174713
Use logrus features for better logging
2017-09-07 10:49:27 -07:00
Adrian Utrilla
17d5d6b65c
Move all loggers to logrus
2017-09-06 17:36:39 -07:00
Adrian Utrilla
1b09444742
Use log.Print instead of fmt.Print everywhere
2017-08-29 12:15:25 -07:00
Adrian Utrilla
cdc86da1f3
Encrypt comments
2017-08-15 17:38:50 -07:00
Adrian Utrilla
486a9c8b4c
Revert "Fix IV size and constant-time MAC comparison"
2017-08-08 18:18:26 -07:00
Neil Madden
917d581b79
Use standard 96-bit IV for AES-GCM
2017-08-04 10:57:08 +01:00
Adrian Utrilla
f52dc0008d
Do not encrypt and decrypt empty values
...
Fixes #138
2016-10-28 16:50:14 +02:00
Adrian Utrilla
71d4a3cfd2
Added go.mozilla.org imports
...
Fixes #122
2016-10-27 18:09:19 +02:00
Adrian Utrilla
aac08d7c9b
Use the same formatting for floats and booleans as the Python version.
...
Fixes #111
2016-09-08 13:56:00 -07:00
Adrian Utrilla
0efff5627b
Fixed failing tests
2016-08-29 14:17:06 -07:00
Adrian Utrilla
5441214e65
Reuse IVs if the plaintext doesn't change
2016-08-29 14:00:24 -07:00
Adrian Utrilla
b8cb6cf016
Fixed failing tests
2016-08-24 16:48:56 -07:00
Adrian Utrilla
35b90eb90e
Added documentation for AES cipher
2016-08-24 15:46:49 -07:00
Adrian Utrilla
341da25219
Added DataKeyCipher interface
2016-08-24 14:38:05 -07:00
Adrian Utrilla
2bc7c0a08f
Improved variable name
2016-08-24 12:52:10 -07:00
Adrian Utrilla
6ce4b317f2
Use a constant for GCM nonce size
2016-08-24 12:50:35 -07:00
Adrian Utrilla
c9d63a838e
Fixed golint issues
2016-08-24 10:29:28 -07:00
Adrian Utrilla
3e6d0cd128
AES decryptor now takes strings as input
2016-08-23 13:19:33 -07:00
Adrian Utrilla
e885735260
aes decryptor now takes []byte keys
2016-08-23 12:49:18 -07:00
Adrian Utrilla
80eeaf13ab
Better error messages for AES backend
2016-08-22 18:28:03 -07:00
Adrian Utrilla
1767b0375d
Moved AES regex outside of function so it's only compiled once
2016-08-22 18:15:00 -07:00
Adrian Utrilla
3733347416
Added decryptor test improvements
2016-08-22 18:10:13 -07:00
Adrian Utrilla
e52e77dc51
Renamed decryptor package to aes
2016-08-22 12:38:30 -07:00