Commit graph

30 commits

Author SHA1 Message Date
Benoît Minisini
ddb941f1c3 Fix some incorrect use of Gambas strings. Better error messages.
[GB.OPENSSL]
* BUG: Fix some incorrect use of Gambas strings.
* NEW: Better error messages.
2023-09-15 16:46:33 +02:00
Benoît Minisini
415de7b257 Update configuration files to autoconf 2.71.
[CONFIGURATION]
* NEW: Update configuration files to autoconf 2.71.
2022-09-03 13:24:51 +02:00
Benoît Minisini
bba34bedf9 Fix the 'sort_and_dedupe()' internal method.
[GB.OPENSSL]
* BUG: Fix the 'sort_and_dedupe()' internal method.
2022-06-06 01:37:08 +02:00
Benoît Minisini
178c665461 In 'gb.openssl', use the API instead of directly including interpreter header files.
[INTERPRETER]
* NEW: Add all comparison constants to 'gambas.h' API header file.

[GB.OPENSSL]
* BUG: Use the API instead of directly including interpreter header files. It breaks compilation on Ubuntu 22.10.1.
2022-05-28 18:51:48 +02:00
Tobias Boege
f5ca983f88 gb.openssl: Add tests for new Pbkdf2 and Scrypt methods
[GB.OPENSSL]
* NEW: Add beginning of a test suite.
* OPT: Avoid doubles in integer power-of-two test.
2020-06-07 01:51:17 +02:00
Andy
b1fbac987e gb.openssl: Dangling parenthesis.
[GB.OPENSSL]
* BUG: Remove dangling parenthesis.
2020-06-07 01:06:01 +02:00
Andy
0eb47b25bb gb.openssl: Hash memory allocation
[GB.OPENSSL]
* BUG: Hash incorrectly allocated by sizeof a pointer.
2020-06-07 01:06:01 +02:00
Andy
3b67580477 gb.openssl: Parameter Limits
[GB.OPENSSL]
* BUG: RandomBytes length limit (1 - 0x7FFFEFF7).
* BUG: Pbkdf2 iterations limit (>0).
* BUG: Pbkdf2 keylength limit (1 - 0x7FFFEFF7).
* BUG: Pbkdf2 buffer managed as GB String.
* BUG: Scrypt keylength limit (1 - 0x7FFFEFF7).
* BUG: Scrypt N limit (>1 & 2^n).
* BUG: Scrypt r limit (1 - 0xFFFFFFFF).
* BUG: Scrypt p limit (1 - 0xFFFFFFFF).
* BUG: Scrypt bugger managed as GB String.
* BUG: Declare longs as longs instead of integers.
2020-06-07 01:06:01 +02:00
Andy
0e503c137b gb.openssl: Group KDF
[GB.OPENSSL]
* NEW: KDF Functions under OpenSSL Class.
2020-06-07 01:06:01 +02:00
Andy
d0c35df49c gb.openssl: Extraneous Include
[GB.OPENSSL]
* BUG: Unnecessary kdf.h blocking Xenial.
2020-06-07 01:06:01 +02:00
Andy
cb18ca4ff3 gb.openssl: Key Derivation Functions
[GB.OPENSSL]
* NEW: Add Pbkdf2 function.
* NEW: Add Scrypt function.
2020-06-07 01:06:01 +02:00
Tobias Boege
b76e4001bc gb.openssl: Fix HMac
[GB.OPENSSL]
* BUG: An internal routine's return value was mismatched causing HMac to return without data whenever the digest method was found. (Bug#1725)
2020-02-04 22:55:49 +01:00
Tobias Boege
d913a59929 gb.openssl: Add OpenSSL static class and RandomBytes method
[GB.OPENSSL]
* NEW: Add static class OpenSSL for general utility methods provided by OpenSSL
* NEW: Add OpenSSL.RandomBytes to generate a cryptographically strong pseudo-random string of given length
2019-07-06 21:45:37 +02:00
Tobias Boege
ade69465d6 gb.openssl: Allow arbitrary digests in HMac()
[GB.OPENSSL]
* NEW: Allow arbitrary digest methods to be passed to HMac(). They are now identified by their name. The integer arguments are deprecated.
2019-07-06 21:18:33 +02:00
Tobias Boege
d0e24c483f gb.openssl: add linking exception for OpenSSL
[GB.OPENSSL]
* NEW: Add linking exception for OpenSSL (Thanks, Bastian Germann).
2019-05-03 23:35:26 +02:00
bgermann
c41ebd5dda [GB.OPENSSL] Replace deprecated RAND_pseudo_bytes
[GB.OPENSSL]
* NEW: Replace the deprecated (as of OpenSSL 1.1.0) function RAND_pseudo_bytes with RAND_bytes
2018-10-22 22:52:52 +02:00
Tobias Boege
fe4f54a3be [GB.OPENSSL]
* BUG: Cipher.DecryptSalted() doesn't return rubbish after the decrypted text anymore
2017-09-16 23:52:47 +02:00
Laurent Carlier
8dc6679530 Remove 'missing' file ,generated by autotools, from the repository 2017-08-13 16:13:06 +02:00
Benoît Minisini
82eddfd5c9 [CONFIGURATION]
* NEW: Remove all 'depcomp' files. Apparently they are not used anymore by autoconf.

