CipherAPI

tsec.cipher.symmetric.CipherAPI
trait CipherAPI[A, K[_]]

Our high level cipher algebra, wherein the implicit Scala cipher is placed as a type parameter for future libsodium algebra compatibility

Type parameters

A

The cipher algorithm

K

Key type constructor

Attributes

Source
CipherAPI.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait AuthCipherAPI[A, K]
trait AEADAPI[A, K]

Members list

Value members

Concrete methods

final def decrypt[F[_]](cipherText: CipherText[A], key: K[A])(implicit E: Encryptor[F, A, K]): F[PlainText]

Attributes

Source
CipherAPI.scala
final def encrypt[F[_] : Monad](plainText: PlainText, key: K[A])(implicit evidence$1: Monad[F], E: Encryptor[F, A, K], ivStrategy: IvGen[F, A]): F[CipherText[A]]

Attributes

Source
CipherAPI.scala
final def encrypt[F[_] : Monad](plainText: PlainText, key: K[A], ivs: IvGen[F, A])(E: Encryptor[F, A, K]): F[CipherText[A]]

Attributes

Source
CipherAPI.scala
final def encrypt[F[_]](plainText: PlainText, key: K[A], iv: Type[A])(implicit E: Encryptor[F, A, K]): F[CipherText[A]]

Attributes

Source
CipherAPI.scala