|
4 | 4 | /////////////////////////////
|
5 | 5 |
|
6 | 6 | interface Algorithm {
|
7 |
| - name?: string; |
| 7 | + name: string; |
8 | 8 | }
|
9 | 9 |
|
10 | 10 | interface AriaRequestEventInit extends EventInit {
|
@@ -10439,18 +10439,20 @@ declare var StyleSheetPageList: {
|
10439 | 10439 | }
|
10440 | 10440 |
|
10441 | 10441 | interface SubtleCrypto {
|
10442 |
| - decrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; |
10443 |
| - deriveBits(algorithm: string | Algorithm, baseKey: CryptoKey, length: number): any; |
10444 |
| - deriveKey(algorithm: string | Algorithm, baseKey: CryptoKey, derivedKeyType: string | Algorithm, extractable: boolean, keyUsages: string[]): any; |
10445 |
| - digest(algorithm: string | Algorithm, data: ArrayBufferView): any; |
10446 |
| - encrypt(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; |
10447 |
| - exportKey(format: string, key: CryptoKey): any; |
10448 |
| - generateKey(algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; |
10449 |
| - importKey(format: string, keyData: ArrayBufferView, algorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; |
10450 |
| - sign(algorithm: string | Algorithm, key: CryptoKey, data: ArrayBufferView): any; |
10451 |
| - unwrapKey(format: string, wrappedKey: ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): any; |
10452 |
| - verify(algorithm: string | Algorithm, key: CryptoKey, signature: ArrayBufferView, data: ArrayBufferView): any; |
10453 |
| - wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): any; |
| 10442 | + decrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: ArrayBuffer | ArrayBufferView): PromiseLike<ArrayBuffer>; |
| 10443 | + deriveBits(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, length: number): PromiseLike<ArrayBuffer>; |
| 10444 | + deriveKey(algorithm: string | EcdhKeyDeriveParams | DhKeyDeriveParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: string | AesDerivedKeyParams | HmacImportParams | ConcatParams | HkdfCtrParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; |
| 10445 | + digest(algorithm: string | Algorithm, data: ArrayBuffer | ArrayBufferView): PromiseLike<ArrayBuffer>; |
| 10446 | + encrypt(algorithm: string | RsaOaepParams | AesCtrParams | AesCbcParams | AesCmacParams | AesGcmParams | AesCfbParams, key: CryptoKey, data: ArrayBuffer | ArrayBufferView): PromiseLike<ArrayBuffer>; |
| 10447 | + exportKey(format: string, key: CryptoKey): PromiseLike<ArrayBuffer | JsonWebKey>; |
| 10448 | + generateKey(algorithm: string, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair | CryptoKey>; |
| 10449 | + generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams | DhKeyGenParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKeyPair>; |
| 10450 | + generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; |
| 10451 | + importKey(format: string, keyData: ArrayBuffer | ArrayBufferView | JsonWebKey, algorithm: string | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | DhImportKeyParams, extractable: boolean, keyUsages: string[]): PromiseLike<CryptoKey>; |
| 10452 | + sign(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, data: ArrayBuffer | ArrayBufferView): PromiseLike<ArrayBuffer>; |
| 10453 | + unwrapKey(format: string, wrappedKey: ArrayBuffer | ArrayBufferView, unwrappingKey: CryptoKey, unwrapAlgorithm: string | Algorithm, unwrappedKeyAlgorithm: string | Algorithm, extractable: boolean, keyUsages: string[]): PromiseLike<ArrayBuffer>; |
| 10454 | + verify(algorithm: string | RsaPssParams | EcdsaParams | AesCmacParams, key: CryptoKey, signature: ArrayBuffer | ArrayBufferView, data: ArrayBuffer | ArrayBufferView): PromiseLike<boolean>; |
| 10455 | + wrapKey(format: string, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: string | Algorithm): PromiseLike<ArrayBuffer>; |
10454 | 10456 | }
|
10455 | 10457 |
|
10456 | 10458 | declare var SubtleCrypto: {
|
@@ -12658,6 +12660,177 @@ declare var HTMLPictureElement: {
|
12658 | 12660 | new(): HTMLPictureElement;
|
12659 | 12661 | }
|
12660 | 12662 |
|
| 12663 | +interface RsaKeyGenParams extends Algorithm { |
| 12664 | + modulusLength: number; |
| 12665 | + publicExponent: Uint8Array; |
| 12666 | +} |
| 12667 | + |
| 12668 | +interface RsaHashedKeyGenParams extends RsaKeyGenParams { |
| 12669 | + hash: string | Algorithm; |
| 12670 | +} |
| 12671 | + |
| 12672 | +interface RsaKeyAlgorithm extends KeyAlgorithm { |
| 12673 | + modulusLength: number; |
| 12674 | + publicExponent: Uint8Array; |
| 12675 | +} |
| 12676 | + |
| 12677 | +interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm { |
| 12678 | + hash: string | Algorithm; |
| 12679 | +} |
| 12680 | + |
| 12681 | +interface RsaHashedImportParams { |
| 12682 | + hash: string | Algorithm; |
| 12683 | +} |
| 12684 | + |
| 12685 | +interface RsaPssParams { |
| 12686 | + saltLength: number; |
| 12687 | +} |
| 12688 | + |
| 12689 | +interface RsaOaepParams extends Algorithm { |
| 12690 | + label?: ArrayBuffer | ArrayBufferView; |
| 12691 | +} |
| 12692 | + |
| 12693 | +interface EcdsaParams extends Algorithm { |
| 12694 | + hash: string | Algorithm; |
| 12695 | +} |
| 12696 | + |
| 12697 | +interface EcKeyGenParams extends Algorithm { |
| 12698 | + typedCurve: string; |
| 12699 | +} |
| 12700 | + |
| 12701 | +interface EcKeyAlgorithm extends KeyAlgorithm { |
| 12702 | + typedCurve: string; |
| 12703 | +} |
| 12704 | + |
| 12705 | +interface EcKeyImportParams { |
| 12706 | + typedCurve: string; |
| 12707 | +} |
| 12708 | + |
| 12709 | +interface EcdhKeyDeriveParams extends Algorithm { |
| 12710 | + public: CryptoKey; |
| 12711 | +} |
| 12712 | + |
| 12713 | +interface AesCtrParams extends Algorithm { |
| 12714 | + counter: ArrayBuffer | ArrayBufferView; |
| 12715 | + length: number; |
| 12716 | +} |
| 12717 | + |
| 12718 | +interface AesKeyAlgorithm extends KeyAlgorithm { |
| 12719 | + length: number; |
| 12720 | +} |
| 12721 | + |
| 12722 | +interface AesKeyGenParams extends Algorithm { |
| 12723 | + length: number; |
| 12724 | +} |
| 12725 | + |
| 12726 | +interface AesDerivedKeyParams extends Algorithm { |
| 12727 | + length: number; |
| 12728 | +} |
| 12729 | + |
| 12730 | +interface AesCbcParams extends Algorithm { |
| 12731 | + iv: ArrayBuffer | ArrayBufferView; |
| 12732 | +} |
| 12733 | + |
| 12734 | +interface AesCmacParams extends Algorithm { |
| 12735 | + length: number; |
| 12736 | +} |
| 12737 | + |
| 12738 | +interface AesGcmParams extends Algorithm { |
| 12739 | + iv: ArrayBuffer | ArrayBufferView; |
| 12740 | + additionalData?: ArrayBuffer | ArrayBufferView; |
| 12741 | + tagLength?: number; |
| 12742 | +} |
| 12743 | + |
| 12744 | +interface AesCfbParams extends Algorithm { |
| 12745 | + iv: ArrayBuffer | ArrayBufferView; |
| 12746 | +} |
| 12747 | + |
| 12748 | +interface HmacImportParams extends Algorithm { |
| 12749 | + hash?: string | Algorithm; |
| 12750 | + length?: number; |
| 12751 | +} |
| 12752 | + |
| 12753 | +interface HmacKeyAlgorithm extends KeyAlgorithm { |
| 12754 | + hash: string | Algorithm; |
| 12755 | + length: number; |
| 12756 | +} |
| 12757 | + |
| 12758 | +interface HmacKeyGenParams extends Algorithm { |
| 12759 | + hash: string | Algorithm; |
| 12760 | + length?: number; |
| 12761 | +} |
| 12762 | + |
| 12763 | +interface DhKeyGenParams extends Algorithm { |
| 12764 | + prime: Uint8Array; |
| 12765 | + generator: Uint8Array; |
| 12766 | +} |
| 12767 | + |
| 12768 | +interface DhKeyAlgorithm extends KeyAlgorithm { |
| 12769 | + prime: Uint8Array; |
| 12770 | + generator: Uint8Array; |
| 12771 | +} |
| 12772 | + |
| 12773 | +interface DhKeyDeriveParams extends Algorithm { |
| 12774 | + public: CryptoKey; |
| 12775 | +} |
| 12776 | + |
| 12777 | +interface DhImportKeyParams extends Algorithm { |
| 12778 | + prime: Uint8Array; |
| 12779 | + generator: Uint8Array; |
| 12780 | +} |
| 12781 | + |
| 12782 | +interface ConcatParams extends Algorithm { |
| 12783 | + hash?: string | Algorithm; |
| 12784 | + algorithmId: Uint8Array; |
| 12785 | + partyUInfo: Uint8Array; |
| 12786 | + partyVInfo: Uint8Array; |
| 12787 | + publicInfo?: Uint8Array; |
| 12788 | + privateInfo?: Uint8Array; |
| 12789 | +} |
| 12790 | + |
| 12791 | +interface HkdfCtrParams extends Algorithm { |
| 12792 | + hash: string | Algorithm; |
| 12793 | + label: ArrayBuffer | ArrayBufferView; |
| 12794 | + context: ArrayBuffer | ArrayBufferView; |
| 12795 | +} |
| 12796 | + |
| 12797 | +interface Pbkdf2Params extends Algorithm { |
| 12798 | + salt: ArrayBuffer | ArrayBufferView; |
| 12799 | + iterations: number; |
| 12800 | + hash: string | Algorithm; |
| 12801 | +} |
| 12802 | + |
| 12803 | +interface RsaOtherPrimesInfo { |
| 12804 | + r: string; |
| 12805 | + d: string; |
| 12806 | + t: string; |
| 12807 | +} |
| 12808 | + |
| 12809 | +interface JsonWebKey { |
| 12810 | + kty: string; |
| 12811 | + use?: string; |
| 12812 | + key_ops?: string[]; |
| 12813 | + alg?: string; |
| 12814 | + kid?: string; |
| 12815 | + x5u?: string; |
| 12816 | + x5c?: string; |
| 12817 | + x5t?: string; |
| 12818 | + ext?: boolean; |
| 12819 | + crv?: string; |
| 12820 | + x?: string; |
| 12821 | + y?: string; |
| 12822 | + d?: string; |
| 12823 | + n?: string; |
| 12824 | + e?: string; |
| 12825 | + p?: string; |
| 12826 | + q?: string; |
| 12827 | + dp?: string; |
| 12828 | + dq?: string; |
| 12829 | + qi?: string; |
| 12830 | + oth?: RsaOtherPrimesInfo[]; |
| 12831 | + k?: string; |
| 12832 | +} |
| 12833 | + |
12661 | 12834 | declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
|
12662 | 12835 |
|
12663 | 12836 | interface ErrorEventHandler {
|
|
0 commit comments