From d389e3dc74c33a44de8734c181758502a0ab54b6 Mon Sep 17 00:00:00 2001 From: nealfennimore Date: Thu, 22 Aug 2024 17:52:51 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nealfenn?= =?UTF-8?q?imore/webcrypto-ts@08adddf0a0fcc3a623585904be4e67d99f6c52ff=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- enums/aes_shared.Alg.Mode.html | 2 +- enums/ec_shared.Alg.Curve.html | 2 +- enums/ec_shared.Alg.Variant.html | 2 +- enums/hmac.Alg.Code.html | 2 +- enums/kdf_shared.Alg.Variant.html | 2 +- enums/key_usages.KeyFormats.html | 2 +- enums/key_usages.KeyUsages.html | 2 +- enums/rsa_shared.Alg.Variant.html | 2 +- enums/sha_shared.Alg.Variant.html | 2 +- index.html | 2 +- interfaces/aes_shared.AesCbcCryptoKey.html | 2 +- .../aes_shared.AesCbcProxiedCryptoKey.html | 2 +- interfaces/aes_shared.AesCtrCryptoKey.html | 2 +- .../aes_shared.AesCtrProxiedCryptoKey.html | 2 +- interfaces/aes_shared.AesGcmCryptoKey.html | 2 +- .../aes_shared.AesGcmProxiedCryptoKey.html | 2 +- interfaces/aes_shared.AesKwCryptoKey.html | 2 +- .../aes_shared.AesKwProxiedCryptoKey.html | 2 +- interfaces/ec_shared.EcdhCryptoKeyPair.html | 2 +- interfaces/ec_shared.EcdhPrivCryptoKey.html | 2 +- .../ec_shared.EcdhProxiedCryptoKeyPair.html | 2 +- .../ec_shared.EcdhProxiedPrivCryptoKey.html | 2 +- .../ec_shared.EcdhProxiedPubCryptoKey.html | 2 +- interfaces/ec_shared.EcdhPubCryptoKey.html | 2 +- interfaces/ec_shared.EcdsaCryptoKeyPair.html | 2 +- interfaces/ec_shared.EcdsaPrivCryptoKey.html | 2 +- .../ec_shared.EcdsaProxiedCryptoKeyPair.html | 2 +- .../ec_shared.EcdsaProxiedPrivCryptoKey.html | 2 +- .../ec_shared.EcdsaProxiedPubCryptoKey.html | 2 +- interfaces/ec_shared.EcdsaPubCryptoKey.html | 2 +- interfaces/hmac.HmacCryptoKey.html | 2 +- interfaces/hmac.HmacProxiedCryptoKey.html | 2 +- interfaces/kdf_shared.HkdfKeyMaterial.html | 2 +- .../kdf_shared.HkdfProxiedKeyMaterial.html | 2 +- interfaces/kdf_shared.Pbkdf2KeyMaterial.html | 2 +- .../kdf_shared.Pbkdf2ProxiedKeyMaterial.html | 2 +- interfaces/params.AesCbcKeyAlgorithm.html | 2 +- interfaces/params.AesCtrKeyAlgorithm.html | 2 +- interfaces/params.AesGcmKeyAlgorithm.html | 2 +- interfaces/params.AesKwKeyAlgorithm.html | 2 +- interfaces/params.EnforcedAesCbcParams.html | 2 +- interfaces/params.EnforcedAesCtrParams.html | 2 +- interfaces/params.EnforcedAesGcmParams.html | 2 +- interfaces/params.EnforcedAesKeyGenParams.html | 2 +- interfaces/params.EnforcedAesKwParams.html | 2 +- interfaces/params.EnforcedEcKeyGenParams.html | 2 +- .../params.EnforcedEcKeyImportParams.html | 2 +- .../params.EnforcedEcdhKeyDeriveParams.html | 2 +- interfaces/params.EnforcedEcdsaParams.html | 2 +- interfaces/params.EnforcedHkdfParams.html | 2 +- .../params.EnforcedHmacImportParams.html | 2 +- .../params.EnforcedHmacKeyGenParams.html | 2 +- interfaces/params.EnforcedPbkdf2Params.html | 2 +- .../params.EnforcedRsaHashedImportParams.html | 2 +- .../params.EnforcedRsaHashedKeyGenParams.html | 2 +- interfaces/params.EnforcedRsaOaepParams.html | 2 +- interfaces/params.EnforcedRsaPssParams.html | 2 +- .../params.EnforcedRsassaPkcs1v15Params.html | 2 +- interfaces/params.HmacKeyAlgorithm.html | 2 +- interfaces/proxy.ProxiedCryptoKey.html | 2 +- interfaces/proxy.ProxiedCryptoKeyPair.html | 2 +- interfaces/proxy.ProxyKeyPairHandlers.html | 2 +- .../rsa_shared.RsaOaepCryptoKeyPair.html | 2 +- .../rsa_shared.RsaOaepPrivCryptoKey.html | 2 +- ...rsa_shared.RsaOaepProxiedCryptoKeyPair.html | 2 +- ...rsa_shared.RsaOaepProxiedPrivCryptoKey.html | 2 +- .../rsa_shared.RsaOaepProxiedPubCryptoKey.html | 2 +- interfaces/rsa_shared.RsaOaepPubCryptoKey.html | 2 +- interfaces/rsa_shared.RsaPssCryptoKeyPair.html | 2 +- interfaces/rsa_shared.RsaPssPrivCryptoKey.html | 2 +- .../rsa_shared.RsaPssProxiedCryptoKeyPair.html | 2 +- .../rsa_shared.RsaPssProxiedPrivCryptoKey.html | 2 +- .../rsa_shared.RsaPssProxiedPubCryptoKey.html | 2 +- interfaces/rsa_shared.RsaPssPubCryptoKey.html | 2 +- ...rsa_shared.RsassaPkcs1V15CryptoKeyPair.html | 2 +- ...rsa_shared.RsassaPkcs1V15PrivCryptoKey.html | 2 +- ...red.RsassaPkcs1V15ProxiedCryptoKeyPair.html | 2 +- ...red.RsassaPkcs1V15ProxiedPrivCryptoKey.html | 2 +- ...ared.RsassaPkcs1V15ProxiedPubCryptoKey.html | 2 +- .../rsa_shared.RsassaPkcs1V15PubCryptoKey.html | 2 +- interfaces/sha_shared.Sha1ArrayBuffer.html | 2 +- interfaces/sha_shared.Sha256ArrayBuffer.html | 2 +- interfaces/sha_shared.Sha384ArrayBuffer.html | 2 +- interfaces/sha_shared.Sha512ArrayBuffer.html | 2 +- modules.html | 2 +- modules/aes.html | 4 ++-- modules/aes_aes_cbc.html | 16 ++++++++-------- modules/aes_aes_ctr.html | 18 +++++++++--------- modules/aes_aes_gcm.html | 16 ++++++++-------- modules/aes_aes_kw.html | 12 ++++++------ modules/aes_shared.AesShared.html | 2 +- modules/aes_shared.Alg.html | 2 +- modules/aes_shared.html | 4 ++-- modules/ec.html | 4 ++-- modules/ec_ecdh.html | 14 +++++++------- modules/ec_ecdsa.html | 14 +++++++------- modules/ec_shared.Alg.html | 2 +- modules/ec_shared.EcShared.html | 2 +- modules/ec_shared.html | 4 ++-- modules/hmac.Alg.html | 2 +- modules/hmac.html | 12 ++++++------ modules/index.html | 4 ++-- modules/kdf.html | 4 ++-- modules/kdf_hkdf.html | 8 ++++---- modules/kdf_pbkdf.html | 8 ++++---- modules/kdf_shared.Alg.html | 2 +- modules/kdf_shared.KdfShared.html | 2 +- modules/kdf_shared.html | 2 +- modules/key_usages.html | 4 ++-- modules/params.html | 4 ++-- modules/proxy.html | 4 ++-- modules/random.IV.html | 4 ++-- modules/random.Salt.html | 4 ++-- modules/random.UUID.html | 4 ++-- modules/random.html | 4 ++-- modules/rsa.html | 4 ++-- modules/rsa_rsa_oaep.html | 18 +++++++++--------- modules/rsa_rsa_pss.html | 14 +++++++------- modules/rsa_rsassa_pkcs1_v1_5.html | 14 +++++++------- modules/rsa_shared.Alg.html | 2 +- modules/rsa_shared.RsaShared.html | 2 +- modules/rsa_shared.html | 4 ++-- modules/sha.html | 4 ++-- modules/sha_sha_1.html | 6 +++--- modules/sha_sha_256.html | 6 +++--- modules/sha_sha_384.html | 6 +++--- modules/sha_sha_512.html | 6 +++--- modules/sha_shared.Alg.html | 2 +- modules/sha_shared.ShaShared.html | 2 +- modules/sha_shared.html | 4 ++-- modules/webcrypto.html | 6 +++--- 131 files changed, 228 insertions(+), 228 deletions(-) diff --git a/enums/aes_shared.Alg.Mode.html b/enums/aes_shared.Alg.Mode.html index 545a8b48..5aa7964f 100644 --- a/enums/aes_shared.Alg.Mode.html +++ b/enums/aes_shared.Alg.Mode.html @@ -1 +1 @@ -Mode | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Mode | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/ec_shared.Alg.Curve.html b/enums/ec_shared.Alg.Curve.html index 678b15f6..5a28fd55 100644 --- a/enums/ec_shared.Alg.Curve.html +++ b/enums/ec_shared.Alg.Curve.html @@ -1 +1 @@ -Curve | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Curve | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/ec_shared.Alg.Variant.html b/enums/ec_shared.Alg.Variant.html index 982f24c7..f580a181 100644 --- a/enums/ec_shared.Alg.Variant.html +++ b/enums/ec_shared.Alg.Variant.html @@ -1 +1 @@ -Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/hmac.Alg.Code.html b/enums/hmac.Alg.Code.html index 0cacc4be..e19a6a97 100644 --- a/enums/hmac.Alg.Code.html +++ b/enums/hmac.Alg.Code.html @@ -1 +1 @@ -Code | @nfen/webcrypto-ts

Enumeration hmac.Alg.Code

source · []

Enumeration Members

\ No newline at end of file +Code | @nfen/webcrypto-ts

Enumeration hmac.Alg.Code

source · []

Enumeration Members

\ No newline at end of file diff --git a/enums/kdf_shared.Alg.Variant.html b/enums/kdf_shared.Alg.Variant.html index 16300166..3ca3ce26 100644 --- a/enums/kdf_shared.Alg.Variant.html +++ b/enums/kdf_shared.Alg.Variant.html @@ -1 +1 @@ -Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/key_usages.KeyFormats.html b/enums/key_usages.KeyFormats.html index 0d976b02..174cf60c 100644 --- a/enums/key_usages.KeyFormats.html +++ b/enums/key_usages.KeyFormats.html @@ -1 +1 @@ -KeyFormats | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +KeyFormats | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/key_usages.KeyUsages.html b/enums/key_usages.KeyUsages.html index 184ae784..14b9907e 100644 --- a/enums/key_usages.KeyUsages.html +++ b/enums/key_usages.KeyUsages.html @@ -1 +1 @@ -KeyUsages | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +KeyUsages | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/rsa_shared.Alg.Variant.html b/enums/rsa_shared.Alg.Variant.html index ab714f4d..cd2ab58f 100644 --- a/enums/rsa_shared.Alg.Variant.html +++ b/enums/rsa_shared.Alg.Variant.html @@ -1 +1 @@ -Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/enums/sha_shared.Alg.Variant.html b/enums/sha_shared.Alg.Variant.html index d6643d6e..df49a83b 100644 --- a/enums/sha_shared.Alg.Variant.html +++ b/enums/sha_shared.Alg.Variant.html @@ -1 +1 @@ -Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file +Variant | @nfen/webcrypto-ts

Enumeration Members

\ No newline at end of file diff --git a/index.html b/index.html index 39f8da3c..9510d4c7 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ -@nfen/webcrypto-ts
Expand description
+@nfen/webcrypto-ts
Expand description

Webcrypto TS

Test codecov

A minimal ESM based, no dependency, typescript wrapper for the Web Crypto API. Supports both nodejs and browser Web Crypto.

