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>
Thu, 10 Sep 2015 17:22:38 +0000 (11:22 -0600)
commit4ff5f8fe34d0a64365e756533917889f3e35be9f
treebeb811a255ea40e8a11c795aca3058ef0e15ddf7
parentfef6638e82a8b3140f45e7ce410ad72609821142
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