@substrate-system/webcrypto-x3dh
    Preparing search index...

    Interface SymmetricEncryptionInterface

    Interface for symmetric encryption classes supported by this library.

    interface SymmetricEncryptionInterface {
        decrypt(
            message: string,
            key: CryptographyKey,
            assocData?: string,
        ): Promise<string | Uint8Array<ArrayBufferLike>>;
        encrypt(
            message: string | Uint8Array<ArrayBufferLike>,
            key: CryptographyKey,
            assocData?: string,
        ): Promise<string>;
    }

    Implemented by

    Index

    Methods

    • Parameters

      Returns Promise<string | Uint8Array<ArrayBufferLike>>

    • Parameters

      • message: string | Uint8Array<ArrayBufferLike>
      • key: CryptographyKey
      • OptionalassocData: string

      Returns Promise<string>