diff --git a/interfaces/aes_shared.AesCbcCryptoKey.html b/interfaces/aes_shared.AesCbcCryptoKey.html index 5ea3e181..14a1593e 100644 --- a/interfaces/aes_shared.AesCbcCryptoKey.html +++ b/interfaces/aes_shared.AesCbcCryptoKey.html @@ -1 +1 @@ -AesCbcCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +AesCbcCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/aes_shared.AesCbcProxiedCryptoKey.html b/interfaces/aes_shared.AesCbcProxiedCryptoKey.html index 77e6aeea..cbfd8b98 100644 --- a/interfaces/aes_shared.AesCbcProxiedCryptoKey.html +++ b/interfaces/aes_shared.AesCbcProxiedCryptoKey.html @@ -1 +1 @@ -AesCbcProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +AesCbcProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/aes_shared.AesCtrCryptoKey.html b/interfaces/aes_shared.AesCtrCryptoKey.html index 33fbf3db..f4509cb0 100644 --- a/interfaces/aes_shared.AesCtrCryptoKey.html +++ b/interfaces/aes_shared.AesCtrCryptoKey.html @@ -1 +1 @@ -AesCtrCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +AesCtrCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/aes_shared.AesCtrProxiedCryptoKey.html b/interfaces/aes_shared.AesCtrProxiedCryptoKey.html index 99c4189d..15316699 100644 --- a/interfaces/aes_shared.AesCtrProxiedCryptoKey.html +++ b/interfaces/aes_shared.AesCtrProxiedCryptoKey.html @@ -1 +1 @@ -AesCtrProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +AesCtrProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/aes_shared.AesGcmCryptoKey.html b/interfaces/aes_shared.AesGcmCryptoKey.html index 291e16fc..87b91220 100644 --- a/interfaces/aes_shared.AesGcmCryptoKey.html +++ b/interfaces/aes_shared.AesGcmCryptoKey.html @@ -1 +1 @@ -AesGcmCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +AesGcmCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/aes_shared.AesGcmProxiedCryptoKey.html b/interfaces/aes_shared.AesGcmProxiedCryptoKey.html index dcb858d4..47343445 100644 --- a/interfaces/aes_shared.AesGcmProxiedCryptoKey.html +++ b/interfaces/aes_shared.AesGcmProxiedCryptoKey.html @@ -1 +1 @@ -AesGcmProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +AesGcmProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

decrypt

Parameters

Returns Promise<ArrayBuffer>

encrypt

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

Returns Promise<CryptoKey>

wrapKey

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/aes_shared.AesKwCryptoKey.html b/interfaces/aes_shared.AesKwCryptoKey.html index f5de366d..5ce01854 100644 --- a/interfaces/aes_shared.AesKwCryptoKey.html +++ b/interfaces/aes_shared.AesKwCryptoKey.html @@ -1 +1 @@ -AesKwCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +AesKwCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/aes_shared.AesKwProxiedCryptoKey.html b/interfaces/aes_shared.AesKwProxiedCryptoKey.html index 22e17b58..a09053de 100644 --- a/interfaces/aes_shared.AesKwProxiedCryptoKey.html +++ b/interfaces/aes_shared.AesKwProxiedCryptoKey.html @@ -1 +1 @@ -AesKwProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

  • format: KeyFormat
  • wrappedKey: BufferSource
  • wrappedKeyAlgorithm: EnforcedImportParams
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]

Returns Promise<CryptoKey>

wrapKey

Parameters

  • format: KeyFormat
  • key: CryptoKey

Returns Promise<ArrayBuffer>

\ No newline at end of file +AesKwProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

unwrapKey

Parameters

  • format: KeyFormat
  • wrappedKey: BufferSource
  • wrappedKeyAlgorithm: EnforcedImportParams
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]

Returns Promise<CryptoKey>

wrapKey

Parameters

  • format: KeyFormat
  • key: CryptoKey

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhCryptoKeyPair.html b/interfaces/ec_shared.EcdhCryptoKeyPair.html index e02de691..342c8e40 100644 --- a/interfaces/ec_shared.EcdhCryptoKeyPair.html +++ b/interfaces/ec_shared.EcdhCryptoKeyPair.html @@ -1 +1 @@ -EcdhCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EcdhCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhPrivCryptoKey.html b/interfaces/ec_shared.EcdhPrivCryptoKey.html index 7ac8a89a..acc58117 100644 --- a/interfaces/ec_shared.EcdhPrivCryptoKey.html +++ b/interfaces/ec_shared.EcdhPrivCryptoKey.html @@ -1 +1 @@ -EcdhPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +EcdhPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhProxiedCryptoKeyPair.html b/interfaces/ec_shared.EcdhProxiedCryptoKeyPair.html index 314a9579..f789092c 100644 --- a/interfaces/ec_shared.EcdhProxiedCryptoKeyPair.html +++ b/interfaces/ec_shared.EcdhProxiedCryptoKeyPair.html @@ -1 +1 @@ -EcdhProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file +EcdhProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhProxiedPrivCryptoKey.html b/interfaces/ec_shared.EcdhProxiedPrivCryptoKey.html index 1afcda10..fcd9da1c 100644 --- a/interfaces/ec_shared.EcdhProxiedPrivCryptoKey.html +++ b/interfaces/ec_shared.EcdhProxiedPrivCryptoKey.html @@ -1 +1 @@ -EcdhProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file +EcdhProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhProxiedPubCryptoKey.html b/interfaces/ec_shared.EcdhProxiedPubCryptoKey.html index 00cd10de..685be6f8 100644 --- a/interfaces/ec_shared.EcdhProxiedPubCryptoKey.html +++ b/interfaces/ec_shared.EcdhProxiedPubCryptoKey.html @@ -1 +1 @@ -EcdhProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file +EcdhProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdhPubCryptoKey.html b/interfaces/ec_shared.EcdhPubCryptoKey.html index 545cf8ca..7b8aa929 100644 --- a/interfaces/ec_shared.EcdhPubCryptoKey.html +++ b/interfaces/ec_shared.EcdhPubCryptoKey.html @@ -1 +1 @@ -EcdhPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +EcdhPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaCryptoKeyPair.html b/interfaces/ec_shared.EcdsaCryptoKeyPair.html index 5b7c41ff..b0f193c1 100644 --- a/interfaces/ec_shared.EcdsaCryptoKeyPair.html +++ b/interfaces/ec_shared.EcdsaCryptoKeyPair.html @@ -1 +1 @@ -EcdsaCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EcdsaCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaPrivCryptoKey.html b/interfaces/ec_shared.EcdsaPrivCryptoKey.html index 88434623..e1d676bb 100644 --- a/interfaces/ec_shared.EcdsaPrivCryptoKey.html +++ b/interfaces/ec_shared.EcdsaPrivCryptoKey.html @@ -1 +1 @@ -EcdsaPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +EcdsaPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaProxiedCryptoKeyPair.html b/interfaces/ec_shared.EcdsaProxiedCryptoKeyPair.html index 66671600..d99a8149 100644 --- a/interfaces/ec_shared.EcdsaProxiedCryptoKeyPair.html +++ b/interfaces/ec_shared.EcdsaProxiedCryptoKeyPair.html @@ -1 +1 @@ -EcdsaProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file +EcdsaProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaProxiedPrivCryptoKey.html b/interfaces/ec_shared.EcdsaProxiedPrivCryptoKey.html index dc4be72a..80c2bd19 100644 --- a/interfaces/ec_shared.EcdsaProxiedPrivCryptoKey.html +++ b/interfaces/ec_shared.EcdsaProxiedPrivCryptoKey.html @@ -1 +1 @@ -EcdsaProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +EcdsaProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaProxiedPubCryptoKey.html b/interfaces/ec_shared.EcdsaProxiedPubCryptoKey.html index 2a8cfa41..1a29519a 100644 --- a/interfaces/ec_shared.EcdsaProxiedPubCryptoKey.html +++ b/interfaces/ec_shared.EcdsaProxiedPubCryptoKey.html @@ -1 +1 @@ -EcdsaProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +EcdsaProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/ec_shared.EcdsaPubCryptoKey.html b/interfaces/ec_shared.EcdsaPubCryptoKey.html index f4f844e8..a8100c4f 100644 --- a/interfaces/ec_shared.EcdsaPubCryptoKey.html +++ b/interfaces/ec_shared.EcdsaPubCryptoKey.html @@ -1 +1 @@ -EcdsaPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +EcdsaPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/hmac.HmacCryptoKey.html b/interfaces/hmac.HmacCryptoKey.html index 41e99d2c..06755d3b 100644 --- a/interfaces/hmac.HmacCryptoKey.html +++ b/interfaces/hmac.HmacCryptoKey.html @@ -1 +1 @@ -HmacCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +HmacCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/hmac.HmacProxiedCryptoKey.html b/interfaces/hmac.HmacProxiedCryptoKey.html index bf8b7927..b777cb4c 100644 --- a/interfaces/hmac.HmacProxiedCryptoKey.html +++ b/interfaces/hmac.HmacProxiedCryptoKey.html @@ -1 +1 @@ -HmacProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • data: BufferSource

Returns Promise<ArrayBuffer>

Parameters

  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file +HmacProxiedCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • data: BufferSource

Returns Promise<ArrayBuffer>

Parameters

  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file diff --git a/interfaces/kdf_shared.HkdfKeyMaterial.html b/interfaces/kdf_shared.HkdfKeyMaterial.html index 43868d41..a78c502a 100644 --- a/interfaces/kdf_shared.HkdfKeyMaterial.html +++ b/interfaces/kdf_shared.HkdfKeyMaterial.html @@ -1 +1 @@ -HkdfKeyMaterial | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +HkdfKeyMaterial | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/kdf_shared.HkdfProxiedKeyMaterial.html b/interfaces/kdf_shared.HkdfProxiedKeyMaterial.html index d806b8a5..eaecc320 100644 --- a/interfaces/kdf_shared.HkdfProxiedKeyMaterial.html +++ b/interfaces/kdf_shared.HkdfProxiedKeyMaterial.html @@ -1 +1 @@ -HkdfProxiedKeyMaterial | @nfen/webcrypto-ts

Properties

Methods

deriveBits

Parameters

Returns Promise<ArrayBuffer>

deriveKey

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file +HkdfProxiedKeyMaterial | @nfen/webcrypto-ts

Properties

Methods

deriveBits

Parameters

Returns Promise<ArrayBuffer>

deriveKey

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file diff --git a/interfaces/kdf_shared.Pbkdf2KeyMaterial.html b/interfaces/kdf_shared.Pbkdf2KeyMaterial.html index 8fbfd776..32cc9ac9 100644 --- a/interfaces/kdf_shared.Pbkdf2KeyMaterial.html +++ b/interfaces/kdf_shared.Pbkdf2KeyMaterial.html @@ -1 +1 @@ -Pbkdf2KeyMaterial | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +Pbkdf2KeyMaterial | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/kdf_shared.Pbkdf2ProxiedKeyMaterial.html b/interfaces/kdf_shared.Pbkdf2ProxiedKeyMaterial.html index 5cbfd995..c6b7834e 100644 --- a/interfaces/kdf_shared.Pbkdf2ProxiedKeyMaterial.html +++ b/interfaces/kdf_shared.Pbkdf2ProxiedKeyMaterial.html @@ -1 +1 @@ -Pbkdf2ProxiedKeyMaterial | @nfen/webcrypto-ts

Properties

Methods

deriveBits

Parameters

Returns Promise<ArrayBuffer>

deriveKey

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file +Pbkdf2ProxiedKeyMaterial | @nfen/webcrypto-ts

Properties

Methods

deriveBits

Parameters

Returns Promise<ArrayBuffer>

deriveKey

Parameters

Returns Promise<HmacCryptoKey | AesCryptoKeys>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

\ No newline at end of file diff --git a/interfaces/params.AesCbcKeyAlgorithm.html b/interfaces/params.AesCbcKeyAlgorithm.html index b6fe6480..f3b76175 100644 --- a/interfaces/params.AesCbcKeyAlgorithm.html +++ b/interfaces/params.AesCbcKeyAlgorithm.html @@ -1 +1 @@ -AesCbcKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file +AesCbcKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/params.AesCtrKeyAlgorithm.html b/interfaces/params.AesCtrKeyAlgorithm.html index d8644372..16845607 100644 --- a/interfaces/params.AesCtrKeyAlgorithm.html +++ b/interfaces/params.AesCtrKeyAlgorithm.html @@ -1 +1 @@ -AesCtrKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file +AesCtrKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/params.AesGcmKeyAlgorithm.html b/interfaces/params.AesGcmKeyAlgorithm.html index acd74daa..65897090 100644 --- a/interfaces/params.AesGcmKeyAlgorithm.html +++ b/interfaces/params.AesGcmKeyAlgorithm.html @@ -1 +1 @@ -AesGcmKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file +AesGcmKeyAlgorithm | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/params.AesKwKeyAlgorithm.html b/interfaces/params.AesKwKeyAlgorithm.html index 9db989be..4e5998db 100644 --- a/interfaces/params.AesKwKeyAlgorithm.html +++ b/interfaces/params.AesKwKeyAlgorithm.html @@ -1 +1 @@ -AesKwKeyAlgorithm | @nfen/webcrypto-ts

Properties

\ No newline at end of file +AesKwKeyAlgorithm | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedAesCbcParams.html b/interfaces/params.EnforcedAesCbcParams.html index 0c2ba168..5c2ec0df 100644 --- a/interfaces/params.EnforcedAesCbcParams.html +++ b/interfaces/params.EnforcedAesCbcParams.html @@ -1 +1 @@ -EnforcedAesCbcParams | @nfen/webcrypto-ts

