aboutsummaryrefslogtreecommitdiff
path: root/cc/aead/aead_key.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/aead/aead_key.h')
-rw-r--r--cc/aead/aead_key.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/cc/aead/aead_key.h b/cc/aead/aead_key.h
index 869ddc83c..8645e289c 100644
--- a/cc/aead/aead_key.h
+++ b/cc/aead/aead_key.h
@@ -34,11 +34,8 @@ class AeadKey : public Key {
// have an associated ciphertext output prefix. When decrypting a ciphertext,
// only keys with a matching prefix have to be tried.
//
- // Note that a priori, the output prefix may not be unique in a keyset
- // (i.e., different keys in a keyset may have the same prefix or one prefix
- // may be a prefix of another). To avoid this, built-in Tink keys use the
- // convention that the prefix is either '0x00<big endian key id>' or
- // '0x01<big endian key id>'.
+ // See https://developers.google.com/tink/wire-format#tink_output_prefix for
+ // more background information on Tink output prefixes.
virtual absl::string_view GetOutputPrefix() const = 0;
const AeadParameters& GetParameters() const override = 0;