method SubtleCrypto.generateKeySubtleCrypto.generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams,extractable: boolean,keyUsages: KeyUsage[],): Promise<CryptoKeyPair>DeprecatedParametersalgorithm: RsaHashedKeyGenParams | EcKeyGenParamsextractable: booleankeyUsages: KeyUsage[]Return TypePromise<CryptoKeyPair>SubtleCrypto.generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams,extractable: boolean,keyUsages: KeyUsage[],): Promise<CryptoKey>DeprecatedParametersalgorithm: AesKeyGenParams | HmacKeyGenParamsextractable: booleankeyUsages: KeyUsage[]Return TypePromise<CryptoKey>SubtleCrypto.generateKey(algorithm: AlgorithmIdentifier,extractable: boolean,keyUsages: KeyUsage[],): Promise<CryptoKeyPair | CryptoKey>DeprecatedParametersalgorithm: AlgorithmIdentifierextractable: booleankeyUsages: KeyUsage[]Return TypePromise<CryptoKeyPair | CryptoKey>