Properties

iv

iv: BufferSource

\ No newline at end of file +EnforcedAesCbcParams | @nfen/webcrypto-ts

Properties

iv

iv: BufferSource

\ No newline at end of file diff --git a/interfaces/params.EnforcedAesCtrParams.html b/interfaces/params.EnforcedAesCtrParams.html index 08b25585..58efd5c2 100644 --- a/interfaces/params.EnforcedAesCtrParams.html +++ b/interfaces/params.EnforcedAesCtrParams.html @@ -1 +1 @@ -EnforcedAesCtrParams | @nfen/webcrypto-ts

Properties

counter

counter: BufferSource

length

length: number

\ No newline at end of file +EnforcedAesCtrParams | @nfen/webcrypto-ts

Properties

counter

counter: BufferSource

length

length: number

\ No newline at end of file diff --git a/interfaces/params.EnforcedAesGcmParams.html b/interfaces/params.EnforcedAesGcmParams.html index f18d737d..da897a76 100644 --- a/interfaces/params.EnforcedAesGcmParams.html +++ b/interfaces/params.EnforcedAesGcmParams.html @@ -1 +1 @@ -EnforcedAesGcmParams | @nfen/webcrypto-ts

Properties

additionalData

additionalData?: BufferSource

iv

iv: BufferSource

name

name: string

\ No newline at end of file +EnforcedAesGcmParams | @nfen/webcrypto-ts

Properties

additionalData

additionalData?: BufferSource

iv

iv: BufferSource

name

name: string

\ No newline at end of file diff --git a/interfaces/params.EnforcedAesKeyGenParams.html b/interfaces/params.EnforcedAesKeyGenParams.html index 94017966..17ffa9a9 100644 --- a/interfaces/params.EnforcedAesKeyGenParams.html +++ b/interfaces/params.EnforcedAesKeyGenParams.html @@ -1 +1 @@ -EnforcedAesKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedAesKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedAesKwParams.html b/interfaces/params.EnforcedAesKwParams.html index 28f49f58..09d63c5b 100644 --- a/interfaces/params.EnforcedAesKwParams.html +++ b/interfaces/params.EnforcedAesKwParams.html @@ -1 +1 @@ -EnforcedAesKwParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedAesKwParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedEcKeyGenParams.html b/interfaces/params.EnforcedEcKeyGenParams.html index 20287c67..c19c9380 100644 --- a/interfaces/params.EnforcedEcKeyGenParams.html +++ b/interfaces/params.EnforcedEcKeyGenParams.html @@ -1 +1 @@ -EnforcedEcKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedEcKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedEcKeyImportParams.html b/interfaces/params.EnforcedEcKeyImportParams.html index 57042bba..7362bb51 100644 --- a/interfaces/params.EnforcedEcKeyImportParams.html +++ b/interfaces/params.EnforcedEcKeyImportParams.html @@ -1 +1 @@ -EnforcedEcKeyImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedEcKeyImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedEcdhKeyDeriveParams.html b/interfaces/params.EnforcedEcdhKeyDeriveParams.html index 26161c15..f12650ea 100644 --- a/interfaces/params.EnforcedEcdhKeyDeriveParams.html +++ b/interfaces/params.EnforcedEcdhKeyDeriveParams.html @@ -1 +1 @@ -EnforcedEcdhKeyDeriveParams | @nfen/webcrypto-ts
\ No newline at end of file +EnforcedEcdhKeyDeriveParams | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/params.EnforcedEcdsaParams.html b/interfaces/params.EnforcedEcdsaParams.html index 797e2378..df0c0c79 100644 --- a/interfaces/params.EnforcedEcdsaParams.html +++ b/interfaces/params.EnforcedEcdsaParams.html @@ -1 +1 @@ -EnforcedEcdsaParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedEcdsaParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedHkdfParams.html b/interfaces/params.EnforcedHkdfParams.html index 9f780bee..34131b13 100644 --- a/interfaces/params.EnforcedHkdfParams.html +++ b/interfaces/params.EnforcedHkdfParams.html @@ -1 +1 @@ -EnforcedHkdfParams | @nfen/webcrypto-ts

Properties

info

info: BufferSource

salt

salt: BufferSource

\ No newline at end of file +EnforcedHkdfParams | @nfen/webcrypto-ts

Properties

info

info: BufferSource

salt

salt: BufferSource

\ No newline at end of file diff --git a/interfaces/params.EnforcedHmacImportParams.html b/interfaces/params.EnforcedHmacImportParams.html index fdb09560..0991b854 100644 --- a/interfaces/params.EnforcedHmacImportParams.html +++ b/interfaces/params.EnforcedHmacImportParams.html @@ -1 +1 @@ -EnforcedHmacImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedHmacImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedHmacKeyGenParams.html b/interfaces/params.EnforcedHmacKeyGenParams.html index b1ad7a72..8968e1b1 100644 --- a/interfaces/params.EnforcedHmacKeyGenParams.html +++ b/interfaces/params.EnforcedHmacKeyGenParams.html @@ -1 +1 @@ -EnforcedHmacKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedHmacKeyGenParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedPbkdf2Params.html b/interfaces/params.EnforcedPbkdf2Params.html index 524331bf..5df8ad57 100644 --- a/interfaces/params.EnforcedPbkdf2Params.html +++ b/interfaces/params.EnforcedPbkdf2Params.html @@ -1 +1 @@ -EnforcedPbkdf2Params | @nfen/webcrypto-ts

Properties

salt

salt: BufferSource

\ No newline at end of file +EnforcedPbkdf2Params | @nfen/webcrypto-ts

Properties

salt

salt: BufferSource

\ No newline at end of file diff --git a/interfaces/params.EnforcedRsaHashedImportParams.html b/interfaces/params.EnforcedRsaHashedImportParams.html index ab1bbf55..dfeee08c 100644 --- a/interfaces/params.EnforcedRsaHashedImportParams.html +++ b/interfaces/params.EnforcedRsaHashedImportParams.html @@ -1 +1 @@ -EnforcedRsaHashedImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file +EnforcedRsaHashedImportParams | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/params.EnforcedRsaHashedKeyGenParams.html b/interfaces/params.EnforcedRsaHashedKeyGenParams.html index 127144f1..9bdd459c 100644 --- a/interfaces/params.EnforcedRsaHashedKeyGenParams.html +++ b/interfaces/params.EnforcedRsaHashedKeyGenParams.html @@ -1 +1 @@ -EnforcedRsaHashedKeyGenParams | @nfen/webcrypto-ts

Properties

publicExponent

publicExponent: Uint8Array

\ No newline at end of file +EnforcedRsaHashedKeyGenParams | @nfen/webcrypto-ts

Properties

publicExponent

publicExponent: Uint8Array

\ No newline at end of file diff --git a/interfaces/params.EnforcedRsaOaepParams.html b/interfaces/params.EnforcedRsaOaepParams.html index fde967a6..081364e4 100644 --- a/interfaces/params.EnforcedRsaOaepParams.html +++ b/interfaces/params.EnforcedRsaOaepParams.html @@ -1 +1 @@ -EnforcedRsaOaepParams | @nfen/webcrypto-ts

Properties

label

label?: BufferSource

\ No newline at end of file +EnforcedRsaOaepParams | @nfen/webcrypto-ts

Properties

label

label?: BufferSource

\ No newline at end of file diff --git a/interfaces/params.EnforcedRsaPssParams.html b/interfaces/params.EnforcedRsaPssParams.html index 80f257c1..af6fd968 100644 --- a/interfaces/params.EnforcedRsaPssParams.html +++ b/interfaces/params.EnforcedRsaPssParams.html @@ -1 +1 @@ -EnforcedRsaPssParams | @nfen/webcrypto-ts

Properties

saltLength

saltLength: number

\ No newline at end of file +EnforcedRsaPssParams | @nfen/webcrypto-ts

Properties

saltLength

saltLength: number

\ No newline at end of file diff --git a/interfaces/params.EnforcedRsassaPkcs1v15Params.html b/interfaces/params.EnforcedRsassaPkcs1v15Params.html index 115d13e7..c1a8830a 100644 --- a/interfaces/params.EnforcedRsassaPkcs1v15Params.html +++ b/interfaces/params.EnforcedRsassaPkcs1v15Params.html @@ -1 +1 @@ -EnforcedRsassaPkcs1v15Params | @nfen/webcrypto-ts
\ No newline at end of file +EnforcedRsassaPkcs1v15Params | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/params.HmacKeyAlgorithm.html b/interfaces/params.HmacKeyAlgorithm.html index 5d67b93b..6f324adb 100644 --- a/interfaces/params.HmacKeyAlgorithm.html +++ b/interfaces/params.HmacKeyAlgorithm.html @@ -1 +1 @@ -HmacKeyAlgorithm | @nfen/webcrypto-ts

Properties

\ No newline at end of file +HmacKeyAlgorithm | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/proxy.ProxiedCryptoKey.html b/interfaces/proxy.ProxiedCryptoKey.html index b8bdff72..fb1f0310 100644 --- a/interfaces/proxy.ProxiedCryptoKey.html +++ b/interfaces/proxy.ProxiedCryptoKey.html @@ -1 +1 @@ -ProxiedCryptoKey | @nfen/webcrypto-ts

Properties

\ No newline at end of file +ProxiedCryptoKey | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/proxy.ProxiedCryptoKeyPair.html b/interfaces/proxy.ProxiedCryptoKeyPair.html index 83f73da2..978d62e8 100644 --- a/interfaces/proxy.ProxiedCryptoKeyPair.html +++ b/interfaces/proxy.ProxiedCryptoKeyPair.html @@ -1 +1 @@ -ProxiedCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +ProxiedCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/proxy.ProxyKeyPairHandlers.html b/interfaces/proxy.ProxyKeyPairHandlers.html index d05ab772..fa03adb6 100644 --- a/interfaces/proxy.ProxyKeyPairHandlers.html +++ b/interfaces/proxy.ProxyKeyPairHandlers.html @@ -1 +1 @@ -ProxyKeyPairHandlers | @nfen/webcrypto-ts

Properties

\ No newline at end of file +ProxyKeyPairHandlers | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepCryptoKeyPair.html b/interfaces/rsa_shared.RsaOaepCryptoKeyPair.html index 07eda982..b1c49c0f 100644 --- a/interfaces/rsa_shared.RsaOaepCryptoKeyPair.html +++ b/interfaces/rsa_shared.RsaOaepCryptoKeyPair.html @@ -1 +1 @@ -RsaOaepCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +RsaOaepCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepPrivCryptoKey.html b/interfaces/rsa_shared.RsaOaepPrivCryptoKey.html index 5ac4e1e9..ebb40076 100644 --- a/interfaces/rsa_shared.RsaOaepPrivCryptoKey.html +++ b/interfaces/rsa_shared.RsaOaepPrivCryptoKey.html @@ -1 +1 @@ -RsaOaepPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsaOaepPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepProxiedCryptoKeyPair.html b/interfaces/rsa_shared.RsaOaepProxiedCryptoKeyPair.html index faeba472..88321d37 100644 --- a/interfaces/rsa_shared.RsaOaepProxiedCryptoKeyPair.html +++ b/interfaces/rsa_shared.RsaOaepProxiedCryptoKeyPair.html @@ -1 +1 @@ -RsaOaepProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file +RsaOaepProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepProxiedPrivCryptoKey.html b/interfaces/rsa_shared.RsaOaepProxiedPrivCryptoKey.html index ca1a3db7..d551a231 100644 --- a/interfaces/rsa_shared.RsaOaepProxiedPrivCryptoKey.html +++ b/interfaces/rsa_shared.RsaOaepProxiedPrivCryptoKey.html @@ -1 +1 @@ -RsaOaepProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<CryptoKey>

\ No newline at end of file +RsaOaepProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<CryptoKey>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepProxiedPubCryptoKey.html b/interfaces/rsa_shared.RsaOaepProxiedPubCryptoKey.html index 48a4601d..c90259ed 100644 --- a/interfaces/rsa_shared.RsaOaepProxiedPubCryptoKey.html +++ b/interfaces/rsa_shared.RsaOaepProxiedPubCryptoKey.html @@ -1 +1 @@ -RsaOaepProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file +RsaOaepProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

