method
crypto.webcrypto.SubtleCrypto.importKey
format: 'jwk',
algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm | KmacImportParams,
extractable: boolean,
format: 'spki' | 'pkcs8' | 'raw' | 'raw-public' | 'raw-secret' | 'raw-seed',
keyData: BufferSource,
algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm | KmacImportParams,
extractable: boolean,
Referenced types
type AlgorithmIdentifier = Algorithm | string
interface RsaHashedImportParams
interface EcKeyImportParams
interface HmacImportParams
interface AesKeyAlgorithm
interface KmacImportParams
type KeyUsage = 'decapsulateBits' | 'decapsulateKey' | 'decrypt' | 'deriveBits' | 'deriveKey' | 'encapsulateBits' | 'encapsulateKey' | 'encrypt' | 'sign' | 'unwrapKey' | 'verify' | 'wrapKey'