Bun

interface

crypto.CipherInfo

interface CipherInfo

  • blockSize?: number

    The block size of the cipher in bytes. This property is omitted when mode is 'stream'.

  • ivLength?: number

    The expected or default initialization vector length in bytes. This property is omitted if the cipher does not use an initialization vector.

  • keyLength: number

    The expected or default key length in bytes.

  • mode: CipherMode

    The cipher mode.

  • name: string

    The name of the cipher.

  • nid: number

    The nid of the cipher.