abstract class Sodium::Cipher::Chalsa
- Sodium::Cipher::Chalsa
 - Reference
 - Object
 
Overview
The great beat you can eat!
What? They're both dance?
Direct Known Subclasses
- Sodium::Cipher::ChaCha20
 - Sodium::Cipher::ChaCha20Ietf
 - Sodium::Cipher::Salsa20
 - Sodium::Cipher::XChaCha20
 - Sodium::Cipher::XSalsa20
 
Defined in:
sodium/cipher/chalsa.crConstructors
Instance Method Summary
- 
        #dup
        
          
Returns a shallow copy of this object.
 - 
        #edible?
        
          
Always returns false.
 - 
        #final
        
          
Provided for compatibility with block or tagged ciphers.
 - #key
 - #key=(key : Bytes | SecureBuffer)
 - #key? : Slice(UInt8) | Sodium::SecureBuffer | Nil
 - #key_size : Int32
 - #nonce
 - #nonce=(nonce : Bytes)
 - #nonce? : Slice(UInt8)?
 - #nonce_size : Int32
 - 
        #offset : Int32
        
          
Advanced usage.
 - 
        #offset=(offset)
        
          
Advanced usage.
 - 
        #random_bytes(bytes : Bytes) : Bytes
        
          
Use as a CSPRNG.
 - 
        #random_bytes(size : Int) : Bytes
        
          
Use as a CSPRNG.
 - #random_key
 - #random_nonce
 - 
        #update(src : Bytes) : Bytes
        
          
Xor's src with the cipher output and returns a new Slice
 - #update(src : Bytes, dst : Bytes)
 
Constructor Detail
Instance Method Detail
        
        def dup
        #
      
      
        
              Description copied from class Reference
            
          
          Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self into it.
        
        def final
        #
      
      
        Provided for compatibility with block or tagged ciphers. Stream ciphers don't have additional data.