This is a meta for adding SubtleCrypto from <http://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html>.
WebKit currently implements latest WebCrypto editor's draft posted 2013-08-30 (<https://dvcs.w3.org/hg/webcrypto-api/raw-file/dffe14c6052a/spec/Overview.html>), with a few updates:
- operations take CryptoOperationData arguments, not sequences of those;
- added AES-KW algorithm (RFC3394).
SubtleCrypto is exposed as window.crypto.webkitSubtle. The spec hasn't even reached Last Call yet, so it's likely to change in the future.
Supported algorithms are:
- SHA-1, SHA-224, SHA-256, SHA-384, SHA-512 (all of these are also supported as hashes for below algorithms);
All operations relevant to these algorithms are supported. Key algorithm, usages and extractable members are enforced.
Key import, export, unwrapping and wrapping are supported for raw and JWK formats (JWK mapping is implemented according to <https://www.w3.org/Bugs/Public/show_bug.cgi?id=23796#c12>). Imported private RSA keys currently must have additional prime factor data, and must have exactly two prime factors.
Most of the code is cross platforms, with low level cryptography operations invoking Mac platform libraries.
The functionality is present in WebKit nightly builds on OS X 10.9 Mavericks (http://nightly.webkit.org). Please test, and report any bugs! Patches for additional algorithms and key formats are welcome.
Close this bug as fixed as all the depending unfixed bugs have been moved to either Bug 160880 and Bug 160883.