1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00

chore(crypto): use WebIDL BufferSource in types (#11510)

This commit is contained in:
Divy Srivastava 2021-07-26 17:30:19 +05:30 committed by GitHub
parent 865d9ddd51
commit 9e89fe2fe8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,61 +98,17 @@ interface SubtleCrypto {
sign( sign(
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
key: CryptoKey, key: CryptoKey,
data: data: BufferSource,
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
): Promise<ArrayBuffer>; ): Promise<ArrayBuffer>;
verify( verify(
algorithm: AlgorithmIdentifier | RsaPssParams, algorithm: AlgorithmIdentifier | RsaPssParams,
key: CryptoKey, key: CryptoKey,
signature: signature: BufferSource,
| Int8Array data: BufferSource,
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
data:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
): Promise<boolean>; ): Promise<boolean>;
digest( digest(
algorithm: AlgorithmIdentifier, algorithm: AlgorithmIdentifier,
data: data: BufferSource,
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
): Promise<ArrayBuffer>; ): Promise<ArrayBuffer>;
} }