-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more Sendable annotations to Crypto Extras #214
Add more Sendable annotations to Crypto Extras #214
Conversation
@@ -18,7 +18,7 @@ import Foundation | |||
extension AES { | |||
/// The Advanced Encryption Standard (AES) Cipher Block Chaining (CBC) cipher | |||
/// suite. | |||
public enum _CBC { | |||
public enum _CBC: Sendable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enum is uninhabited, it doesn't need a Sendable
annotation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yep, good catch, I missed that on this pass.
@@ -25,7 +25,7 @@ import Foundation | |||
/// Types associated with the AES GCM SIV algorithm | |||
extension AES.GCM { | |||
/// AES in GCM SIV mode with 128-bit tags. | |||
public enum _SIV { | |||
public enum _SIV: Sendable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here.
Motivation Add Sendable annotations to Crypto Extras to reflect current sandability so that downstream packages can implement sendable conformance. Modifications * Add Sendable conformance to some missed public symbols. * RSA public and private keys are now marked sendable with their backing storage on darwin OS marked unchecked sendable until SecKey from security framework has sendability annotations Result * More accurate Sendable annotations
90fcc20
to
f284a81
Compare
Motivation
Add Sendable annotations to Crypto Extras to reflect current sandability so that downstream packages can implement sendable conformance.
Modifications
Result