ChaCha20Poly1305IETF

tsec.cipher.symmetric.bouncy.ChaCha20Poly1305IETF$
See theChaCha20Poly1305IETF companion trait

Attributes

Companion
trait
Source
ChaCha20Poly1305IETF.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def defaultIvGen[F[_]](implicit F: Sync[F]): IvGen[F, A]

Attributes

Inherited from:
ChaCha20Cipher (hidden)
Source
ChaCha20Cipher.scala
protected def poly1305Auth(key: KeyParameter, aad: AAD, in: Array[Byte], inSize: Int, tagOut: Array[Byte], tOutOffset: Int): Unit

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

val nonceSize: Int

Attributes

Source
ChaCha20Poly1305IETF.scala

Inherited fields

val KeySize: Int

Attributes

Inherited from:
ChaCha20Cipher (hidden)
Source
ChaCha20Cipher.scala
val TagSize: Int

Attributes

Inherited from:
ChaCha20Cipher (hidden)
Source
ChaCha20Cipher.scala

Implicits

Inherited implicits

implicit def authEncryptor[F[_]](implicit F: Sync[F]): AADEncryptor[F, A, BouncySecretKey]

Attributes

Inherited from:
ChaCha20Cipher (hidden)
Source
ChaCha20Cipher.scala
implicit def defaultKeyGen[F[_]](implicit F: Sync[F]): SymmetricKeyGen[F, A, BouncySecretKey]

Attributes

Inherited from:
ChaCha20Cipher (hidden)
Source
ChaCha20Cipher.scala