summaryrefslogtreecommitdiff
path: root/ext/crypto/lib.deno_crypto.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/lib.deno_crypto.d.ts')
-rw-r--r--ext/crypto/lib.deno_crypto.d.ts84
1 files changed, 42 insertions, 42 deletions
diff --git a/ext/crypto/lib.deno_crypto.d.ts b/ext/crypto/lib.deno_crypto.d.ts
index 5369dac3b..0c00470ec 100644
--- a/ext/crypto/lib.deno_crypto.d.ts
+++ b/ext/crypto/lib.deno_crypto.d.ts
@@ -5,26 +5,26 @@
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
-/** @category Web Crypto API */
+/** @category Crypto */
declare var crypto: Crypto;
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface Algorithm {
name: string;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface KeyAlgorithm {
name: string;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare type AlgorithmIdentifier = string | Algorithm;
-/** @category Web Crypto API */
+/** @category Crypto */
declare type HashAlgorithmIdentifier = AlgorithmIdentifier;
-/** @category Web Crypto API */
+/** @category Crypto */
declare type KeyType = "private" | "public" | "secret";
-/** @category Web Crypto API */
+/** @category Crypto */
declare type KeyUsage =
| "decrypt"
| "deriveBits"
@@ -34,19 +34,19 @@ declare type KeyUsage =
| "unwrapKey"
| "verify"
| "wrapKey";
-/** @category Web Crypto API */
+/** @category Crypto */
declare type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
-/** @category Web Crypto API */
+/** @category Crypto */
declare type NamedCurve = string;
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface JsonWebKey {
alg?: string;
crv?: string;
@@ -68,129 +68,129 @@ declare interface JsonWebKey {
y?: string;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesGcmParams extends Algorithm {
iv: BufferSource;
additionalData?: BufferSource;
tagLength?: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: Uint8Array;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaPssParams extends Algorithm {
saltLength: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaOaepParams extends Algorithm {
label?: Uint8Array;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: Uint8Array;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesDerivedKeyParams extends Algorithm {
length: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesKeyGenParams extends Algorithm {
length: number;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
@@ -198,7 +198,7 @@ declare interface AesKeyAlgorithm extends KeyAlgorithm {
/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic
* key.
*
- * @category Web Crypto API
+ * @category Crypto
*/
declare interface CryptoKey {
readonly algorithm: KeyAlgorithm;
@@ -207,7 +207,7 @@ declare interface CryptoKey {
readonly usages: KeyUsage[];
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare var CryptoKey: {
readonly prototype: CryptoKey;
new (): never;
@@ -216,14 +216,14 @@ declare var CryptoKey: {
/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for
* an asymmetric cryptography algorithm, also known as a public-key algorithm.
*
- * @category Web Crypto API
+ * @category Crypto
*/
declare interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare var CryptoKeyPair: {
readonly prototype: CryptoKeyPair;
new (): never;
@@ -233,7 +233,7 @@ declare var CryptoKeyPair: {
* functions. It is accessed via the Crypto.subtle properties available in a
* window context (via Window.crypto).
*
- * @category Web Crypto API
+ * @category Crypto
*/
declare interface SubtleCrypto {
generateKey(
@@ -367,13 +367,13 @@ declare interface SubtleCrypto {
): Promise<CryptoKey>;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare var SubtleCrypto: {
readonly prototype: SubtleCrypto;
new (): never;
};
-/** @category Web Crypto API */
+/** @category Crypto */
declare interface Crypto {
readonly subtle: SubtleCrypto;
getRandomValues<
@@ -393,7 +393,7 @@ declare interface Crypto {
randomUUID(): `${string}-${string}-${string}-${string}-${string}`;
}
-/** @category Web Crypto API */
+/** @category Crypto */
declare var Crypto: {
readonly prototype: Crypto;
new (): never;