import { type JWSAlgorithm } from "https://deno.land/x/oauth4webapi@v2.7.0/mod.ts";
Supported JWS alg
Algorithm identifiers.
Examples
CryptoKey algorithm for the PS256
, PS384
, or PS512
JWS Algorithm Identifiers
CryptoKey algorithm for the PS256
, PS384
, or PS512
JWS Algorithm Identifiers
interface PS256 extends RsaHashedKeyAlgorithm {
name: 'RSA-PSS'
hash: 'SHA-256'
}
interface PS384 extends RsaHashedKeyAlgorithm {
name: 'RSA-PSS'
hash: 'SHA-384'
}
interface PS512 extends RsaHashedKeyAlgorithm {
name: 'RSA-PSS'
hash: 'SHA-512'
}
CryptoKey algorithm for the ES256
, ES384
, or ES512
JWS Algorithm Identifiers
CryptoKey algorithm for the ES256
, ES384
, or ES512
JWS Algorithm Identifiers
interface ES256 extends EcKeyAlgorithm {
name: 'ECDSA'
namedCurve: 'P-256'
}
interface ES384 extends EcKeyAlgorithm {
name: 'ECDSA'
namedCurve: 'P-384'
}
interface ES512 extends EcKeyAlgorithm {
name: 'ECDSA'
namedCurve: 'P-521'
}
CryptoKey algorithm for the RS256
, RS384
, or RS512
JWS Algorithm Identifiers
CryptoKey algorithm for the RS256
, RS384
, or RS512
JWS Algorithm Identifiers
interface RS256 extends RsaHashedKeyAlgorithm {
name: 'RSASSA-PKCS1-v1_5'
hash: 'SHA-256'
}
interface RS384 extends RsaHashedKeyAlgorithm {
name: 'RSASSA-PKCS1-v1_5'
hash: 'SHA-384'
}
interface RS512 extends RsaHashedKeyAlgorithm {
name: 'RSASSA-PKCS1-v1_5'
hash: 'SHA-512'
}
CryptoKey algorithm for the EdDSA
JWS Algorithm Identifier (Experimental)
CryptoKey algorithm for the EdDSA
JWS Algorithm Identifier (Experimental)
Runtime support for this algorithm is limited, it depends on the Secure Curves in the Web Cryptography API proposal which is yet to be widely adopted. If the proposal changes this implementation will follow up with a minor release.
interface EdDSA extends KeyAlgorithm {
name: 'Ed25519' | 'Ed448'
}