Commit Graph

173 Commits

Author SHA1 Message Date
Adin Schmahmann
f4030af720 refactor: make Ed25519 keys less special cased 2020-07-29 16:49:19 -04:00
Steven Allen
ab3d2c3342
Merge pull request #6 from balajijinnah/balaji/tls
Add required bindings to support openssl in libp2p-tls
2020-06-15 11:03:10 -07:00
Tiger
38a6bec6d1 fix comments
Signed-off-by: Tiger <rbalajis25@gmail.com>
2020-06-13 14:12:43 +05:30
Tiger
1fdf237b98 remove unwanted
Signed-off-by: Tiger <rbalajis25@gmail.com>
2020-05-23 17:28:22 +05:30
Tiger
df5f786f4b Merge branch 'master' of https://github.com/libp2p/go-openssl into balaji/create_obj_identifier 2020-05-23 17:26:36 +05:30
Tiger
09d72588f7 - add custom extension support
- add support to retrive custom extension value
- add support to add custom protocol for protocol negotiation

Signed-off-by: Tiger <rbalajis25@gmail.com>
2020-05-23 17:24:57 +05:30
Steven Allen
050e85000a
Merge pull request #5 from balajijinnah/balaji/create_obj_identifier
add binding for OBJ_create
2020-05-10 11:37:39 -07:00
Tiger
5f2730c458 minor license yaer change
Signed-off-by: Tiger <rbalajis25@gmail.com>
2020-05-10 20:07:24 +05:30
Tiger
fe1fe4cae6 add binding for OBJ_create
Signed-off-by: Tiger <rbalajis25@gmail.com>
2020-05-10 17:53:01 +05:30
Steven Allen
418fabf8ea
Merge pull request #4 from djdv/build/solaris
pass build flags on Solaris/Illumos
2019-12-06 21:41:20 -05:00
Dominic Della Valle
da4f08fb1e pass build flags on Solaris/Illumos 2019-11-13 11:56:52 -05:00
Steven Allen
f25c826a2c
Merge pull request #3 from libp2p/feat/sig-size
feat: add Size function to PublicKey
2019-10-22 07:40:51 +09:00
Steven Allen
f99684446c feat: add Size function to PublicKey
This allows us to determine the size of signatures produced by a public key.
Incidentally, this also allows us to determine the size of an RSA key's modulus.
2019-10-21 15:24:42 -07:00
Raúl Kripalani
1934e456a0
readme: add motivation for forking. 2019-08-02 13:57:20 +01:00
Steven Allen
3d5df67ba7 feat: openbsd support 2019-08-01 16:40:57 -07:00
Steven Allen
adf4e19c17
Merge pull request #2 from libp2p/fix/freebsd
feat: add freebsd support
2019-07-31 14:25:35 -07:00
Steven Allen
7e0f41e6a7 feat: add freebsd support 2019-07-26 16:41:04 -07:00
Steven Allen
0298788890
Merge pull request #1 from dignifiedquire/feat/key-equals
feat: add Equal method to compare keys
2019-06-29 11:54:51 +02:00
Steven Allen
01a7c5e769 move to libp2p 2019-06-29 11:53:15 +02:00
dignifiedquire
80f7894f83 feat: add Equal method to compare keys
Closes #125
2019-06-28 13:37:09 +02:00
Ramesh V Rayaprolu
c2dcc5cca9 avoid panic while encrypting empty data (#109) 2018-10-17 14:33:07 -06:00
Jeff Wendling
a66df3e4f5 change ulong to size_t to match shim.h 2018-09-13 17:23:02 -06:00
Jeff Wendling
6db4433778 remove dependency on golang.org/x/crypto in md4 tests 2018-09-13 16:41:04 -06:00
Ramesh V Rayaprolu
543df27fc7 add m4 and m5 wrappers (#104) 2018-09-13 16:38:26 -06:00
Jeff Wendling
0ffbced908 skip ed25519 tests if not supported 2018-09-13 16:17:59 -06:00
parasssh
8ea58d1789 Ed25519 key support (#103)
* ed gen, sign, verify works. tested25519 fails
* Ignore some unit tests in ED since it relies on GoLang lib to support Ed keys
* Cleanup sign and verify operations
* Cleanup and prettify
* cleanups
* Conditional X_EVP_PKEY_ED25519 and  X_EVP_Digest{Sign|Verify}[Init] based on openssl version.
2018-09-13 16:07:17 -06:00
Jeff Wendling
3b86b42896 add support for get/set x509 version
closes #61
2018-09-05 07:34:06 -06:00
Jeff Wendling
9386dd2f5b fix bug with SetPadding and add go.mod 2018-09-05 07:04:03 -06:00
Ramesh Rayaprolu (rarayapr)
33d609e316 add wrappers to enable/disable Padding for encryption contexts 2018-08-17 00:06:36 -06:00
Jeff Wendling
5da517866c fix missing semicolon 2018-07-26 19:26:50 -06:00
Jeff Wendling
3c881b520f set callback thread id on windows 2018-07-26 11:32:16 -06:00
Ajay Nalawade
6ac1e9e6b9 Set thread id callback as required by openssl. 2018-07-26 11:20:55 -06:00
Andrew Harding
85c7f475b6 Fix hostname validation with an IPv4 SAN
Go can use 16 bytes to store an IPv4 address in a net.IP so it needs to
be converted to a 4-byte representation first.
2018-04-17 08:51:22 -06:00
Jeff Wendling
2df7e68102 Revert "remove unsupported build flags on go1.9.4+"
This reverts commit 6eae62b008.
This reverts commit baa1f6250e.

Leaves in the removal of -w from the darwin LDFLAGS as it is still
problematic on 1.9.5 and 1.10.1.
2018-04-05 16:06:18 -06:00
Jeff
baa1f6250e
remove unsupported build flags on go1.9.4+ 2018-02-07 13:17:32 -07:00
Jeff
6eae62b008
remove unsupported build flags on go1.9.4+ 2018-02-07 13:17:05 -07:00
Jakub Čajka
666cd1440a Make test confom to new requirement enforced in go 1.10 https://tip.golang.org/doc/go1.10#test. With out this change tests will always fails with go 1.10+. 2018-01-17 09:59:19 -07:00
Jeff Mitchell
e863d83e40 Add P521 to defined curves 2018-01-05 16:06:25 -07:00
Christopher Dudley
08c83c41f3 Fix spelling of some NID constants. 2018-01-05 16:06:15 -07:00
Christopher Dudley
4dc321d35e Fix incompatibilities with OpenSSL 1.0.x (#1)
Fix incompatiblities with OpenSSL 1.0.x
2018-01-05 16:06:15 -07:00
Christopher Dudley
e0d1688384 Add myself to AUTHORS :) 2018-01-05 16:06:15 -07:00
Christopher Dudley
96ce3e554e Rename Type() to KeyType() to be more descriptive. 2018-01-05 16:06:15 -07:00
Christopher Dudley
193b24e768 Add additional tests for EC key/cert marshalling. 2018-01-05 16:06:15 -07:00
Christopher Dudley
c26b4563dc change error checking style to match existing code. 2018-01-05 16:06:15 -07:00
Christopher Dudley
7689615645 add shared secret derivation and test for ECDH. 2018-01-05 16:06:15 -07:00
Christopher Dudley
64a7b8acc3 add EC key generation. 2018-01-05 16:06:15 -07:00
Christopher Dudley
1647be123d allow pKey to support any key type supported by OpenSSL. 2018-01-05 16:06:15 -07:00
Jeff Wendling
4ea35d79e3 fix build on dev version of go on osx
cgo starts exiting when pkg-config doesn't work, so limit calling
pkg-config to linux and windows.

we also need to specify -lssl and -lcrypto in the linker flags
when we don't have pkg-config
2017-12-07 13:32:27 -07:00
Andrew Harding
8ef358132a convenient tag to support static linking 2017-09-28 15:57:55 -06:00
Alexander Pyhalov
b2898d133d Fix build on solarish platforms 2017-09-25 09:47:40 -06:00