Attributes
- Companion
- trait
- Source
- ChaCha20Poly1305IETF.scala
- Graph
-
- Supertypes
- Self type
-
ChaCha20Poly1305IETF.type
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Mutates the internal
Mutates the internal
Attributes
- Inherited from:
- IETFChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Decrypt the plaintext using the chacha function.
Decrypt the plaintext using the chacha function.
Using the DJB ciphers, encryption and decryption are the same operation applied. simply in reverse, thus, the init
parameter in the StreamCipher
is irrelevant.
We assume the ciphertext is of the form cipherText || block Thus, it must have a minimum size of at least one.
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Decrypt the plaintext using the chacha function.
Decrypt the plaintext using the chacha function.
Using the DJB ciphers, encryption and decryption are the same operation applied. simply in reverse, thus, the init
parameter in the StreamCipher
is irrelevant.
We assume the ciphertext is of the form cipherText || block Thus, it must have a minimum size of at least one.
Run the empty block on the cipher, run the encryption algorithm (which is essentially decryption) and compare the tag computed from the original ciphertext.
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Decrypt the plaintext using the chacha function.
Decrypt the plaintext using the chacha function.
Run an empty block of 64 bytes through the cipher to generate the Poly1305 key. Decrypt the plaintext, generate the authentication tag and compare it to the supplied tag.
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Encrypt the plaintext using the chacha function.
Encrypt the plaintext using the chacha function.
Run an empty block of 64 bytes through the cipher to generate the Poly1305 key. Encrypt the plaintext, then return the block and the tag concatenated like:
cipherText || block
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Encrypt the plaintext using the chacha function.
Encrypt the plaintext using the chacha function.
Run an empty block of 64 bytes through the cipher to generate the Poly1305 key. Encrypt the plaintext, then return the block and the tag concatenated like:
cipherText || block
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Encrypt the plaintext using the chacha function.
Encrypt the plaintext using the chacha function.
Run an empty block of 64 bytes through the cipher to generate the Poly1305 key. Encrypt the plaintext, then return the block and the tag in a separate fashion.
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Encrypt the plaintext using the chacha function.
Encrypt the plaintext using the chacha function.
Run an empty block of 64 bytes through the cipher to generate the Poly1305 key. Encrypt the plaintext, then return the block and the tag in a separate fashion.
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Concrete fields
Attributes
- Source
- ChaCha20Poly1305IETF.scala
Inherited fields
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala
Attributes
- Inherited from:
- ChaCha20Cipher (hidden)
- Source
- ChaCha20Cipher.scala