Bug 265315 - X25519 raw keys should be always imported as public
Summary: X25519 raw keys should be always imported as public
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Javier Fernandez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-11-24 07:31 PST by Javier Fernandez
Modified: 2023-11-28 07:26 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Javier Fernandez 2023-11-24 07:31:32 PST
When importing X25519 keys in raw format we are assuming that if the key is non-extractable, it should be imported as private key. The spec states that the key type must be set to 'public" when importing it in 'raw' format:

https://wicg.github.io/webcrypto-secure-curves/#x25519-operations

"5. Set the [[type]] internal slot of key to "public"
Comment 1 Javier Fernandez 2023-11-24 07:40:34 PST
Pull request: https://github.com/WebKit/WebKit/pull/20873
Comment 2 EWS 2023-11-28 07:25:37 PST
Committed 271210@main (a4e364149581): <https://commits.webkit.org/271210@main>

Reviewed commits have been landed. Closing PR #20873 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-11-28 07:26:14 PST
<rdar://problem/118880829>