Add AuthorizationSetBuilder.
Actually move it from google_keymaster_test, where it was called
ParamBuilder. This is a generally-useful tool.
Change-Id: I07200cdf2e5628289d9e544af02efe519ca124d3
diff --git a/rsa_operation.cpp b/rsa_operation.cpp
index fda2e8b..373ccaa 100644
--- a/rsa_operation.cpp
+++ b/rsa_operation.cpp
@@ -351,7 +351,8 @@
case KM_PAD_RSA_PSS:
// OpenSSL doesn't verify that the key is large enough for the digest size. This can cause
// a segfault in some cases, and in others can result in a unsafely-small salt.
- if ((unsigned) RSA_size(rsa_key_) < MIN_PSS_SALT_LEN + digest_size)
+ if ((unsigned)RSA_size(rsa_key_) < MIN_PSS_SALT_LEN + digest_size)
+ // TODO(swillden): Add a better return code for this.
return KM_ERROR_INCOMPATIBLE_DIGEST;
if ((error = PssPadDigest(&padded_digest)) != KM_ERROR_OK)