EncryptedMessage

fmgp.did.comm.EncryptedMessage
See theEncryptedMessage companion object
trait EncryptedMessage extends Message

DIDComm messaging

The encrypted form of a JWM is a JWE in General JSON Format.

DIDComm messaging support only a subset of the supported algorithms of JWAs

Types:

Content Encryption Algorithms: (with a AES 256-bit keys, or with an optional implementation using XC20P algorithm) https://identity.foundation/didcomm-messaging/spec/#curves-and-content-encryption-algorithms

  • X25519
  • P-384
  • P-256 (deprecated in favor of P-384)
  • P-521 (Optional)

JWE protected header enc MUST be one of:

  • A256CBC-HS512
  • A256GCM
  • XC20P (XChaCha20Poly1305 with a 256 bit key)

JWE protected header alg can be one of: https://identity.foundation/didcomm-messaging/spec/#key-wrapping-algorithms

  • ECDH-ES+A256KW (with P-256; P-384; P-521; X25519) for "anoncrypt" messages
  • ECDH-1PU+A256KW (with P-256; P-384; P-521; X25519) for "authcrypt" messages

Attributes

Companion
object
Graph
Supertypes
trait Message
class Object
trait Matchable
class Any
Known subtypes

Members list