[INTERPRETER]
* BUG: Fix some gcc 6 warnings.

[GB.DEBUG]
* BUG: Fix some gcc 6 warnings.

[GB.GTK]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.GTK3]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.IMAGE]
* BUG: Fix some gcc 6 warnings.


git-svn-id: svn://localhost/gambas/trunk@8101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-02-18 17:24:01 +00:00
Tobias Boege
362c045896 [CONFIGURATION]
* NEW: Enable gb.openssl for OpenSSL < 1.0.0 if EVP_MD_do_all() is present.

[GB.OPENSSL]
* NEW: Digest: Try again to support OpenSSL 0.9.8o.



git-svn-id: svn://localhost/gambas/trunk@7892 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-09-05 16:27:18 +00:00
Tobias Boege
842a1583be [GB.OPENSSL]
* NEW: Require OpenSSL >= 1.0.0 because we need EVP_MD_do_all().
* BUG: Revert changes from #7875.



git-svn-id: svn://localhost/gambas/trunk@7876 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-08-29 20:44:37 +00:00
Tobias Boege
b2e45bf929 [GB.OPENSSL]
* NEW: Try to support OpenSSL 0.9.8 together with 1.1.0 (bug #984).



git-svn-id: svn://localhost/gambas/trunk@7875 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-08-29 16:51:53 +00:00
Tobias Boege
20beab444e [GB.OPENSSL]
* NEW: Forward-compatibility with OpenSSL 1.1 (hopefully) (Bug #958).
* BUG: Clear buffers on stack before passing them to OpenSSL.
* BUG: Terminate return value of .Cipher.Method.Decrypt() properly.



git-svn-id: svn://localhost/gambas/trunk@7806 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-06-30 16:06:24 +00:00
Tobias Boege
ce0d8ec614 [GB.OPENSSL]
* BUG: Fix memory errors from Cipher.List and Digest.List
* NEW: Return Cipher.List and Digest.List sorted without duplicates



git-svn-id: svn://localhost/gambas/trunk@6684 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-29 11:54:07 +00:00
Tobias Boege
0395af9468 [GB.OPENSSL]
* BUG: Cipher: Fix memory leaks from returning strings.
* BUG: Cipher[...].Encrypt() now passes the three mandatory arguments when
  creating a CipherText.



git-svn-id: svn://localhost/gambas/trunk@6653 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-17 13:35:14 +00:00
Tobias Boege
f18e3d9403 [GB.OPENSSL]
* NEW: Make CipherText creatable so that data from external sources can be
  deciphered.



git-svn-id: svn://localhost/gambas/trunk@6399 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-28 01:02:46 +00:00
Benoît Minisini
e21d009197 [GB.OPENSSL]
* BUG: Cipher[] and Digest[] now read their method argument correctly.
* BUG: Fix bad use of string API in the Cipher class. Consequently 
  Cipher[].Encrypt() does not crash anymore.


git-svn-id: svn://localhost/gambas/trunk@6245 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-23 13:18:31 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +00:00
Tobias Boege
902c13bcea [GB.DATA]
* NEW: Mark component as stable

[GB.OPENSSL]
* NEW: Mark component as stable



git-svn-id: svn://localhost/gambas/trunk@5825 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-09-01 18:53:24 +00:00
Tobias Boege
4c7d43bada [CONFIGURATION]
* NEW: Rename gb.crypt.openssl to gb.openssl.



git-svn-id: svn://localhost/gambas/trunk@5668 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-05-20 22:26:15 +00:00