Skip to content

Releases: spider-gazelle/openssl_ext

v2.8.4

12 Feb 05:53
fa66a5e

Choose a tag to compare

What's Changed

  • update BIO callback and data access for newer Crystal by @mamantoha in #18

New Contributors

v2.8.3

23 Dec 13:05
e11ae19

Choose a tag to compare

fixes issues with EC curves and older openssl versions

v2.8.2

19 Nov 21:01
8193fac

Choose a tag to compare

What's Changed

  • fix: Null EC_GROUP reference by @russ in #16

New Contributors

  • @russ made their first contribution in #16

Full Changelog: v2.8.1...v2.8.2

v2.8.1

28 Oct 03:15
9051952

Choose a tag to compare

fixes an incompatibility with Crystal lang std lib

v2.8.0

28 Oct 00:45
6aa7b5b

Choose a tag to compare

v2.7.0

26 Oct 02:01
6a084b5

Choose a tag to compare

New LibCrypto bindings (src/openssl_ext/lib_crypto.cr:351-353):

  • ec_key_set_public_key - Set EC public key
  • ec_key_get0_private_key - Get EC private key BIGNUM
  • ec_key_set_private_key - Set EC private key

New class methods (src/openssl_ext/pkey/ec.cr:98-201):

  • OpenSSL::PKey::EC.from_private_bytes(bytes, curve) - Create EC key from raw private key bytes
    • Automatically derives the public key from private key
    • P-256: expects 32 bytes
    • P-384: expects 48 bytes
  • OpenSSL::PKey::EC.from_public_bytes(bytes, curve) - Create public key from raw bytes
    • Accepts uncompressed format (0x04 + x + y)
    • Validates point is on curve

New instance methods (src/openssl_ext/pkey/ec.cr:280-314):

  • private_key_bytes : Bytes - Export private key as raw bytes
  • public_key_bytes : Bytes - Export public key as raw uncompressed bytes

v2.6.3

19 Oct 21:40

Choose a tag to compare

fixes compilation on MacOS and only implements RSA PSS operations on OpenSSL 3+

v2.6.1

17 Oct 13:18

Choose a tag to compare

adds function to Generate EC key by curve name

v2.6.0

17 Oct 12:40

Choose a tag to compare

add RSA-PSS padding signing support

v2.5.2

10 Oct 08:00

Choose a tag to compare

fixes to not_after helpers