Returns Promise<ArrayBuffer>

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaOaepPubCryptoKey.html b/interfaces/rsa_shared.RsaOaepPubCryptoKey.html index 21a35d54..6dfdfda3 100644 --- a/interfaces/rsa_shared.RsaOaepPubCryptoKey.html +++ b/interfaces/rsa_shared.RsaOaepPubCryptoKey.html @@ -1 +1 @@ -RsaOaepPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsaOaepPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssCryptoKeyPair.html b/interfaces/rsa_shared.RsaPssCryptoKeyPair.html index a6bb2ec6..5e1036c6 100644 --- a/interfaces/rsa_shared.RsaPssCryptoKeyPair.html +++ b/interfaces/rsa_shared.RsaPssCryptoKeyPair.html @@ -1 +1 @@ -RsaPssCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +RsaPssCryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssPrivCryptoKey.html b/interfaces/rsa_shared.RsaPssPrivCryptoKey.html index 48688ae9..f83a67ae 100644 --- a/interfaces/rsa_shared.RsaPssPrivCryptoKey.html +++ b/interfaces/rsa_shared.RsaPssPrivCryptoKey.html @@ -1 +1 @@ -RsaPssPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsaPssPrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssProxiedCryptoKeyPair.html b/interfaces/rsa_shared.RsaPssProxiedCryptoKeyPair.html index 9b560558..fbeb46b5 100644 --- a/interfaces/rsa_shared.RsaPssProxiedCryptoKeyPair.html +++ b/interfaces/rsa_shared.RsaPssProxiedCryptoKeyPair.html @@ -1 +1 @@ -RsaPssProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file +RsaPssProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssProxiedPrivCryptoKey.html b/interfaces/rsa_shared.RsaPssProxiedPrivCryptoKey.html index adfd7215..1f7d696e 100644 --- a/interfaces/rsa_shared.RsaPssProxiedPrivCryptoKey.html +++ b/interfaces/rsa_shared.RsaPssProxiedPrivCryptoKey.html @@ -1 +1 @@ -RsaPssProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • saltLength: number
  • data: BufferSource

Returns Promise<ArrayBuffer>

\ No newline at end of file +RsaPssProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • saltLength: number
  • data: BufferSource

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssProxiedPubCryptoKey.html b/interfaces/rsa_shared.RsaPssProxiedPubCryptoKey.html index 5191dda5..cfd075af 100644 --- a/interfaces/rsa_shared.RsaPssProxiedPubCryptoKey.html +++ b/interfaces/rsa_shared.RsaPssProxiedPubCryptoKey.html @@ -1 +1 @@ -RsaPssProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • saltLength: number
  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file +RsaPssProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • saltLength: number
  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsaPssPubCryptoKey.html b/interfaces/rsa_shared.RsaPssPubCryptoKey.html index fdb731f2..ceeeeb73 100644 --- a/interfaces/rsa_shared.RsaPssPubCryptoKey.html +++ b/interfaces/rsa_shared.RsaPssPubCryptoKey.html @@ -1 +1 @@ -RsaPssPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsaPssPubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15CryptoKeyPair.html b/interfaces/rsa_shared.RsassaPkcs1V15CryptoKeyPair.html index ff9a6c60..00375529 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15CryptoKeyPair.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15CryptoKeyPair.html @@ -1 +1 @@ -RsassaPkcs1V15CryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file +RsassaPkcs1V15CryptoKeyPair | @nfen/webcrypto-ts

Properties

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15PrivCryptoKey.html b/interfaces/rsa_shared.RsassaPkcs1V15PrivCryptoKey.html index 00fdfa6b..597b7b72 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15PrivCryptoKey.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15PrivCryptoKey.html @@ -1 +1 @@ -RsassaPkcs1V15PrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsassaPkcs1V15PrivCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedCryptoKeyPair.html b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedCryptoKeyPair.html index 37848adf..bc7e17cc 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedCryptoKeyPair.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedCryptoKeyPair.html @@ -1 +1 @@ -RsassaPkcs1V15ProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file +RsassaPkcs1V15ProxiedCryptoKeyPair | @nfen/webcrypto-ts
\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPrivCryptoKey.html b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPrivCryptoKey.html index 47fdc272..3c2dd679 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPrivCryptoKey.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPrivCryptoKey.html @@ -1 +1 @@ -RsassaPkcs1V15ProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • data: BufferSource

Returns Promise<ArrayBuffer>

\ No newline at end of file +RsassaPkcs1V15ProxiedPrivCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • data: BufferSource

Returns Promise<ArrayBuffer>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPubCryptoKey.html b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPubCryptoKey.html index 42422b1e..6853c5ce 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPubCryptoKey.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15ProxiedPubCryptoKey.html @@ -1 +1 @@ -RsassaPkcs1V15ProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file +RsassaPkcs1V15ProxiedPubCryptoKey | @nfen/webcrypto-ts

Properties

Methods

Parameters

  • format: KeyFormat

Returns Promise<ArrayBuffer | JsonWebKey>

Parameters

  • signature: BufferSource
  • data: BufferSource

Returns Promise<boolean>

\ No newline at end of file diff --git a/interfaces/rsa_shared.RsassaPkcs1V15PubCryptoKey.html b/interfaces/rsa_shared.RsassaPkcs1V15PubCryptoKey.html index 552855b6..ab004fb9 100644 --- a/interfaces/rsa_shared.RsassaPkcs1V15PubCryptoKey.html +++ b/interfaces/rsa_shared.RsassaPkcs1V15PubCryptoKey.html @@ -1 +1 @@ -RsassaPkcs1V15PubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file +RsassaPkcs1V15PubCryptoKey | @nfen/webcrypto-ts

Properties

algorithm

algorithm: KeyAlgorithm

extractable

extractable: boolean

type

type: KeyType

usages

usages: KeyUsage[]

\ No newline at end of file diff --git a/interfaces/sha_shared.Sha1ArrayBuffer.html b/interfaces/sha_shared.Sha1ArrayBuffer.html index 5f77f458..b35446a7 100644 --- a/interfaces/sha_shared.Sha1ArrayBuffer.html +++ b/interfaces/sha_shared.Sha1ArrayBuffer.html @@ -1,4 +1,4 @@ -Sha1ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

+Sha1ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Methods

slice

(begin: number, end?: number): ArrayBuffer

Returns a section of an ArrayBuffer.

diff --git a/interfaces/sha_shared.Sha256ArrayBuffer.html b/interfaces/sha_shared.Sha256ArrayBuffer.html index 8b9e7869..7e4b095d 100644 --- a/interfaces/sha_shared.Sha256ArrayBuffer.html +++ b/interfaces/sha_shared.Sha256ArrayBuffer.html @@ -1,4 +1,4 @@ -Sha256ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

+Sha256ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Methods

slice

(begin: number, end?: number): ArrayBuffer

Returns a section of an ArrayBuffer.

diff --git a/interfaces/sha_shared.Sha384ArrayBuffer.html b/interfaces/sha_shared.Sha384ArrayBuffer.html index 5232af9e..c38fd0e6 100644 --- a/interfaces/sha_shared.Sha384ArrayBuffer.html +++ b/interfaces/sha_shared.Sha384ArrayBuffer.html @@ -1,4 +1,4 @@ -Sha384ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

+Sha384ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Methods

slice

(begin: number, end?: number): ArrayBuffer

Returns a section of an ArrayBuffer.

diff --git a/interfaces/sha_shared.Sha512ArrayBuffer.html b/interfaces/sha_shared.Sha512ArrayBuffer.html index 7429ea07..86fc7606 100644 --- a/interfaces/sha_shared.Sha512ArrayBuffer.html +++ b/interfaces/sha_shared.Sha512ArrayBuffer.html @@ -1,4 +1,4 @@ -Sha512ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

+Sha512ArrayBuffer | @nfen/webcrypto-ts

Properties

[toStringTag]

[toStringTag]: string

byteLength

byteLength: number

Read-only. The length of the ArrayBuffer (in bytes).

Methods

slice

(begin: number, end?: number): ArrayBuffer

Returns a section of an ArrayBuffer.

diff --git a/modules.html b/modules.html index ac4ef84c..e2390372 100644 --- a/modules.html +++ b/modules.html @@ -1,4 +1,4 @@ -@nfen/webcrypto-ts

Modules

All AES related modes and functions

+@nfen/webcrypto-ts

Modules

All AES related modes and functions

Code related to AES_CBC mode

Code related to AES_CTR mode

Code related to AES_GCM mode

diff --git a/modules/aes.html b/modules/aes.html index 018ec5da..fa61074f 100644 --- a/modules/aes.html +++ b/modules/aes.html @@ -1,3 +1,3 @@ -aes | @nfen/webcrypto-ts

Module aes

source · []
Expand description
+aes | @nfen/webcrypto-ts

Module aes

source · []
Expand description

All AES related modes and functions

-

References

Renames and re-exports aes/aes_cbc
Renames and re-exports aes/aes_ctr
Renames and re-exports aes/aes_gcm
Renames and re-exports aes/aes_kw
Re-exports AesCbcCryptoKey
Re-exports AesCryptoKeys
Re-exports AesCtrCryptoKey
Re-exports AesGcmCryptoKey
Re-exports AesKwCryptoKey
Re-exports Alg
\ No newline at end of file +

References

Renames and re-exports aes/aes_cbc
Renames and re-exports aes/aes_ctr
Renames and re-exports aes/aes_gcm
Renames and re-exports aes/aes_kw
Re-exports AesCbcCryptoKey
Re-exports AesCryptoKeys
Re-exports AesCtrCryptoKey
Re-exports AesGcmCryptoKey
Re-exports AesKwCryptoKey
Re-exports Alg
\ No newline at end of file diff --git a/modules/aes_aes_cbc.html b/modules/aes_aes_cbc.html index 0562b815..61f3df5d 100644 --- a/modules/aes_aes_cbc.html +++ b/modules/aes_aes_cbc.html @@ -1,40 +1,40 @@ -aes/aes_cbc | @nfen/webcrypto-ts
Expand description
+aes/aes_cbc | @nfen/webcrypto-ts
Expand description

Code related to AES_CBC mode

-

Functions

+

Functions

Decrypt data with an AES_CBC key

example
const plaintextBytes = await AES_CBC.decrypt(
{ iv },
key.self,
ciphertextBytes
);
example
const plaintextBytes = await key.decrypt(
{ iv },
ciphertextBytes
);
-

Parameters

Returns Promise<ArrayBuffer>

+

Parameters

Returns Promise<ArrayBuffer>

Encrypt payload with an AES_CBC key

example
const key = await AES_CBC.generateKey();
const iv = await IV.generate();
const ciphertextBytes = await AES_CBC.encrypt(
{ iv },
key.self,
new TextEncoder().encode('message')
);
example
const key = await AES_CBC.generateKey();
const iv = await IV.generate();
const ciphertextBytes = await key.encrypt(
{ iv },
new TextEncoder().encode('message')
);
-

Parameters

Returns Promise<ArrayBuffer>

+

Parameters

Returns Promise<ArrayBuffer>

Export an AES_CBC key

example
const key = await AES_CBC.generateKey();
const jwk = await AES_CBC.exportKey("jwk", key.self);
example
const key = await AES_CBC.generateKey();
const jwk = await key.exportKey("jwk");
-

Parameters

Returns Promise<ArrayBuffer | JsonWebKey>

+

Parameters

Returns Promise<ArrayBuffer | JsonWebKey>

Generate a new AES_CBC key

example
const key = await AES_CBC.generateKey();
 

Parameters

  • algorithm: Omit<EnforcedAesKeyGenParams, "name"> = { length: 256, -}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]

Returns Promise<AesCbcProxiedCryptoKey>

