menu

CryptoCipherParameters

import { CryptoCipherParameters } from "destack:crypto/binding";

Cipher parameters.

language/library/src/crypto/binding/cipher.ds:20:31
1export struct CryptoCipherParameters<'a> {2    algorithm: CryptoCipherAlgorithm;3    nonce: &'a readonly [uint8];4    additionalData: &'a readonly [uint8];5    tag: &'a readonly [uint8];6    tagLength: uint32;7}

Members

algorithm: CryptoCipherAlgorithm

Symmetric cipher algorithm.

nonce: &'a readonly [uint8]

Nonce or IV bytes.

additionalData: &'a readonly [uint8]

Additional authenticated data bytes.

tag: &'a readonly [uint8]

Authentication tag bytes for decryption.

tagLength: uint32

Authentication tag length in bytes for encryption.