diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2021-09-14 18:51:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 15:21:20 +0200 |
commit | c41460ecc421ac7730cc5455542e5e05f7366c4a (patch) | |
tree | 18b7ac8683d6543b0610c25d42df089e2bf7d183 /ext/crypto/lib.deno_crypto.d.ts | |
parent | d36b01ff6956930b51a80cd773f618b708a5f595 (diff) |
feat(ext/crypto): import RSA pkcs#8 keys (#11891)
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r-- | ext/crypto/lib.deno_crypto.d.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts index 5a554015a..55b94c24d 100644 --- a/ext/crypto/lib.deno_crypto.d.ts +++ b/ext/crypto/lib.deno_crypto.d.ts @@ -69,6 +69,10 @@ interface EcdsaParams extends Algorithm { hash: HashAlgorithmIdentifier; } +interface RsaHashedImportParams extends Algorithm { + hash: HashAlgorithmIdentifier; +} + interface RsaHashedKeyGenParams extends RsaKeyGenParams { hash: HashAlgorithmIdentifier; } @@ -170,9 +174,9 @@ interface SubtleCrypto { keyUsages: KeyUsage[], ): Promise<CryptoKey>; importKey( - format: "raw", + format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, - algorithm: AlgorithmIdentifier | HmacImportParams, + algorithm: AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams, extractable: boolean, keyUsages: KeyUsage[], ): Promise<CryptoKey>; |