Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::Cipher#ccm_data_len=

cipher.ccm_data_len = integer → integer

Sets the length of the plaintext / ciphertext message that will be processed in CCM mode. Make sure to call this method after key= and iv= have been set, and before auth_data=.

Only call this method after calling Cipher#encrypt or Cipher#decrypt.

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