1
0
Fork 0
mirror of https://github.com/Luzifer/go-openssl.git synced 2024-12-20 10:51:17 +00:00
Commit graph

12 commits

Author SHA1 Message Date
77069a53d0
Fix linter errors, simplify tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2023-08-22 14:13:51 +02:00
3d3b55e02b
Add pre-defined generators and compatibility tests for SHA384 and SHA512
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2020-06-13 18:12:42 +02:00
0d93c15cab
Breaking: Implement PBKFD2 key derivation (#18) 2020-06-13 15:29:46 +02:00
a261c590f2
Test: Sort tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-04-29 16:49:10 +02:00
32b48c865b
Test: Simplify / cleanup test file
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-04-29 16:49:06 +02:00
Owen McGill
9b5d475a0b Add encrypt/decrypt without base64 encoding
The DecryptBinaryBytes, EncryptBinaryBytes* methods allow the data
being decrypted/encrypted to be in a binary form, not base64.

Addresses issue #14.

Signed-off-by: Owen McGill <mcgillo.rnx@gmail.com>
2019-04-29 15:38:49 +02:00
8b7b49d583
Breaking: Fix race condition with guessing messagedigest
- This removes messagedigest guessing as it might lead to race
  conditions during decryption when an md5 digest works as a
  valid key for the sha256 encrypted data
- This removes deprecated functions (the previous point introduces
  a breaking change so this does not introduce another one)

fixes #10

Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-11-02 12:42:27 +01:00
eb0c38a83d
Add benchmarks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-11 12:12:43 +02:00
f7c079072c
Make digest function configurable on encrypt, add tests
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-09-11 10:56:37 +02:00
54263e5c8a
Add salt validation and improve comments
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-09-18 15:49:33 +02:00
Vojta Bartoš
317731a683 Added ability to pass custom salt to everyencrypt call
- created new function for encryption string which takes salt as an argument and original encrypt string is just passing generated salt as argument
2017-09-18 15:14:20 +02:00
5c6e757983 Initial version of go-openssl 2015-07-17 23:50:24 +02:00