commit | a3f0ab55a73d4c21de9f34ec21f27a2609b568fd | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Wed Jul 08 06:04:52 2015 -0600 |
committer | Shawn Willden <swillden@google.com> | Wed Jul 15 10:07:59 2015 -0600 |
tree | 08b2fa42295d1888a0e33a664bd46b6c65707349 | |
parent | a36ffbe0bbccbc2173589da1941dd39ee01a8004 [diff] |
Add KM_TAG_MIN_MAC_LENGTH. This allows the binding of minimum length for MACs or tags to HMAC keys and AEAD symmetric keys. Later attempts to use these keys with a shorter MAC or tag specification (provided to begin() with KM_TAG_MAC_LENGTH) will fail with KM_ERROR_INVALID_MAC_LENGTH. Bug: 22337277 Change-Id: Ic5292ce01bdd6ecde25aad115e4b407aadc85f23