abstract class Sodium::Cipher::SecretStream
- Sodium::Cipher::SecretStream
- Reference
- Object
Direct Known Subclasses
Defined in:
sodium/cipher/secret_stream.crConstructors
Instance Method Summary
-
#additional : Bytes?
Used to authentication but not encrypt additional data.
-
#additional=(additional : Bytes?)
Used to authentication but not encrypt additional data.
- #auth_tag_size : Int32
- #decrypt
- #encrypt
-
#final
Provided for compatibility with block ciphers.
-
#header
Only used for encryption.
-
#header=(buf : Bytes)
Only used for decryption.
- #header_size : Int32
- #init_state(header_buf : Bytes) : Nil
- #key=(key : Bytes | SecureBuffer)
- #key_size : Int32
-
#random_key
Returns a random key in a SecureBuffer.
-
#tag : UInt8
- Set tag before encrypting * Tag is set after decrypting
-
#tag=(tag)
- Set tag before encrypting * Tag is set after decrypting
- #update(src : Bytes, dst : Bytes)
- #update(src : Bytes) : Bytes
Constructor Detail
Instance Method Detail
def additional : Bytes?
#
Used to authentication but not encrypt additional data.
- Set this before encrypting and decrypting.
- This property is set to nil after calling .update.
def additional=(additional : Bytes?)
#
Used to authentication but not encrypt additional data.
- Set this before encrypting and decrypting.
- This property is set to nil after calling .update.
def final
#
Provided for compatibility with block ciphers. Stream ciphers don't have additional data.