+}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<AesCbcProxiedCryptoKey>

    Import an AES_CBC key

    example
    const jwk = await AES_CBC.importKey("jwk", jwk, {
    length: 256,
    });
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<AesCbcKeyAlgorithm, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesCbcProxiedCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<AesCbcKeyAlgorithm, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesCbcProxiedCryptoKey>

    Unwrap a wrapped key using the key encryption key

    example
    const wrappedKey = await AES_CBC.wrapKey("raw", dek.self, kek.self, {
    iv,
    });
    const unwrappedKey = await AES_CBC.unwrapKey(
    "raw",
    wrappedKey,
    { name: Alg.Mode.AES_CBC },
    kek.self,
    { iv }
    );
    example
    const wrappedKey = await AES_CBC.wrapKey("raw", dek.self, kek.self, {
    iv,
    });
    const unwrappedKey = await kek.unwrapKey(
    "raw",
    wrappedKey,
    { name: Alg.Mode.AES_CBC },
    { iv }
    );
    -

    Parameters

    Returns Promise<CryptoKey>

    +

    Parameters

    Returns Promise<CryptoKey>

    Wrap another key with an AES_CBC key

    example
    const kek = await AES_CBC.generateKey({ length: 256 }, true, [
    "wrapKey",
    "unwrapKey",
    ]);
    const dek: AesCbcCryptoKey = await AES_CBC.generateKey({
    length: 256,
    });
    const iv = await IV.generate();
    const wrappedKey = await AES_CBC.wrapKey("raw", dek, kek, {
    iv,
    });
    diff --git a/modules/aes_aes_ctr.html b/modules/aes_aes_ctr.html index 15889180..5a6590a2 100644 --- a/modules/aes_aes_ctr.html +++ b/modules/aes_aes_ctr.html @@ -1,45 +1,45 @@ -aes/aes_ctr | @nfen/webcrypto-ts
    Expand description
    +aes/aes_ctr | @nfen/webcrypto-ts
    Expand description

    Code related to AES_CTR mode

    -

    Functions

    +

    Functions

    Decrypt with an AES_CTR key

    example
    const data = await AES_CTR.decrypt({length, counter}, key.self, data);
     
    example
    const data = await key.decrypt({length, counter}, data);
     
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Encrypt with an AES_CTR key

    example
    const key = await AES_CTR.generateKey();
    const message = new TextEncoder().encode("a message");
    const length = 8;
    const counter = await AES_CTR.generateCounter(length);
    const data = await AES_CTR.encrypt({length, counter}, key.self, message);
    example
    const key = await AES_CTR.generateKey();
    const message = new TextEncoder().encode("a message");
    const length = 8;
    const counter = await AES_CTR.generateCounter(length);
    const data = await key.encrypt({length, counter}, message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Export an AES_CTR key into the specified format

    example
    const key = await AES_CTR.generateKey();
    const jwk = await AES_CTR.exportKey("jwk", key.self);
    example
    const key = await AES_CTR.generateKey();
    const jwk = await key.exportKey("jwk");
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generates a counter, with the given length, starting from the count of 1. The nonce is randomized.

    example
    const counter = await AES_CTR.generateCounter();
     
    -

    Parameters

    • counterLength: number = 8

    Returns Promise<Uint8Array>

    +

    Parameters

    • counterLength: number = 8

    Returns Promise<Uint8Array>

    Generate a new AES_CTR key

    example
    const key = await AES_CTR.generateKey();
     

    Parameters

    • algorithm: Omit<EnforcedAesKeyGenParams, "name"> = { length: 256, -}
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesCtrProxiedCryptoKey>

    +}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<AesCtrProxiedCryptoKey>

    Import an AES_CTR key from the specified format

    example
    const key = await AES_CTR.importKey("jwk", jwk, { length: 256 });
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<AesCtrKeyAlgorithm, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesCtrProxiedCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<AesCtrKeyAlgorithm, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesCtrProxiedCryptoKey>

    Unwrap a wrapped key using the key encryption key

    example
    const dek = await AES_CTR.unwrapKey("raw", wrappedKey, {name: "AES_CTR"}, kek.self, {length, counter});
     
    example
    const dek = await kek.unwrapKey("raw", wrappedKey, {name: "AES_CTR"}, {length, counter});
     
    -

    Parameters

    Returns Promise<CryptoKey>

    +

    Parameters

    Returns Promise<CryptoKey>

    Wrap another key with an AES_CTR key

    example
    const kek = await AES_CTR.generateKey({length: 256}, true, ['wrapKey', 'unwrapKey']);
    const dek = await AES_CTR.generateKey();
    const length = 8;
    const counter = await AES_CTR.generateCounter(length);
    const wrappedKey = await AES_CTR.wrapKey("raw", dek.self, kek.self, {length, counter});
    diff --git a/modules/aes_aes_gcm.html b/modules/aes_aes_gcm.html index 435b72d6..a60c9caf 100644 --- a/modules/aes_aes_gcm.html +++ b/modules/aes_aes_gcm.html @@ -1,40 +1,40 @@ -aes/aes_gcm | @nfen/webcrypto-ts
    Expand description
    +aes/aes_gcm | @nfen/webcrypto-ts
    Expand description

    Code related to AES_GCM mode

    -

    Functions

    +

    Functions

    Decrypt with an AES_GCM key

    example
    const key = await AES_GCM.generateKey();
    const data = await AES_GCM.decrypt({iv}, key.self, data);
    example
    const key = await AES_GCM.generateKey();
    const data = await key.decrypt({iv}, data);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Encrypt with an AES_GCM key

    example
    const iv = await Random.IV.generate();
    const key = await AES_GCM.generateKey();
    const message = new TextEncoder().encode("a message");
    const data = await AES_GCM.encrypt({iv}, key.self, message);
    example
    const iv = await Random.IV.generate();
    const key = await AES_GCM.generateKey();
    const message = new TextEncoder().encode("a message");
    const data = await key.encrypt({iv}, message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Export an AES_GCM key into the specified format

    example
    const key = await AES_GCM.generateKey();
    const jwk = await AES_GCM.exportKey("jwk", key.self);
    example
    const key = await AES_GCM.generateKey();
    const jwk = await key.exportKey("jwk");
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new AES_GCM key

    example
    const key = await AES_GCM.generateKey();
     

    Parameters

    • algorithm: Omit<EnforcedAesKeyGenParams, "name"> = { length: 256, -}
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesGcmProxiedCryptoKey>

    +}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<AesGcmProxiedCryptoKey>

    Import an AES_GCM key from the specified format

    example
    const key = await AES_GCM.importKey("jwk", jwk, { length: 256 });
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<AesGcmKeyAlgorithm, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesGcmProxiedCryptoKey>

    +

    Parameters

    Returns Promise<AesGcmProxiedCryptoKey>

    Unwrap a wrapped key using the key encryption key

    example
    const dek = await AES_GCM.unwrapKey("raw", wrappedKey, {name: "AES_GCM"}, kek, {iv});
     
    example
    const dek = await kek.unwrapKey("raw", wrappedKey, {name: "AES_GCM"}, {iv});
     
    -

    Parameters

    Returns Promise<CryptoKey>

    +

    Parameters

    Returns Promise<CryptoKey>

    Wrap another key with an AES_GCM key

    example
    const iv = await Random.IV.generate();
    const kek = await AES_GCM.generateKey({length: 256}, true, ['wrapKey', 'unwrapKey']);
    const dek = await AES_GCM.generateKey();
    const wrappedKey = await AES_GCM.wrapKey("raw", dek.self, kek.self, {iv});
    diff --git a/modules/aes_aes_kw.html b/modules/aes_aes_kw.html index 64d4e835..40ead7a0 100644 --- a/modules/aes_aes_kw.html +++ b/modules/aes_aes_kw.html @@ -1,28 +1,28 @@ -aes/aes_kw | @nfen/webcrypto-ts
    Expand description
    +aes/aes_kw | @nfen/webcrypto-ts
    Expand description

    Code related to AES_KW mode

    -

    Functions

    +

    Functions

    Export an AES_KW key into the specified format

    example
    const jwk = await AES_KW.exportKey("jwk", key.self);
     
    example
    const jwk = await key.exportKey("jwk");
     
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new AES_KW key

    example
    const key = await AES_KW.generateKey();
     

    Parameters

    • algorithm: Omit<EnforcedAesKeyGenParams, "name"> = { length: 256, -}
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesKwProxiedCryptoKey>

    +}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<AesKwProxiedCryptoKey>

    Import an AES_KW key from the specified format

    example
    const key = await AES_KW.importKey("jwk", jwk);
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesKwProxiedCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<AesKwProxiedCryptoKey>

    Unwrap a wrapped key using the key encryption key

    example
    const dek = await AES_KW.unwrapKey("raw", wrappedKey, {name: "AES_GCM"}, kek.self);
     
    example
    const dek = await kek.unwrapKey("raw", wrappedKey, {name: "AES_GCM"});
     
    -

    Parameters

    Returns Promise<CryptoKey>

    +

    Parameters

    Returns Promise<CryptoKey>

    Wrap another key with an AES_KW key

    example
    const kek = await AES_KW.generateKey({length: 256}, true, ['wrapKey', 'unwrapKey']);
    const dek = await AES_GCM.generateKey();
    const wrappedKey = await AES_KW.wrapKey("raw", dek.self, kek.self);
    diff --git a/modules/aes_shared.AesShared.html b/modules/aes_shared.AesShared.html index 51a81c0f..19742f6e 100644 --- a/modules/aes_shared.AesShared.html +++ b/modules/aes_shared.AesShared.html @@ -1 +1 @@ -AesShared | @nfen/webcrypto-ts

    Functions

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: T

    Returns Promise<JsonWebKey | ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: EnforcedAesKeyAlgorithms
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • wrappedKey: BufferSource
    • wrappedKeyAlgorithm: EnforcedImportParams
    • unwrappingKey: T
    • unwrappingKeyAlgorithm: EnforcedAesParams
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<CryptoKey>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    \ No newline at end of file +AesShared | @nfen/webcrypto-ts

    Functions

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: T

    Returns Promise<JsonWebKey | ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: EnforcedAesKeyAlgorithms
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: KeyFormat
    • wrappedKey: BufferSource
    • wrappedKeyAlgorithm: EnforcedImportParams
    • unwrappingKey: T
    • unwrappingKeyAlgorithm: EnforcedAesParams
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<CryptoKey>

    Type Parameters

    • T extends CryptoKey

    Parameters

    Returns Promise<ArrayBuffer>

    \ No newline at end of file diff --git a/modules/aes_shared.Alg.html b/modules/aes_shared.Alg.html index c35dc57b..77869be1 100644 --- a/modules/aes_shared.Alg.html +++ b/modules/aes_shared.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/aes_shared.html b/modules/aes_shared.html index 6a4e2261..6238c02b 100644 --- a/modules/aes_shared.html +++ b/modules/aes_shared.html @@ -1,3 +1,3 @@ -aes/shared | @nfen/webcrypto-ts
    \ No newline at end of file diff --git a/modules/ec.html b/modules/ec.html index add0326e..e19894c3 100644 --- a/modules/ec.html +++ b/modules/ec.html @@ -1,3 +1,3 @@ -ec | @nfen/webcrypto-ts

    Module ec

    source · []
    Expand description
    +ec | @nfen/webcrypto-ts

    Module ec

    source · []
    Expand description

    All elliptic curve algorithms

    -

    References

    Re-exports Alg
    Renames and re-exports ec/ecdh
    Renames and re-exports ec/ecdsa
    Re-exports EcCryptoKeyPairs
    Re-exports EcCryptoKeys
    Re-exports EcdhPubCryptoKey
    \ No newline at end of file +

    References

    Re-exports Alg
    Renames and re-exports ec/ecdh
    Renames and re-exports ec/ecdsa
    Re-exports EcCryptoKeyPairs
    Re-exports EcCryptoKeys
    Re-exports EcdhPubCryptoKey
    \ No newline at end of file diff --git a/modules/ec_ecdh.html b/modules/ec_ecdh.html index e082f4cf..2adaaf58 100644 --- a/modules/ec_ecdh.html +++ b/modules/ec_ecdh.html @@ -1,18 +1,18 @@ -ec/ecdh | @nfen/webcrypto-ts
    Expand description
    +ec/ecdh | @nfen/webcrypto-ts
    Expand description

    Code related to ECDH

    -

    Functions

    +

    Functions

    Derive a shared bits between two ECDH key pairs

    example
    const keyPair = await ECDH.generateKey();
    const otherKeyPair = await ECDH.generateKey();
    const bits = await ECDH.deriveBits(
    { public: otherKeyPair.publicKey.self },
    keyPair.privateKey.self,
    128
    );
    example
    const keyPair = await ECDH.generateKey();
    const otherKeyPair = await ECDH.generateKey();
    const bits = await keyPair.privateKey.deriveBits(
    { public: otherKeyPair.publicKey.self },
    128
    );
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Derive a shared key between two ECDH key pairs

    example
    const keyPair = await ECDH.generateKey();
    const otherKeyPair = await ECDH.generateKey();
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    let key = await ECDH.deriveKey(
    { public: otherKeyPair.publicKey.self },
    keyPair.privateKey.self,
    hmacParams
    );
    example
    const keyPair = await ECDH.generateKey();
    const otherKeyPair = await ECDH.generateKey();
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    let key = await keyPair.privateKey.deriveKey(
    { public: otherKeyPair.publicKey.self },
    hmacParams
    );
    -

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    +

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    Export an ECDH public or private key

    example
    const pubKeyJwk = await ECDH.exportKey("jwk", keyPair.publicKey.self);
     
    @@ -22,7 +22,7 @@
    example
    const privKeyJwk = await keyPair.privateKey.exportKey("jwk");
     
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new ECDH keypair

    example
    const keyPair = await ECDH.generateKey();
     
    @@ -32,7 +32,7 @@

    Parameters

    • algorithm: Omit<EnforcedEcKeyGenParams, "name"> = { namedCurve: Alg.Curve.P_521, -}
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<EcdhProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<EcdhProxiedCryptoKeyPair>

    Generate a new ECDH keypair

    alias

    generateKey

    example
    const keyPair = await ECDH.generateKeyPair();
    @@ -43,7 +43,7 @@
     

    Parameters

    • algorithm: Omit<EnforcedEcKeyGenParams, "name"> = { namedCurve: Alg.Curve.P_521, -}
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<EcdhProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<EcdhProxiedCryptoKeyPair>

    Import an ECDH public or private key

    example
    const pubKey = await ECDH.importKey("jwk", pubKeyJwk, { namedCurve: "P-521" }, true, []);
     
    diff --git a/modules/ec_ecdsa.html b/modules/ec_ecdsa.html index 7a02355f..9a3bc2dc 100644 --- a/modules/ec_ecdsa.html +++ b/modules/ec_ecdsa.html @@ -1,6 +1,6 @@ -ec/ecdsa | @nfen/webcrypto-ts
    Expand description
    +ec/ecdsa | @nfen/webcrypto-ts
    Expand description

    Code related to ECDSA

    -

    Functions

    +

    Functions

    Export an ECDSA public or private key

    example
    const pubKeyJwk = await ECDSA.exportKey("jwk", keyPair.publicKey.self);
     
    @@ -10,7 +10,7 @@
    example
    const privKeyJwk = await keyPair.privateKey.exportKey("jwk");
     
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new ECDSA keypair

    example
    const keyPair = await ECDSA.generateKey();
     
    @@ -20,7 +20,7 @@

    Parameters

    • algorithm: Omit<EnforcedEcKeyGenParams, "name"> = { namedCurve: Alg.Curve.P_521, -}
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<EcdsaProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<EcdsaProxiedCryptoKeyPair>

    Generate a new ECDSA keypair

    alias

    generateKey

    example
    const keyPair = await ECDSA.generateKeyPair();
    @@ -31,7 +31,7 @@
     

    Parameters

    • algorithm: Omit<EnforcedEcKeyGenParams, "name"> = { namedCurve: Alg.Curve.P_521, -}
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<EcdsaProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<EcdsaProxiedCryptoKeyPair>

    Import an ECDSA public or private key

    example
    const pubKey = await ECDSA.importKey("jwk", pubKeyJwk, { namedCurve: "P-521" }, true, ['verify']);
     
    @@ -39,13 +39,13 @@

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedEcKeyImportParams, "name"> = { namedCurve: Alg.Curve.P_521, -}
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<EcdsaProxiedPubCryptoKey | EcdsaProxiedPrivCryptoKey>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<EcdsaProxiedPubCryptoKey | EcdsaProxiedPrivCryptoKey>

    Sign a given payload

    example
    const message = new TextEncoder().encode("a message");
    const signature = await ECDSA.sign({hash: "SHA-512"}, keyPair.privateKey.self, message);
    example
    const message = new TextEncoder().encode("a message");
    const signature = await keyPair.privateKey.sign({hash: "SHA-512"}, message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Verify a given signature

    example
    const message = new TextEncoder().encode("a message");
    const isVerified = await ECDSA.verify({hash: "SHA-512"}, keyPair.publicKey.self, signature, message);
    diff --git a/modules/ec_shared.Alg.html b/modules/ec_shared.Alg.html index bbf9d038..bfcbc474 100644 --- a/modules/ec_shared.Alg.html +++ b/modules/ec_shared.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/ec_shared.EcShared.html b/modules/ec_shared.EcShared.html index 79afd7ca..f4c5fa58 100644 --- a/modules/ec_shared.EcShared.html +++ b/modules/ec_shared.EcShared.html @@ -1 +1 @@ -EcShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns Promise<JsonWebKey | ArrayBuffer>

    Type Parameters

    Parameters

    Returns Promise<T>

    Type Parameters

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: EnforcedEcKeyImportParams
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<T>

    \ No newline at end of file +EcShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns Promise<JsonWebKey | ArrayBuffer>

    Type Parameters

    Parameters

    Returns Promise<T>

    Type Parameters

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: EnforcedEcKeyImportParams
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<T>

    \ No newline at end of file diff --git a/modules/ec_shared.html b/modules/ec_shared.html index 28dc1949..108709a1 100644 --- a/modules/ec_shared.html +++ b/modules/ec_shared.html @@ -1,3 +1,3 @@ -ec/shared | @nfen/webcrypto-ts
    Expand description

    Type Aliases

    Namespaces

    Interfaces

    \ No newline at end of file diff --git a/modules/hmac.Alg.html b/modules/hmac.Alg.html index e8cd401f..a48d016c 100644 --- a/modules/hmac.Alg.html +++ b/modules/hmac.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Namespace hmac.Alg

    source · []

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Namespace hmac.Alg

    source · []

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/hmac.html b/modules/hmac.html index a2275fbd..bc0c7543 100644 --- a/modules/hmac.html +++ b/modules/hmac.html @@ -1,28 +1,28 @@ -hmac | @nfen/webcrypto-ts

    Module hmac

    source · []
    Expand description
    +hmac | @nfen/webcrypto-ts

    Module hmac

    source · []
    Expand description

    Code related to HMAC

    -

    Functions

    +

    Functions

    Export an HMAC key into the specified format

    example
    const jwk = await HMAC.exportKey("jwk", key.self);
     
    example
    const jwk = await key.exportKey("jwk");
     
    -

    Parameters

    Returns Promise<JsonWebKey | ArrayBuffer>

    +

    Parameters

    Returns Promise<JsonWebKey | ArrayBuffer>

    Generate a new HMAC key

    example
    const key = await HMAC.generateKey();
     

    Parameters

    • algorithm: Omit<EnforcedHmacKeyGenParams, "name"> = { hash: SHA.Variant.SHA_512, -}
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<HmacProxiedCryptoKey>

    +}
  • extractable: boolean = true
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<HmacProxiedCryptoKey>

    Import an HMAC key from the specified format

    example
    const key = await HMAC.importKey("jwk", jwk, {hash: "SHA-512"});
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedHmacImportParams, "name">
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<HmacProxiedCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedHmacImportParams, "name">
    • extractable: boolean = true
    • Optional keyUsages: KeyUsage[]

    Returns Promise<HmacProxiedCryptoKey>

    Sign a given payload

    example
    const message = new TextEncoder().encode("a message");
    const signature = await HMAC.sign(key.self, message);
    const message = new TextEncoder().encode("a message");
    const signature = await key.sign(message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Verify a given signature

    example
    const isVerified = await HMAC.verify(key, signature, message);
     
    diff --git a/modules/index.html b/modules/index.html index 8d13c843..f438622f 100644 --- a/modules/index.html +++ b/modules/index.html @@ -1,5 +1,5 @@ -index | @nfen/webcrypto-ts

    Module index

    source · []
    Expand description
    +index | @nfen/webcrypto-ts

    Module index

    source · []
    Expand description

    webcrypto-ts main entry point

    example
    import * as WebCrypto from "@nfen/webcrypto-ts";
    import {AES, EC, HMAC, KDF, Random, RSA, SHA} from "@nfen/webcrypto-ts";
    -

    References

    Renames and re-exports aes
    Renames and re-exports ec
    Renames and re-exports hmac
    Renames and re-exports kdf
    Renames and re-exports rsa
    Renames and re-exports random
    Renames and re-exports sha
    \ No newline at end of file +

    References

    Renames and re-exports aes
    Renames and re-exports ec
    Renames and re-exports hmac
    Renames and re-exports kdf
    Renames and re-exports rsa
    Renames and re-exports random
    Renames and re-exports sha
    \ No newline at end of file diff --git a/modules/kdf.html b/modules/kdf.html index 6b41e3b8..a6df0031 100644 --- a/modules/kdf.html +++ b/modules/kdf.html @@ -1,3 +1,3 @@ -kdf | @nfen/webcrypto-ts

    Module kdf

    source · []
    Expand description

    References

    Re-exports Alg
    Renames and re-exports kdf/hkdf
    Re-exports HkdfKeyMaterial
    Renames and re-exports kdf/pbkdf
    \ No newline at end of file diff --git a/modules/kdf_hkdf.html b/modules/kdf_hkdf.html index 79f75d4b..3176abbd 100644 --- a/modules/kdf_hkdf.html +++ b/modules/kdf_hkdf.html @@ -1,18 +1,18 @@ -kdf/hkdf | @nfen/webcrypto-ts
    Expand description
    +kdf/hkdf | @nfen/webcrypto-ts
    Expand description

    Code related to HKDF

    -

    Functions

    +

    Functions

    Derive a number bits with a given key material

    example
    const salt = await Random.Salt.generate();
    const info = await Random.getValues(6);
    const bits = await HKDF.deriveBits(
    { salt, info, hash: "SHA-512" },
    keyMaterial,
    128
    );
    example
    const salt = await Random.Salt.generate();
    const info = await Random.getValues(6);
    const bits = await keyMaterial.deriveBits(
    { salt, info, hash: "SHA-512" },
    128
    );
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Derive a shared key from HKDF key material

    example
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    const salt = await Random.Salt.generate();
    const info = await Random.getValues(6);
    let key = await HKDF.deriveKey(
    { salt, info, hash: "SHA-512" },
    keyMaterial,
    hmacParams
    );
    example
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    const salt = await Random.Salt.generate();
    const info = await Random.getValues(6);
    let key = await keyMaterial.deriveKey(
    { salt, info, hash: "SHA-512" },
    hmacParams
    );
    -

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    +

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    Generate key material for deriving

    example
    const keyMaterial = await HKDF.generateKeyMaterial("raw", new TextEncoder().encode("lots_of_entropy"));
     
    diff --git a/modules/kdf_pbkdf.html b/modules/kdf_pbkdf.html index c98b1a1d..a1eb9695 100644 --- a/modules/kdf_pbkdf.html +++ b/modules/kdf_pbkdf.html @@ -1,18 +1,18 @@ -kdf/pbkdf | @nfen/webcrypto-ts
    Expand description
    +kdf/pbkdf | @nfen/webcrypto-ts
    Expand description

    Code related to PBKDF2

    -

    Functions

    +

    Functions

    Derive a number bits with a given key material

    example
    const bits = await PBKDF2.deriveBits(
    { hash: "SHA-512" },
    keyMaterial,
    128
    );
    example
    const bits = await keyMaterial.deriveBits(
    { hash: "SHA-512" },
    128
    );
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Derive a shared key from PBKDF2 key material

    example
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    let key = await PBKDF2.deriveKey(
    { hash: "SHA512" },
    keyMaterial,
    hmacParams
    );
    example
    const hmacParams: params.EnforcedHmacKeyGenParams = {
    name: Authentication.Alg.Code.HMAC,
    hash: SHA.Alg.Variant.SHA_512,
    length: 512,
    };
    let key = await keyMaterial.deriveKey(
    { hash: "SHA512" },
    hmacParams
    );
    -

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    +

    Parameters

    Returns Promise<HmacCryptoKey | AesCryptoKeys>

    Generate key material for deriving

    example
    const keyMaterial = await PBKDF2.generateKeyMaterial("raw", new TextEncoder().encode("could_be_a_little_entropy"));
     
    diff --git a/modules/kdf_shared.Alg.html b/modules/kdf_shared.Alg.html index 3d17c83b..0977f21f 100644 --- a/modules/kdf_shared.Alg.html +++ b/modules/kdf_shared.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/kdf_shared.KdfShared.html b/modules/kdf_shared.KdfShared.html index 76f64ce6..1334e27c 100644 --- a/modules/kdf_shared.KdfShared.html +++ b/modules/kdf_shared.KdfShared.html @@ -1 +1 @@ -KdfShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns Promise<ArrayBuffer>

    Parameters

    Returns Promise<AesCryptoKeys | HmacCryptoKey>

    Type Parameters

    • K extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: BufferSource
    • algorithm: "PBKDF2" | "HKDF"
    • extractable: boolean = false

    Returns Promise<K>

    \ No newline at end of file +KdfShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns Promise<ArrayBuffer>

    Parameters

    Returns Promise<AesCryptoKeys | HmacCryptoKey>

    Type Parameters

    • K extends CryptoKey

    Parameters

    • format: KeyFormat
    • key: BufferSource
    • algorithm: "PBKDF2" | "HKDF"
    • extractable: boolean = false

    Returns Promise<K>

    \ No newline at end of file diff --git a/modules/kdf_shared.html b/modules/kdf_shared.html index 5123cb5f..ad582ebe 100644 --- a/modules/kdf_shared.html +++ b/modules/kdf_shared.html @@ -1,3 +1,3 @@ -kdf/shared | @nfen/webcrypto-ts
    Expand description
    +kdf/shared | @nfen/webcrypto-ts
    \ No newline at end of file diff --git a/modules/key_usages.html b/modules/key_usages.html index 8f88c37a..37f2f9f6 100644 --- a/modules/key_usages.html +++ b/modules/key_usages.html @@ -1,5 +1,5 @@ -key_usages | @nfen/webcrypto-ts
    Expand description
    +key_usages | @nfen/webcrypto-ts
    Expand description

    Key usages and allowed formats

    -

    Type Aliases

    Variables

    Functions

    +

    Type Aliases

    Variables

    Functions

    Given a algorithm, return the most likely key usage pair.

    Parameters

    • alg: string

    Returns KeyUsagePair

    Enumerations

    \ No newline at end of file diff --git a/modules/params.html b/modules/params.html index 0ea9fe7c..b2cebf82 100644 --- a/modules/params.html +++ b/modules/params.html @@ -1,3 +1,3 @@ -params | @nfen/webcrypto-ts
    Expand description
    +params | @nfen/webcrypto-ts
    Expand description

    Enforced parameters for algorithms

    -

    Type Aliases

    Interfaces

    \ No newline at end of file +

    Type Aliases

    Interfaces

    \ No newline at end of file diff --git a/modules/proxy.html b/modules/proxy.html index cdaf7aef..ed2c69cb 100644 --- a/modules/proxy.html +++ b/modules/proxy.html @@ -1,3 +1,3 @@ -proxy | @nfen/webcrypto-ts

    Module proxy

    source · []
    Expand description
    +proxy | @nfen/webcrypto-ts

    Module proxy

    source · []
    Expand description

    Code related to proxying CryptoKey and CryptoKeyPair

    -

    Functions

    Type Parameters

    Parameters

    • handler: ProxyHandler<TKey>

    Returns ((key: TKey) => TProxKey)

      • (key: TKey): TProxKey
      • Parameters

        • key: TKey

        Returns TProxKey

    Type Parameters

    • TKeyPair extends CryptoKeyPair

    • TPrivKey extends CryptoKey

    • TProxPrivKey extends ProxiedCryptoKey<TPrivKey, TProxPrivKey>

    • TPubKey extends CryptoKey

    • TProxPubKey extends ProxiedCryptoKey<TPubKey, TProxPubKey>

    Parameters

    Returns ((keyPair: TKeyPair) => ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>)

      • Parameters

        • keyPair: TKeyPair

        Returns ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>

    Interfaces

    \ No newline at end of file +

    Functions

    Type Parameters

    Parameters

    • handler: ProxyHandler<TKey>

    Returns ((key: TKey) => TProxKey)

      • (key: TKey): TProxKey
      • Parameters

        • key: TKey

        Returns TProxKey

    Type Parameters

    • TKeyPair extends CryptoKeyPair

    • TPrivKey extends CryptoKey

    • TProxPrivKey extends ProxiedCryptoKey<TPrivKey, TProxPrivKey>

    • TPubKey extends CryptoKey

    • TProxPubKey extends ProxiedCryptoKey<TPubKey, TProxPubKey>

    Parameters

    Returns ((keyPair: TKeyPair) => ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>)

      • Parameters

        • keyPair: TKeyPair

        Returns ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>

    Interfaces

    \ No newline at end of file diff --git a/modules/random.IV.html b/modules/random.IV.html index 77b06d44..81d026bd 100644 --- a/modules/random.IV.html +++ b/modules/random.IV.html @@ -1,6 +1,6 @@ -IV | @nfen/webcrypto-ts

    Namespace random.IV

    source · []
    Expand description
    +IV | @nfen/webcrypto-ts

    Namespace random.IV

    source · []
    Expand description

    Initialization Vectors

    -

    Functions

    +

    Functions

    Generate an initialization vector. Defaults to 16 bytes.

    example
    const iv = await Random.IV.generate();
     
    diff --git a/modules/random.Salt.html b/modules/random.Salt.html index cbc3b32c..ce2043cf 100644 --- a/modules/random.Salt.html +++ b/modules/random.Salt.html @@ -1,6 +1,6 @@ -Salt | @nfen/webcrypto-ts

    Namespace random.Salt

    source · []
    Expand description
    +Salt | @nfen/webcrypto-ts

    Namespace random.Salt

    source · []
    Expand description

    Salts

    -

    Functions

    +

    Functions

    Generate a salt. Defaults to 16 bytes.

    example
    const salt = await Random.Salt.generate();
     
    diff --git a/modules/random.UUID.html b/modules/random.UUID.html index b79da53f..9976f36e 100644 --- a/modules/random.UUID.html +++ b/modules/random.UUID.html @@ -1,6 +1,6 @@ -UUID | @nfen/webcrypto-ts

    Namespace random.UUID

    source · []
    Expand description
    +UUID | @nfen/webcrypto-ts

    Namespace random.UUID

    source · []
    Expand description

    UUID

    -

    Functions

    +

    Functions

    Generate a UUID.

    example
    const uuid = await Random.UUID.generate();
     
    diff --git a/modules/random.html b/modules/random.html index 8f210643..6a70815a 100644 --- a/modules/random.html +++ b/modules/random.html @@ -1,6 +1,6 @@ -random | @nfen/webcrypto-ts
    Expand description
    +random | @nfen/webcrypto-ts
    Expand description

    Cryptographically strong random values.

    -

    Functions

    +

    Functions

    Generate random values

    example
    const values = await Random.getValues(16);
     
    diff --git a/modules/rsa.html b/modules/rsa.html index 75131eed..a86bc89a 100644 --- a/modules/rsa.html +++ b/modules/rsa.html @@ -1,3 +1,3 @@ -rsa | @nfen/webcrypto-ts

    Module rsa

    source · []
    Expand description
    +rsa | @nfen/webcrypto-ts

    Module rsa

    source · []
    Expand description

    All RSA algorithms

    -

    References

    Re-exports Alg
    Renames and re-exports rsa/rsassa_pkcs1_v1_5
    Renames and re-exports rsa/rsa_oaep
    Renames and re-exports rsa/rsa_pss
    Re-exports RsaCryptoKeys
    \ No newline at end of file +

    References

    Re-exports Alg
    Renames and re-exports rsa/rsassa_pkcs1_v1_5
    Renames and re-exports rsa/rsa_oaep
    Renames and re-exports rsa/rsa_pss
    Re-exports RsaCryptoKeys
    \ No newline at end of file diff --git a/modules/rsa_rsa_oaep.html b/modules/rsa_rsa_oaep.html index 5073ef18..153611b7 100644 --- a/modules/rsa_rsa_oaep.html +++ b/modules/rsa_rsa_oaep.html @@ -1,24 +1,24 @@ -rsa/rsa_oaep | @nfen/webcrypto-ts
    Expand description
    +rsa/rsa_oaep | @nfen/webcrypto-ts
    Expand description

    Code related to RSA_OAEP

    -

    Functions

    +

    Functions

    Decrypt with an RSA_OAEP private key

    example
    const data = await RSA_OAEP.decrypt({label}, keyPair.privateKey.self, data);
     
    example
    const data = await keyPair.privateKey.decrypt({label}, data);
     
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Encrypt with an RSA_OAEP public key

    example
    const message = new TextEncoder().encode("a message");
    const data = await RSA_OAEP.encrypt({label}, keyPair.publicKey.self, message);
    example
    const message = new TextEncoder().encode("a message");
    const data = await keyPair.publicKey.encrypt({label}, message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Export an RSA_OAEP public or private key

    example
    const pubKeyJwk = await RSA_OAEP.exportKey("jwk", keyPair.publicKey.self);
     
    example
    const pubKeyJwk = await keyPair.publicKey.exportKey("jwk");
    const privKeyJwk = await keyPair.privateKey.exportKey("jwk");
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new RSA_OAEP keypair

    example
    const keyPair = await RSA_OAEP.generateKey();
     
    @@ -26,7 +26,7 @@ hash: SHA.Variant.SHA_512, modulusLength: 4096, publicExponent: new Uint8Array([0x01, 0x00, 0x01]), -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaOaepProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaOaepProxiedCryptoKeyPair>

    Generate a new RSA_OAEP keypair

    alias

    generateKey

    example
    const keyPair = await RSA_OAEP.generateKeyPair();
    @@ -35,17 +35,17 @@
         hash: SHA.Variant.SHA_512,
         modulusLength: 4096,
         publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
    -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaOaepProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaOaepProxiedCryptoKeyPair>

    Import an RSA_OAEP public or private key

    example
    const key = await RSA_OAEP.importKey("jwk", pubKey, { hash: "SHA-512" }, true, ['encrypt']);
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsaOaepProxiedPubCryptoKey | RsaOaepProxiedPrivCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsaOaepProxiedPubCryptoKey | RsaOaepProxiedPrivCryptoKey>

    Unwrap a wrapped key using the key encryption key

    example
    const wrappedKey = await RSA_OAEP.wrapKey("raw", dek.self, kek.self);
    const unwrappedKey = await RSA_OAEP.unwrapKey(
    "raw",
    wrappedKey,
    { name: Alg.Mode.RSA_OAEP },
    kek.self,
    );
    const wrappedKey = await kek.wrapKey("raw", dek.self);
    const unwrappedKey = await kek.unwrapKey(
    "raw",
    wrappedKey,
    { name: Alg.Mode.RSA_OAEP },
    );
    -

    Parameters

    Returns Promise<CryptoKey>

    +

    Parameters

    Returns Promise<CryptoKey>

    Wrap another key with an RSA_OAEP public key

    example
    const kek = await RSA_OAEP.generateKey(undefined, true, ['wrapKey', 'unwrapKey']);
    const dek = await RSA_OAEP.generateKey();
    const label = await Random.getValues(8);
    const wrappedKey = await RSA_OAEP.wrapKey("raw", dek.self, kek.self, {label});
    diff --git a/modules/rsa_rsa_pss.html b/modules/rsa_rsa_pss.html index 0a5f5e70..188fa34c 100644 --- a/modules/rsa_rsa_pss.html +++ b/modules/rsa_rsa_pss.html @@ -1,12 +1,12 @@ -rsa/rsa_pss | @nfen/webcrypto-ts
    Expand description
    +rsa/rsa_pss | @nfen/webcrypto-ts
    Expand description

    Code related to RSA_PSS

    -

    Functions

    +

    Functions

    Export an RSA_PSS public or private key

    example
    const pubKeyJwk = await RSA_PSS.importKey("jwk", keyPair.publicKey.self);
     
    example
    const pubKeyJwk = await keyPair.publicKey.importKey("jwk");
     
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new RSA_PSS keypair

    example
    const keyPair = await RSA_PSS.generateKey();
     
    @@ -14,7 +14,7 @@ hash: SHA.Variant.SHA_512, modulusLength: 4096, publicExponent: new Uint8Array([0x01, 0x00, 0x01]), -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaPssProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaPssProxiedCryptoKeyPair>

    Generate a new RSA_PSS keypair

    alias

    generateKey

    example
    const keyPair = await RSA_PSS.generateKeyPair();
    @@ -23,17 +23,17 @@
         hash: SHA.Variant.SHA_512,
         modulusLength: 4096,
         publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
    -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaPssProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsaPssProxiedCryptoKeyPair>

    Import an RSA_PSS public or private key

    example
    const key = await RSA_PSS.importKey("jwk", pubKey, { hash: "SHA-512" }, true, ['verify']);
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsaPssProxiedPubCryptoKey | RsaPssProxiedPrivCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsaPssProxiedPubCryptoKey | RsaPssProxiedPrivCryptoKey>

    Sign a given payload

    example
    const message = new TextEncoder().encode("a message");
    const signature = await RSA_PSS.sign(128, keyPair.privateKey.self, message);
    example
    const message = new TextEncoder().encode("a message");
    const signature = await keyPair.privateKey.sign(128, message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Verify a given signature

    example
    const message = new TextEncoder().encode("a message");
    const isVerified = await ECDSA.verify(128, keyPair.publicKey.self, signature, message);
    diff --git a/modules/rsa_rsassa_pkcs1_v1_5.html b/modules/rsa_rsassa_pkcs1_v1_5.html index 8e4f9668..93ae0d1f 100644 --- a/modules/rsa_rsassa_pkcs1_v1_5.html +++ b/modules/rsa_rsassa_pkcs1_v1_5.html @@ -1,12 +1,12 @@ -rsa/rsassa_pkcs1_v1_5 | @nfen/webcrypto-ts
    Expand description
    +rsa/rsassa_pkcs1_v1_5 | @nfen/webcrypto-ts
    Expand description

    Code related to RSASSA_PKCS1_v1_5

    -

    Functions

    +

    Functions

    Export an RSASSA_PKCS1_v1_5 public or private key

    example
    const pubKeyJwk = await RSASSA_PKCS1_v1_5.importKey("jwk", keyPair.publicKey.self);
     
    example
    const pubKeyJwk = await keyPair.publicKey.importKey("jwk");
     
    -

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    +

    Parameters

    Returns Promise<ArrayBuffer | JsonWebKey>

    Generate a new RSASSA_PKCS1_v1_5 keypair

    example
    const keyPair = await RSASSA_PKCS1_v1_5.generateKey();
     
    @@ -14,7 +14,7 @@ hash: SHA.Variant.SHA_512, modulusLength: 4096, publicExponent: new Uint8Array([0x01, 0x00, 0x01]), -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsassaPkcs1V15ProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsassaPkcs1V15ProxiedCryptoKeyPair>

    Generate a new RSASSA_PKCS1_v1_5 keypair

    alias

    generateKey

    example
    const keyPair = await RSASSA_PKCS1_v1_5.generateKeyPair();
    @@ -23,17 +23,17 @@
         hash: SHA.Variant.SHA_512,
         modulusLength: 4096,
         publicExponent: new Uint8Array([0x01, 0x00, 0x01]),
    -}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsassaPkcs1V15ProxiedCryptoKeyPair>

    +}
  • Optional extractable: boolean
  • Optional keyUsages: KeyUsage[]
  • Returns Promise<RsassaPkcs1V15ProxiedCryptoKeyPair>

    Import an RSASSA_PKCS1_v1_5 public or private key

    example
    const key = await RSASSA_PKCS1_v1_5.importKey("jwk", pubKey, { hash: "SHA-512" }, true, ['verify']);
     
    -

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsassaPkcs1V15ProxiedPubCryptoKey | RsassaPkcs1V15ProxiedPrivCryptoKey>

    +

    Parameters

    • format: KeyFormat
    • key: BufferSource | JsonWebKey
    • algorithm: Omit<EnforcedRsaHashedImportParams, "name">
    • Optional extractable: boolean
    • Optional keyUsages: KeyUsage[]

    Returns Promise<RsassaPkcs1V15ProxiedPubCryptoKey | RsassaPkcs1V15ProxiedPrivCryptoKey>

    Sign a given payload

    example
    const message = new TextEncoder().encode("a message");
    const signature = await RSASSA_PKCS1_v1_5.sign(keyPair.privateKey.self, message);
    example
    const message = new TextEncoder().encode("a message");
    const signature = await keyPair.privateKey.sign(message);
    -

    Parameters

    Returns Promise<ArrayBuffer>

    +

    Parameters

    Returns Promise<ArrayBuffer>

    Verify a given signature

    example
    const message = new TextEncoder().encode("a message");
    const isVerified = await RSASSA_PKCS1_v1_5.verify(keyPair.publicKey.self, signature, message);
    diff --git a/modules/rsa_shared.Alg.html b/modules/rsa_shared.Alg.html index b658476f..54dd6f41 100644 --- a/modules/rsa_shared.Alg.html +++ b/modules/rsa_shared.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/rsa_shared.RsaShared.html b/modules/rsa_shared.RsaShared.html index 3903cbd9..430cfe40 100644 --- a/modules/rsa_shared.RsaShared.html +++ b/modules/rsa_shared.RsaShared.html @@ -1 +1 @@ -RsaShared | @nfen/webcrypto-ts

    Functions

    Type Parameters

    Parameters

    • format: KeyFormat
    • key: T

    Returns Promise<JsonWebKey | ArrayBuffer>

    Parameters

    Returns Promise<RsaCryptoKeys | RsaCryptoKeyPairs>

    Type Parameters

    Parameters

    Returns Promise<T>

    Parameters

    Returns Promise<ArrayBuffer>

    Parameters

    Returns Promise<boolean>

    \ No newline at end of file +RsaShared | @nfen/webcrypto-ts

    Functions

    Type Parameters

    Parameters

    • format: KeyFormat
    • key: T

    Returns Promise<JsonWebKey | ArrayBuffer>

    Parameters

    Returns Promise<RsaCryptoKeys | RsaCryptoKeyPairs>

    Type Parameters

    Parameters

    Returns Promise<T>

    Parameters

    Returns Promise<ArrayBuffer>

    Parameters

    Returns Promise<boolean>

    \ No newline at end of file diff --git a/modules/rsa_shared.html b/modules/rsa_shared.html index 3686f95e..c3b07770 100644 --- a/modules/rsa_shared.html +++ b/modules/rsa_shared.html @@ -1,3 +1,3 @@ -rsa/shared | @nfen/webcrypto-ts
    Expand description
    +rsa/shared | @nfen/webcrypto-ts
    \ No newline at end of file +

    Type Aliases

    Namespaces

    Interfaces

    \ No newline at end of file diff --git a/modules/sha.html b/modules/sha.html index 45710b00..07bebf39 100644 --- a/modules/sha.html +++ b/modules/sha.html @@ -1,3 +1,3 @@ -sha | @nfen/webcrypto-ts

    Module sha

    source · []
    Expand description

    References

    Re-exports Alg
    Renames and re-exports sha/sha_1
    Renames and re-exports sha/sha_256
    Renames and re-exports sha/sha_384
    Renames and re-exports sha/sha_512
    \ No newline at end of file diff --git a/modules/sha_sha_1.html b/modules/sha_sha_1.html index 1f4902b7..bef648a4 100644 --- a/modules/sha_sha_1.html +++ b/modules/sha_sha_1.html @@ -1,10 +1,10 @@ -sha/sha_1 | @nfen/webcrypto-ts
    Expand description
    +sha/sha_1 | @nfen/webcrypto-ts
    Expand description

    Code related to SHA_1

    -

    Functions

    +

    Functions

    Get the digest of the buffer

    example
    const buffer = new TextEncoder().encode("a file");
    const digest = SHA_1.digest(buffer);
    -

    Parameters

    • data: BufferSource

    Returns Promise<Sha1ArrayBuffer>

    +

    Parameters

    • data: BufferSource

    Returns Promise<Sha1ArrayBuffer>

    Get the hex string of the digest

    example
    const hash = SHA_1.hexify(digest);
     
    diff --git a/modules/sha_sha_256.html b/modules/sha_sha_256.html index e00290c0..9d5dd2a6 100644 --- a/modules/sha_sha_256.html +++ b/modules/sha_sha_256.html @@ -1,10 +1,10 @@ -sha/sha_256 | @nfen/webcrypto-ts
    Expand description
    +sha/sha_256 | @nfen/webcrypto-ts
    Expand description

    Code related to SHA_256

    -

    Functions

    +

    Functions

    Get the digest of the buffer

    example
    const buffer = new TextEncoder().encode("a file");
    const digest = SHA_256.digest(buffer);
    -

    Parameters

    • data: BufferSource

    Returns Promise<Sha256ArrayBuffer>

    +

    Parameters

    • data: BufferSource

    Returns Promise<Sha256ArrayBuffer>

    Get the hex string of the digest

    example
    const hash = SHA_256.hexify(digest);
     
    diff --git a/modules/sha_sha_384.html b/modules/sha_sha_384.html index d8c356c6..3c33cd7c 100644 --- a/modules/sha_sha_384.html +++ b/modules/sha_sha_384.html @@ -1,10 +1,10 @@ -sha/sha_384 | @nfen/webcrypto-ts
    Expand description
    +sha/sha_384 | @nfen/webcrypto-ts
    Expand description

    Code related to SHA_384

    -

    Functions

    +

    Functions

    Get the digest of the buffer

    example
    const buffer = new TextEncoder().encode("a file");
    const digest = SHA_384.digest(buffer);
    -

    Parameters

    • data: BufferSource

    Returns Promise<Sha384ArrayBuffer>

    +

    Parameters

    • data: BufferSource

    Returns Promise<Sha384ArrayBuffer>

    Get the hex string of the digest

    example
    const hash = SHA_384.hexify(digest);
     
    diff --git a/modules/sha_sha_512.html b/modules/sha_sha_512.html index a99ab41c..ea548c61 100644 --- a/modules/sha_sha_512.html +++ b/modules/sha_sha_512.html @@ -1,10 +1,10 @@ -sha/sha_512 | @nfen/webcrypto-ts
    Expand description
    +sha/sha_512 | @nfen/webcrypto-ts
    Expand description

    Code related to SHA_512

    -

    Functions

    +

    Functions

    Get the digest of the buffer

    example
    const buffer = new TextEncoder().encode("a file");
    const digest = SHA_512.digest(buffer);
    -

    Parameters

    • data: BufferSource

    Returns Promise<Sha512ArrayBuffer>

    +

    Parameters

    • data: BufferSource

    Returns Promise<Sha512ArrayBuffer>

    Get the hex string of the digest

    example
    const hash = SHA_512.hexify(digest);
     
    diff --git a/modules/sha_shared.Alg.html b/modules/sha_shared.Alg.html index 7b1a0088..2089655c 100644 --- a/modules/sha_shared.Alg.html +++ b/modules/sha_shared.Alg.html @@ -1 +1 @@ -Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file +Alg | @nfen/webcrypto-ts

    Type Aliases

    Enumerations

    \ No newline at end of file diff --git a/modules/sha_shared.ShaShared.html b/modules/sha_shared.ShaShared.html index b3cf0a3c..e64bf535 100644 --- a/modules/sha_shared.ShaShared.html +++ b/modules/sha_shared.ShaShared.html @@ -1 +1 @@ -ShaShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns string

    \ No newline at end of file +ShaShared | @nfen/webcrypto-ts

    Functions

    Parameters

    Returns string

    \ No newline at end of file diff --git a/modules/sha_shared.html b/modules/sha_shared.html index 45e18944..6794c4d9 100644 --- a/modules/sha_shared.html +++ b/modules/sha_shared.html @@ -1,3 +1,3 @@ -sha/shared | @nfen/webcrypto-ts
    \ No newline at end of file diff --git a/modules/webcrypto.html b/modules/webcrypto.html index 1b22ff1f..74270871 100644 --- a/modules/webcrypto.html +++ b/modules/webcrypto.html @@ -1,5 +1,5 @@ -webcrypto | @nfen/webcrypto-ts
    Expand description
    +webcrypto | @nfen/webcrypto-ts
    Expand description

    Wrapper for node/browser webcrypto

    -

    Variables

    +

    Variables

    Crypto loader which loads native webcrypto depending on environment

    -

    Functions

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params

    Parameters

    • algorithm: U
    • baseKey: T
    • length: number

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HkdfParams | Pbkdf2Params | AesDerivedKeyParams | HmacImportParams

    Parameters

    • algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params
    • key: CryptoKey
    • derivedKeyType: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends ArrayBuffer

    Parameters

    • algorithm: "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"
    • data: BufferSource

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: "jwk"
    • key: T

    Returns Promise<JsonWebKey>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: "pkcs8" | "raw" | "spki"
    • key: T

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey | CryptoKeyPair

    • U extends AlgorithmIdentifier | Pbkdf2Params | RsaHashedKeyGenParams | EcKeyGenParams | AesKeyGenParams | HmacKeyGenParams

    Parameters

    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: "jwk"
    • key: JsonWebKey
    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: "pkcs8" | "raw" | "spki"
    • key: BufferSource
    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaPssParams | EcdsaParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    • V extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: KeyFormat
    • wrappedKey: BufferSource
    • unwrappingKey: T
    • unwrapAlgorithm: U
    • unwrappedKeyAlgorithm: V
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoKey>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaPssParams | EcdsaParams

    Parameters

    • algorithm: U
    • key: T
    • signature: BufferSource
    • data: BufferSource

    Returns Promise<boolean>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • format: KeyFormat
    • key: CryptoKey
    • wrappingKey: T
    • wrapAlgorithm: U

    Returns Promise<ArrayBuffer>

    \ No newline at end of file +

    Functions

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params

    Parameters

    • algorithm: U
    • baseKey: T
    • length: number

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HkdfParams | Pbkdf2Params | AesDerivedKeyParams | HmacImportParams

    Parameters

    • algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params
    • key: CryptoKey
    • derivedKeyType: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends ArrayBuffer

    Parameters

    • algorithm: "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512"
    • data: BufferSource

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: "jwk"
    • key: T

    Returns Promise<JsonWebKey>

    Type Parameters

    • T extends CryptoKey

    Parameters

    • format: "pkcs8" | "raw" | "spki"
    • key: T

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey | CryptoKeyPair

    • U extends AlgorithmIdentifier | Pbkdf2Params | RsaHashedKeyGenParams | EcKeyGenParams | AesKeyGenParams | HmacKeyGenParams

    Parameters

    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: "jwk"
    • key: JsonWebKey
    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: "pkcs8" | "raw" | "spki"
    • key: BufferSource
    • algorithm: U
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<T>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaPssParams | EcdsaParams

    Parameters

    • algorithm: U
    • key: T
    • data: BufferSource

    Returns Promise<ArrayBuffer>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    • V extends AlgorithmIdentifier | HmacImportParams | RsaHashedImportParams | EcKeyImportParams | AesKeyAlgorithm

    Parameters

    • format: KeyFormat
    • wrappedKey: BufferSource
    • unwrappingKey: T
    • unwrapAlgorithm: U
    • unwrappedKeyAlgorithm: V
    • extractable: boolean
    • keyUsages: KeyUsage[]

    Returns Promise<CryptoKey>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaPssParams | EcdsaParams

    Parameters

    • algorithm: U
    • key: T
    • signature: BufferSource
    • data: BufferSource

    Returns Promise<boolean>

    Type Parameters

    • T extends CryptoKey

    • U extends AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams

    Parameters

    • format: KeyFormat
    • key: CryptoKey
    • wrappingKey: T
    • wrapAlgorithm: U

    Returns Promise<ArrayBuffer>

    \ No newline at end of file