@dfinity/vetkeys - v0.1.0
    Preparing search index...

    Class DerivedKeyMaterial

    Index

    Methods

    • Decrypt the provided ciphertext using AES-GCM and a key derived using HKDF

      The GCM key is derived using HKDF with the provided domain separator

      Parameters

      • message: Uint8Array
      • domainSep: string | Uint8Array<ArrayBufferLike>

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Return a WebCrypto CryptoKey handle suitable for AES-GCM encryption/decryption

      The key is derived using HKDF with the provided domain separator

      The CryptoKey is not exportable

      Parameters

      • domainSep: string | Uint8Array<ArrayBufferLike>

      Returns Promise<CryptoKey>

    • Encrypt the provided message using AES-GCM and a key derived using HKDF

      The GCM key is derived using HKDF with the provided domain separator

      Parameters

      • message: string | Uint8Array<ArrayBufferLike>
      • domainSep: string | Uint8Array<ArrayBufferLike>

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Return the CryptoKey

      Returns CryptoKey