Ключи Tink состоят как из ключевого материала, так и из метаданных. В разделе, посвященном маркировке зашифрованных текстов , объясняется , как Tink также позволяет добавлять к зашифрованным текстам префикс 5-байтовой строки, полученной из идентификатора, что означает, что ключ также зависит от идентификатора, который он имеет в наборе ключей.
Поэтому для создания нового ключа Тинк обычно использует следующие ингредиенты:
[null,null,["Последнее обновление: 2024-10-26 UTC."],[[["Tink keys comprise key material and metadata, including parameters like hash function and output length, but exclude key material randomness and key ID."],["Creating a new key in Tink involves using parameters, a unique key ID, and cryptographically secure random data."],["Key parameters in Tink encompass information used for key creation, such as hash function, output length, and key material length, but exclude the actual key material."],["A complete Tink key combines its parameters, key material, and a unique ID, enabling secure cryptographic operations."]]],["Tink keys comprise key material and metadata, including a prefix derived from the key ID. To create a key, Tink uses parameters, the key's ID, and randomness. Key parameters consist of information used to create the key, excluding the key material and ID. For HMAC, parameters include key material length, hash function, output length (if truncated), and how to derive the prefix from the ID. These parameters, with the key material and ID, define the full key.\n"]]