Static ReadonlySYMMETRIC_Static ReadonlyUR_StaticnewCreate a new random symmetric key.
StaticfromStaticfromCreate a new symmetric key from data (validates length).
StaticfromStaticfromStaticrandomGenerate a random symmetric key.
StaticrandomGenerate a random symmetric key using provided RNG.
Get the data of the symmetric key.
Get the data of the symmetric key as a byte slice.
Get a copy of the raw key bytes.
Get hex string representation.
Get hex string representation (alias for hex()).
Get base64 representation.
Get string representation.
Encrypt the given plaintext with this key, and the given additional authenticated data and nonce.
Optionalaad: Uint8Array<ArrayBufferLike>Optionalnonce: NonceDecrypt the given encrypted message with this key.
Returns the CBOR tags associated with SymmetricKey.
Returns the untagged CBOR encoding (as a byte string).
Returns the tagged CBOR encoding.
Returns the tagged value in CBOR binary representation.
StaticfromStaticfromStatic method to decode from tagged CBOR binary data.
StaticfromStatic method to decode from untagged CBOR binary data.
Returns the UR representation of the symmetric key.
Returns the UR string representation of the symmetric key.
StaticfromStaticfromStaticfrom
Get the UR type for symmetric keys.