Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Namespace is the store name used when creating a KMS store using kms.NewAriesProviderWrapper. // The reason this is here in addition to kms.AriesWrapperStoreName is because // the IndexedDB implementation refers to this. FOr the WASM unit tests, the aries-framework-go module import gets // replaced with the local version and so in order for both to work correctly, for now we have the constant defined // in both places. Namespace = localkms.Namespace )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoBox ¶ added in v0.1.4
CryptoBox provides an elliptic-curve-based authenticated encryption scheme
Payloads are encrypted using symmetric encryption (XChacha20Poly1305) using a shared key derived from a shared secret created by
Curve25519 Elliptic Curve Diffie-Hellman key exchange.
CryptoBox is created by a KMS, and reads secret keys from the KMS
for encryption/decryption, so clients do not need to see the secrets themselves.
func NewCryptoBox ¶ added in v0.1.4
func NewCryptoBox(w kms.KeyManager) (*CryptoBox, error)
NewCryptoBox creates a CryptoBox which provides crypto box encryption using the given KMS's key.
Click to show internal directories.
Click to hide internal directories.