Expand description
Provides constants and convenience methods that define the format of ciphertexts and signatures.
Constants§
- LEGACY_
PREFIX_ SIZE - Prefix size of legacy key types. The prefix starts with \x00 and followed by a 4-byte key id.
- LEGACY_
START_ BYTE - First byte of the prefix of legacy key types.
- NON_
RAW_ PREFIX_ SIZE - Prefix size of Tink and Legacy key types.
- RAW_
PREFIX - Empty prefix for Raw key types.
- RAW_
PREFIX_ SIZE - Prefix size of Raw key types. Raw prefix is empty.
- TINK_
PREFIX_ SIZE - Prefix size of Tink key types. The prefix starts with \x01 and followed by a 4-byte key id.
- TINK_
START_ BYTE - First byte of the prefix of Tink key types.
Functions§
- output_
prefix - Generate the prefix of ciphertexts produced by the crypto primitive obtained from key.