EncryptionKey

org.llm4s.agent.encryption.EncryptionKey
See theEncryptionKey companion object
@Experimental
final class EncryptionKey

A 256-bit AES key and its KeyId (#2449). The key material is held privately: nothing reads it back, toString prints the id and ***, and no error names it. Two keys are equal only if they are the same instance.

A key is never used directly. Each thread's payloads are encrypted under a subkey derived from it and the thread's id (HKDF-Expand, RFC 5869, with HMAC-SHA-256), so the bound on random nonces under one AES-GCM key applies per thread, not per store.

Attributes

Companion
object
Source
EncryptionKey.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
EncryptionKey.scala

Concrete fields

val id: KeyId

Attributes

Source
EncryptionKey.scala