-
Notifications
You must be signed in to change notification settings - Fork 197
Add API for ARC(P-256) and deprecate ARC(P-384) #374
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
Conversation
99b140d to
c58a33d
Compare
c58a33d to
f3baa63
Compare
|
@Lukasa OK, CI is happy with this one now. |
|
|
||
| // MARK: - P384 + ARC(P-384) | ||
| @available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, macCatalyst 16.0, visionOS 2.0, *) | ||
| @available(*, deprecated, message: "ARC(P-384) has been removed from the IETF draft; use ARC(P-256) instead.") |
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.
Does placing the deprecation here work, or does it need to go on the inner enum?
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.
Seems to be. If I add this to a test file:
func f() {
let _ = P384._ARCV1 // warning: '_ARCV1' is deprecated: ARC(P-384) has been removed from the IETF draft; use ARC(P-256) instead.
}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.
Great.
Motivation
The ARC IETF draft has been updated to now support P256 and drop support for P384.
Modifications
Result
P256._ARCV1, which provides an implementation of ARC(P-256).P384._ARCV1, which provides an implementation of ARC(P-256).