diff --git a/Package.swift b/Package.swift index 3f8e174..a7f7e41 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.3 +// swift-tools-version:5.5 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription @@ -14,7 +14,7 @@ let package = Package( dependencies: [ // Dependencies declare other packages that this package depends on. .package(url: "https://github.com/leif-ibsen/ASN1", from: "2.0.0"), - .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.2.6"), + .package(url: "https://github.com/leif-ibsen/BigInt", from: "1.2.11"), ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. diff --git a/README.md b/README.md index 479b435..cbe9e78 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,39 @@ -
Block Mode | Encrypt | Decrypt |
---|---|---|
GCM | 26 MByte/Sec | 26 MByte/Sec |
ECB | 19 MByte/Sec | 19 MByte/Sec |
CBC | 14 MByte/Sec | 16 MByte/Sec |
CFB | 20 MByte/Sec | 20 MByte/Sec |
CTR | 21 MByte/Sec | 21 MByte/Sec |
OFB | 25 MByte/Sec | 26 MByte/Sec |
GCM | 53 MByte/Sec | 53 MByte/Sec |
ECB | 30 MByte/Sec | 30 MByte/Sec |
CBC | 24 MByte/Sec | 25 MByte/Sec |
CFB | 23 MByte/Sec | 23 MByte/Sec |
CTR | 30 MByte/Sec | 30 MByte/Sec |
OFB | 29 MByte/Sec | 29 MByte/Sec |
Curve | Sign | Verify | Keypair Generation |
---|---|---|---|
brainpoolP160r1 | 1.4 mSec | 2.5 mSec | 5.1 mSec |
brainpoolP160t1 | 1.4 mSec | 2.4 mSec | 5.1 mSec |
brainpoolP192r1 | 1.7 mSec | 3.0 mSec | 6.3 mSec |
brainpoolP192t1 | 1.7 mSec | 3.1 mSec | 6.4 mSec |
brainpoolP224r1 | 2.3 mSec | 4.3 mSec | 9.4 mSec |
brainpoolP224t1 | 2.3 mSec | 4.3 mSec | 9.4 mSec |
brainpoolP256r1 | 2.7 mSec | 5.1 mSec | 11 mSec |
brainpoolP256t1 | 2.7 mSec | 5.0 mSec | 11 mSec |
brainpoolP320r1 | 4.2 mSec | 7.7 mSec | 18 mSec |
brainpoolP320t1 | 4.2 mSec | 7.8 mSec | 18 mSec |
brainpoolP384r1 | 6.0 mSec | 11 mSec | 27 mSec |
brainpoolP384t1 | 6.1 mSec | 11 mSec | 27 mSec |
brainpoolP512r1 | 11 mSec | 21 mSec | 52 mSec |
brainpoolP512t1 | 11 mSec | 21 mSec | 52 mSec |
secp192k1 | 1.6 mSec | 3.0 mSec | 6.2 mSec |
secp192r1 | 1.6 mSec | 3.0 mSec | 6.3 mSec |
secp224k1 | 2.3 mSec | 4.2 mSec | 9.5 mSec |
secp224r1 | 2.3 mSec | 4.2 mSec | 9.4 mSec |
secp256k1 | 2.7 mSec | 5.2 mSec | 11 mSec |
secp256r1 | 2.7 mSec | 5.0 mSec | 11 mSec |
secp384r1 | 6.1 mSec | 11 mSec | 27 mSec |
secp521r1 | 11 mSec | 21 mSec | 51 mSec |
sect163k1 | 1.9 mSec | 3.6 mSec | 7.8 mSec |
sect163r2 | 1.9 mSec | 3.6 mSec | 7.9 mSec |
sect233k1 | 3.5 mSec | 6.9 mSec | 15 mSec |
sect233r1 | 3.5 mSec | 6.4 mSec | 15 mSec |
sect283k1 | 5.3 mSec | 10 mSec | 25 mSec |
sect283r1 | 5.3 mSec | 9.8 mSec | 25 mSec |
sect409k1 | 11 mSec | 22 mSec | 57 mSec |
sect409r1 | 11 mSec | 21 mSec | 58 mSec |
sect571k1 | 23 mSec | 45 mSec | 126 mSec |
sect571r1 | 23 mSec | 46 mSec | 126 mSec |
brainpoolP160r1 | 0.7 mSec | 1.3 mSec | 2.9 mSec |
brainpoolP160t1 | 0.7 mSec | 1.4 mSec | 2.9 mSec |
brainpoolP192r1 | 0.96 mSec | 1.8 mSec | 3.9 mSec |
brainpoolP192t1 | 0.96 mSec | 1.9 mSec | 3.9 mSec |
brainpoolP224r1 | 1.3 mSec | 2.6 mSec | 5.7 mSec |
brainpoolP224t1 | 1.3 mSec | 2.6 mSec | 5.7 mSec |
brainpoolP256r1 | 1.7 mSec | 3.3 mSec | 7.4 mSec |
brainpoolP256t1 | 1.7 mSec | 3.3 mSec | 7.4 mSec |
brainpoolP320r1 | 2.9 mSec | 5.7 mSec | 13 mSec |
brainpoolP320t1 | 2.9 mSec | 5.5 mSec | 13 mSec |
brainpoolP384r1 | 4.5 mSec | 8.6 mSec | 21 mSec |
brainpoolP384t1 | 4.4 mSec | 8.7 mSec | 21 mSec |
brainpoolP512r1 | 9.2 mSec | 19 mSec | 44 mSec |
brainpoolP512t1 | 9.3 mSec | 18 mSec | 44 mSec |
secp192k1 | 0.96 mSec | 1.8 mSec | 4.0 mSec |
secp192r1 | 0.96 mSec | 1.9 mSec | 3.9 mSec |
secp224k1 | 1.3 mSec | 2.6 mSec | 5.8 mSec |
secp224r1 | 1.3 mSec | 2.6 mSec | 5.7 mSec |
secp256k1 | 1.7 mSec | 3.2 mSec | 7.4 mSec |
secp256r1 | 1.7 mSec | 3.3 mSec | 7.5 mSec |
secp384r1 | 4.5 mSec | 8.9 mSec | 21 mSec |
secp521r1 | 9.8 mSec | 19 mSec | 47 mSec |
sect163k1 | 1.2 mSec | 2.2 mSec | 5.1 mSec |
sect163r2 | 1.2 mSec | 2.3 mSec | 5.1 mSec |
sect233k1 | 2.3 mSec | 4.5 mSec | 11 mSec |
sect233r1 | 2.3 mSec | 4.5 mSec | 11 mSec |
sect283k1 | 3.5 mSec | 7.0 mSec | 17 mSec |
sect283r1 | 3.5 mSec | 7.1 mSec | 17 mSec |
sect409k1 | 8.0 mSec | 16 mSec | 41 mSec |
sect409r1 | 8.0 mSec | 16 mSec | 42 mSec |
sect571k1 | 17 mSec | 35 mSec | 92 mSec |
sect571r1 | 17 mSec | 34 mSec | 92 mSec |