From 9a03e6d14f79395d041f72fd83980d7f61ea11c8 Mon Sep 17 00:00:00 2001 From: nealfennimore Date: Thu, 22 Aug 2024 18:17:47 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20nealfenn?= =?UTF-8?q?imore/webcrypto-ts@620b416ade4c3a3ff54c05c8b7a9fae91f5fefd8=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 +- 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/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 +++--- 129 files changed, 226 insertions(+), 226 deletions(-) diff --git a/enums/aes_shared.Alg.Mode.html b/enums/aes_shared.Alg.Mode.html index 5aa7964f..70f84679 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 5a28fd55..4158c678 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 f580a181..3903bc67 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 e19a6a97..5e3874a6 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 3ca3ce26..6f19d407 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 174cf60c..67b1ad75 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 14b9907e..c655ee74 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 cd2ab58f..cbf052d3 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 df49a83b..27822369 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/interfaces/aes_shared.AesCbcCryptoKey.html b/interfaces/aes_shared.AesCbcCryptoKey.html index 14a1593e..4867af7f 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 cbfd8b98..7dda35a0 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 f4509cb0..8733116c 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 15316699..62956182 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 87b91220..915cba08 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 47343445..27dd66fe 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 5ce01854..b210f0b2 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 a09053de..f7c9669a 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 342c8e40..5942682c 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 acc58117..1773bfdc 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 f789092c..cadf6642 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 fcd9da1c..d72f83f8 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 685be6f8..3afb7019 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 7b8aa929..8523afcb 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 b0f193c1..4e7de8cc 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 e1d676bb..521cb9f2 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 d99a8149..1decd5c5 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 80c2bd19..a5a751db 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 1a29519a..e6e075ca 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 a8100c4f..7936464f 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 06755d3b..0445f7b9 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 b777cb4c..95ce497e 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 a78c502a..943a4d03 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 eaecc320..b486af82 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 32cc9ac9..554a9095 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 c6b7834e..02b080b3 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 f3b76175..abc610d4 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 16845607..798660d5 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 65897090..621ed2cf 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 4e5998db..389d5886 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 5c2ec0df..24e477ca 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 58efd5c2..78313b9e 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 da897a76..f6a40eb0 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 17ffa9a9..b5c946de 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 09d63c5b..d6e41f41 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 c19c9380..8277a323 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 7362bb51..d9857304 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 f12650ea..b9c7d309 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 df0c0c79..b309ee3c 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 34131b13..c0ea7efe 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 0991b854..9a8e01a1 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 8968e1b1..9a40ba38 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 5df8ad57..f4b88ac7 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 dfeee08c..fcbb095d 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 9bdd459c..a006d862 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 081364e4..0c39aa9a 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 af6fd968..b811d7de 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 c1a8830a..e63cbe59 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 6f324adb..c570efcc 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 fb1f0310..7aee6699 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 978d62e8..042627d5 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 fa03adb6..4ce79923 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 b1c49c0f..b17d822f 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 ebb40076..71dba953 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 88321d37..07d88bb8 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 d551a231..dbad527a 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 c90259ed..44a1e957 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 6dfdfda3..5c363b29 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 5e1036c6..44d392ea 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 f83a67ae..a0c934cd 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 fbeb46b5..e98c0824 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 1f7d696e..ab9bce40 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 cfd075af..16f9a623 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 ceeeeb73..e3633cf1 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 00375529..51d98ece 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 597b7b72..c9927027 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 bc7e17cc..878dc830 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 3c2dd679..ae3f47f2 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 6853c5ce..f7c0cde3 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 ab004fb9..65da8f30 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 b35446a7..5deed90d 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 7e4b095d..403f5360 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 c38fd0e6..e3cb5b80 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 86fc7606..edc67e7c 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/aes.html b/modules/aes.html index fa61074f..3cc4edcd 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 61f3df5d..a75fe2da 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 5a6590a2..fd2fd45b 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 a60c9caf..a7f24d11 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 40ead7a0..a625013a 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 19742f6e..d73f7559 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 77869be1..715805d9 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 6238c02b..1df7e29c 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 e19894c3..23003051 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 2adaaf58..ebe4ffb6 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 9a3bc2dc..1c2ad784 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 bfcbc474..a1997b61 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 f4c5fa58..19888751 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 108709a1..7da67454 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 a48d016c..6f1cfbe8 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 bc0c7543..428fc197 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 f438622f..ebb21e04 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 a6df0031..f591cc3a 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 3176abbd..0c50828e 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 a1eb9695..c205a29d 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 0977f21f..ee637497 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 1334e27c..b0517c61 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 ad582ebe..895bac9e 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 37f2f9f6..864e0776 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 b2cebf82..cd5247de 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 ed2c69cb..8a329e3f 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 81d026bd..181c2da4 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 ce2043cf..c57f1a1a 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 9976f36e..87bf00d7 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 6a70815a..b7ff5ff3 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 a86bc89a..03a95b32 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 153611b7..3a23d38c 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 188fa34c..32cc5797 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 93ae0d1f..51a05925 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 54dd6f41..208f993f 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 430cfe40..7b6b165e 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 c3b07770..41deebef 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 07bebf39..52ca6b58 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 bef648a4..a30af5cd 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 9d5dd2a6..01c12432 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 3c33cd7c..3f830ba2 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 ea548c61..b8eab441 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 2089655c..f5b79c26 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 e64bf535..c130c299 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 6794c4d9..ff115c51 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 74270871..127b309c 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