OSDN Git Service

Add KM_TAG_MIN_MAC_LENGTH.
authorShawn Willden <swillden@google.com>
Wed, 8 Jul 2015 12:04:52 +0000 (06:04 -0600)
committerShawn Willden <swillden@google.com>
Wed, 15 Jul 2015 16:07:59 +0000 (10:07 -0600)
commita3f0ab55a73d4c21de9f34ec21f27a2609b568fd
tree08b2fa42295d1888a0e33a664bd46b6c65707349
parenta36ffbe0bbccbc2173589da1941dd39ee01a8004
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
include/hardware/keymaster_defs.h