mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
fix(ext/crypto): KeyAlgorithm typings for supported algorithms (#11738)
This commit is contained in:
parent
1b7848c4a9
commit
46e4ba38b2
1 changed files with 18 additions and 0 deletions
18
ext/crypto/lib.deno_crypto.d.ts
vendored
18
ext/crypto/lib.deno_crypto.d.ts
vendored
|
@ -59,6 +59,24 @@ interface HmacImportParams extends Algorithm {
|
|||
length?: number;
|
||||
}
|
||||
|
||||
interface EcKeyAlgorithm extends KeyAlgorithm {
|
||||
namedCurve: NamedCurve;
|
||||
}
|
||||
|
||||
interface HmacKeyAlgorithm extends KeyAlgorithm {
|
||||
hash: KeyAlgorithm;
|
||||
length: number;
|
||||
}
|
||||
|
||||
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
|
||||
hash: KeyAlgorithm;
|
||||
}
|
||||
|
||||
interface RsaKeyAlgorithm extends KeyAlgorithm {
|
||||
modulusLength: number;
|
||||
publicExponent: Uint8Array;
|
||||
}
|
||||
|
||||
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */
|
||||
interface CryptoKey {
|
||||
readonly algorithm: KeyAlgorithm;
|
||||
|
|
Loading…
Reference in a new issue