Contents

SymmetricKey

A symmetric cryptographic key.

Declaration

struct SymmetricKey

Overview

You typically derive a symmetric key from an instance of a shared secret (SharedSecret) that you obtain through key agreement. You use a symmetric key to compute a message authentication code like HMAC, or to open and close a sealed box (ChaChaPoly.SealedBox or AES.GCM.SealedBox) using a cipher like ChaChaPoly or AES.

Topics

Creating a key

Getting the key length

See Also

Message authentication codes