Skip to content

SecretKey

In std/crypto.

type SecretKey<A> : Secret

A symmetric key of algorithm A. It prints as SecretKey<A>(redacted).

fn SecretKey<A : SecretAlgorithm>(key: Bytes, algorithm: Type<A>) : SecretKey<A>

The symmetric key of algorithm algorithm that key holds: exactly 32 octets for a cipher, and at least one for a MAC. Another length is an evaluation error naming the length.