This document represents a possible mapping of SubtleCrypto APIs that can be used to implement the .NET Crypto API. SubtleCrypto is an implementation of the WebCrypto API. The WebCrypto API has a table for algorithm support here.
- AES -
SubtleCrypto.encrypt()
,SubtleCrypto.generateKey()
- Supports AES-CTR, AES-CBC, AES-GCM, AES-KW
- For AES-CBC the only available padding is PKCS#7.
- TripleDES - Not supported
- RC2 - Not supported
- DES - Not supported
- RSA -
SubtleCrypto.encrypt()
- Supports RSA-OAEP.
- ECDsa -
SubtleCrypto.encrypt()
- WebCrypto - https://www.w3.org/TR/WebCryptoAPI/#ecdsa
- ECDiffieHellman -
SubtleCrypto.generateKey()
- WebCrypto - https://www.w3.org/TR/WebCryptoAPI/#ecdh
- DSA - Not supported
- Node.js has an extension for support.
- MD5 - Not supported
- SHA1 -
SubtleCrypto.digest()
- SHA256 -
SubtleCrypto.digest()
- SHA384 -
SubtleCrypto.digest()
- SHA512 -
SubtleCrypto.digest()
- HMAC -
SubtleCrypto.sign()
,SubtleCrypto.generateKey()
- Supports SHA1, SHA256, SHA384, SHA512
- RandomNumberGenerator -
Crypto.getRandomValues()
.