Skip to content
instance method

OpenSSL::Cipher#ccm_data_len=

cipher.ccm_data_len = integer

Sets the total length of the plaintext / ciphertext message that will be processed by update in CCM mode.

Make sure to call this method after key= and iv= have been set, and before auth_data= or update are called.

This method is only available for CCM mode ciphers.

See also the “AEAD Interface” section of the man page EVP_EncryptInit(3).

See also #block_size #decrypt #auth_tag_len= #encrypt also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0