Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

Releases: vapor/open-crypto

Crypto 3.4.1

15 Jun 20:04
Compare
Choose a tag to compare

Fixes a compile error when using OpenSSL 1.1 introduced in 3.4.0.

Crypto 3.4.0

15 Jun 16:07
5b020d1
Compare
Choose a tag to compare

Add support for DER encoded x509 certificate.

import Crypto

let rsa = try RSAKey.public(der: urlEncodedDer)

OpenCrypto 4.0.0 Beta 2

09 Dec 14:56
90c49bc
Compare
Choose a tag to compare
Pre-release
  • Enabled test discovery on Linux. (#98)

OpenCrypto 4.0.0 Alpha 2

01 Aug 18:57
06d26ed
Compare
Choose a tag to compare
Pre-release

CryptoKit is now called OpenCrypto.

OpenCrypto is a drop-in replacement for Apple's CryptoKit built on OpenSSL.

This package is meant for use on platforms where CryptoKit is not available, like Linux. Most features from CryptoKit are available, but some are still missing:

  • ✅ MD5
  • ✅ SHA1
  • ✅ SHA2 (256, 384, 512)
  • ✅ HMAC
  • ✅ AES GCM (128, 192, 256)
  • ✅ ChaChaPoly (1305)
  • ❌ Curve25519
  • ❌ NIST P (256, 384, 521)

CryptoKit 4.0.0 Alpha 1

28 May 17:46
9d5e780
Compare
Choose a tag to compare

Crypto 3.3.3

22 Apr 19:41
df8eb7d
Compare
Choose a tag to compare

Fixed:

  • Trying to parse a malformed RSA key no longer causes a fatalError (#87 - #88)

Crypto 3.3.2

12 Feb 20:58
45bb12d
Compare
Choose a tag to compare

Fixed:

  • Removed dependency on private CNIOOpenSSL package. (#81)

Crypto 3.3.1

17 Jan 18:13
bce9ac8
Compare
Choose a tag to compare

Fixed:

  • Fixed a crash that could happen when using RSA with incorrect key type. (#79, #78)
  • Fixed an issue causing OpenSSL error messages to always yield "unknown error". (#79)

Crypto 3.3.0

25 Sep 19:49
5605334
Compare
Choose a tag to compare

New:

import Crypto

let code = TOTP.SHA1.generate(secret: "hi")
print(code) "123456"

Fixed:

  • This package's private C libraries have been renamed and updated. (#75)

Crypto 3.2.0

31 May 16:46
4b85405
Compare
Choose a tag to compare

New:

  • RSA now has encrypt and decrypt static methods (#64).
  • New secureCompare(to:) method on Collection (#67).

Fixed:

  • Default AES mode is no longer ECB (#59, #66).
  • New AES cipher modes have been added (#60).
  • Fixed some incorrect usages of withUnsafeBuffer (#64).
  • BCryptDigest now uses secure compare when verifying hashes (#67).
  • CryptoRandom and OSRandom are now structs (#65).