Add AAD support to AES OCB.
Also add OCB test vectors.
Change-Id: I33074bfea142aab334916c4567f92a6645fcab9f
diff --git a/authorization_set.cpp b/authorization_set.cpp
index 01e66a5..124baba 100644
--- a/authorization_set.cpp
+++ b/authorization_set.cpp
@@ -487,4 +487,13 @@
return true;
}
+bool AuthorizationSet::GetTagValueBool(keymaster_tag_t tag) const {
+ int pos = find(tag);
+ if (pos == -1) {
+ return false;
+ }
+ assert(elems_[pos].boolean);
+ return elems_[pos].boolean;
+}
+
} // namespace keymaster