Boris Bügling
5dad2bc2ea
Fix CMake build ( #33 )
...
When building against a build tree artifact for Foundation, we need to add the build tree artifacts of dispatch as that is an exposed dependency for Foundation.
2023-03-03 17:20:40 -08:00
Boris Bügling and Yim Lee
75c7f1c7c8
Fix CMake for X509 ( #32 )
...
Co-authored-by: Yim Lee <yim_lee@apple.com >
2023-03-02 17:38:58 -08:00
Yim Lee
4f9218f7f7
Explicitly import _Concurrency ( #31 )
...
Motivation:
Swift CI disables implicit concurrency, so build fails without the import.
Modification:
Add explicit import for `_Concurrency`.
2023-03-02 14:38:08 -08:00
Yim Lee
95ff310423
Setup CMake build ( #29 )
2023-03-02 14:11:09 -08:00
David Nadoba
a531509713
Merge branch 'main' into cb-enable-rsa-signing
2023-02-13 16:24:19 +01:00
Cory Benfield
b1fa515ddc
Merge branch 'main' into dn-ocsp-flaky-tests
2023-02-13 11:18:38 +00:00
David Nadoba
56f28e4932
Add better error message
2023-02-13 11:58:16 +01:00
Cory Benfield
dc9a93f359
Merge branch 'main' into cb-enable-rsa-signing
2023-02-13 08:28:19 +00:00
Cory Benfield
8458a4ff72
Enable RSA signing support.
...
Motivation
We omitted RSA signing in the initial implementation. We should support
it.
As part of this, we need to decouple the idea that we know what the
digest algorithm is based solely on the key type. There's no particular
reason not to support ECDSA with SHA256 when using a P521 key, so we
need to tolerate that as well.
Modifications
- Explicitly pass the signature algorithm to our various cryptographic
operations.
- Add a Digest type to handle the various digest types we create.
- Add tests for the various cross products.
Results
RSA signing works, as do weirder flavours of ECDSA.
2023-02-10 16:55:39 +00:00
David Nadoba
0abe1f8330
Remove unused errors
2023-02-10 12:09:53 +01:00
Cory Benfield
fdd742b243
Merge branch 'main' into dn-set-of
2023-02-09 09:58:41 +00:00
David Nadoba
dd8109d6f1
Foundation on Linux hasn’t adopted Sendable yet
...
https://github.com/apple/swift-corelibs-foundation/issues/4687
2023-02-09 10:21:48 +01:00
David Nadoba
f90ac83435
Fix 5.8 warnings
2023-02-09 10:06:27 +01:00
David Nadoba
987848d4e9
Properly support SET OF fields.
2023-02-09 09:33:31 +01:00
Cory Benfield
39aa8e70f8
Merge branch 'main' into cb-remove-warnings
2023-02-07 13:46:39 +00:00
Cory Benfield
749b1c989b
Silence the warnings I accidentally added
2023-02-07 13:46:03 +00:00
Cory Benfield
53d16600ae
Clean up the docs references as well
2023-02-07 13:31:16 +00:00
Cory Benfield
0d95324c80
Un-namespace the extensions.
...
We've received API review feedback that is critical of us having the
extensions inside a namespace. This patch extracts them from that
namespace.
2023-02-07 11:26:50 +00:00
Cory Benfield
b408daf0f8
Update to swift-asn1 new error type
2023-02-06 11:02:45 +00:00
David Nadoba
c33a826019
Fix review comments
2023-02-02 15:32:51 +01:00
David Nadoba
f153e0ba7b
Use new DER.optionalImplicitlyTagged from swift-asn1 0.4.0
2023-02-02 15:17:13 +01:00
David Nadoba
a92d6e8918
It doesn’t make sense to decode as an implicitly taggable type if the type does not conform to DERImplicitlyTaggable
2023-02-02 11:52:35 +01:00
David Nadoba
cf59bc50c7
Cryptographic Message Syntax ASN.1 de/serialisation
2023-02-02 11:52:35 +01:00
David Nadoba
d41079b50d
Use struct instead of enum for CMSContentInfo and document unsupported CMS properties
2023-02-02 11:06:26 +01:00
David Nadoba
ef35326c8a
CryptographicMessageSyntax types
2023-02-02 11:00:05 +01:00
David Nadoba
731f0a2d67
Fix examples
2023-01-31 19:09:03 +01:00
David Nadoba
1113c4a59d
Cite RFC and rename withDeadline to withTimeout
2023-01-26 15:13:30 +01:00
David Nadoba
cb862c94e6
Merge branch 'main' into dn-ocsp-policy
2023-01-26 13:33:12 +01:00
David Nadoba
8cf733ee90
New implementation of withDeadline
2023-01-26 13:32:57 +01:00
David Nadoba
a023a193d3
Address review comments
2023-01-26 12:25:52 +01:00
David Nadoba and Cory Benfield
293d9acaa1
Apply review code suggestions
...
Co-authored-by: Cory Benfield <lukasa@apple.com >
2023-01-26 11:44:10 +01:00
David Nadoba
13c40d3f07
Add tests
2023-01-25 12:10:04 +01:00
Cory Benfield
389c9c4706
Prefer appending to init
2023-01-24 14:52:34 +00:00
Cory Benfield
d2ef4164b1
Merge branch 'main' into cb-basic-chain-builder
2023-01-24 14:47:22 +00:00
David Nadoba
f068d90254
Fix review comments
2023-01-20 10:54:19 +01:00
Cory Benfield
403da4ffd4
Implement a basic chain builder.
2023-01-16 10:37:52 +00:00
David Nadoba
14b953a64e
Remove policy for now and push that to another PR
2023-01-13 11:53:57 +01:00
David Nadoba
a6e6d63f3c
Get rid of do catch hell and split into multiple functions
2023-01-13 11:35:01 +01:00
David Nadoba
f0477362d5
Fix TODOs
2023-01-12 22:50:21 +01:00
David Nadoba
0c84890798
Drop dependency on swift-algorithms
2023-01-12 11:58:22 +01:00
David Nadoba
6fe7e0dde5
import Crypto instead of CryptoKit
2023-01-12 11:54:57 +01:00
David Nadoba
4be8c203f9
Add nonce extensions and some general refactoring
2023-01-11 14:31:00 +01:00
David Nadoba
533f40c5dd
Prototype of OCSPPolicy
2022-12-29 12:55:54 +01:00
David Nadoba
eef0736e81
Implement de/encoding
2022-12-14 12:56:57 +01:00
David Nadoba
54aa3a0d96
OCSPRequest
2022-12-13 15:31:22 +01:00
David Nadoba
b275a815d9
Fix CertificateVersion description for unknown versions
...
Should be plus one and not minus one
2022-12-13 11:50:40 +01:00
David Nadoba
4feb081b42
Fix soundness
...
File extension of the CONTRIBUTORS file is `.txt` not `.md`.
Add missing license header to some files.
2022-11-30 11:28:42 +01:00
David Nadoba
763ea6435a
Add docker compose files and scripts for CI
...
and use correct license header name
2022-11-28 11:38:15 +01:00
Cory Benfield
88ed33064a
Fix missing index check
2022-11-23 13:57:05 +00:00
Cory Benfield
4bcf463188
Initial Verifier spike
2022-11-23 13:56:25 +00:00