1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -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(
algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams,
key: CryptoKey,
data:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
data: BufferSource,
): Promise<ArrayBuffer>;
verify(
algorithm: AlgorithmIdentifier | RsaPssParams,
key: CryptoKey,
signature:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
data:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
signature: BufferSource,
data: BufferSource,
): Promise<boolean>;
digest(
algorithm: AlgorithmIdentifier,
data:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer,
data: BufferSource,
): Promise<ArrayBuffer>;
}