generateKey

suspend fun generateKey(algorithm: Ed25519, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair(source)

MDN Reference


suspend fun generateKey(algorithm: RsaHashedKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair(source)
suspend fun generateKey(algorithm: EcKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKeyPair(source)
suspend fun generateKey(algorithm: AesKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey(source)
suspend fun generateKey(algorithm: HmacKeyGenParams, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey(source)
suspend fun generateKey(algorithm: Pbkdf2Params, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): CryptoKey(source)
suspend fun generateKey(algorithm: Algorithm, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Any(source)
suspend fun generateKey(algorithm: String, extractable: Boolean, keyUsages: ReadonlyArray<KeyUsage>): Any(source)