CryptoOperationsImp

fmgp.crypto.CryptoOperationsImp

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

override def anonEncrypt(recipientKidsKeys: Seq[(VerificationMethodReferenced, PublicKey)], data: Array[Byte]): IO[CryptoFailed, EncryptedMessage]

anoncrypt - Guarantees confidentiality and integrity without revealing the identity of the sender.

anoncrypt - Guarantees confidentiality and integrity without revealing the identity of the sender.

Attributes

Definition Classes
def authDecrypt(senderKey: PublicKey, recipientKidsKeys: Seq[(VerificationMethodReferenced, PrivateKey)], msg: EncryptedMessage): IO[DidFail, Array[Byte]]

authcrypt - Guarantees confidentiality and integrity. Also proves the identity of the sender – but in a way that only the recipient can verify. This is the default wrapping choice, and SHOULD be used unless a different goal is clearly identified. By design, this combination and all other combinations that use encryption in their outermost layer share an identical IANA media type, because only the recipient should care about the difference.

authcrypt - Guarantees confidentiality and integrity. Also proves the identity of the sender – but in a way that only the recipient can verify. This is the default wrapping choice, and SHOULD be used unless a different goal is clearly identified. By design, this combination and all other combinations that use encryption in their outermost layer share an identical IANA media type, because only the recipient should care about the difference.

Attributes

Definition Classes
override def sign(key: PrivateKey, payload: Array[Byte]): IO[CryptoFailed, SignedMessage]

Attributes

Definition Classes
override def signJWT(key: PrivateKey, payload: Array[Byte]): IO[CryptoFailed, JWT]

Attributes

Definition Classes
override def verify(key: PublicKey, jwm: SignedMessage): IO[CryptoFailed, Boolean]

Attributes

Definition Classes
override def verifyJWT(key: PublicKey, jwt: JWT): IO[CryptoFailed, Boolean]

Attributes

Definition Classes