#include <assert.h>
#include <security_utilities/debugging.h>
-#define feeKeyDebug(args...) secdebug("feeKey", ## args)
+#define feeKeyDebug(args...) secinfo("feeKey", ## args)
/***
*** FEE-style BinaryKey
const CssmKey *paramKey, /* optional, unused here */
CSSM_KEYATTR_FLAGS &attrFlags) /* IN/OUT */
{
- unsigned char *keyBlob;
- unsigned len;
+ unsigned char *keyBlob = NULL;
+ unsigned len = 0;
feeReturn frtn = FR_Internal;
bool freeTheKey = false;
feePubKey keyToEncode = mFeeKey;
break;
default:
/* not reached */
+ badFormat = true;
break;
}
}
}
-
+
+void CryptKit::FEEKeyPairGenContext::generate(const Context &context, uint32, CssmData ¶ms, uint32 &attrCount, Context::Attr * &attrs) {
+ CssmError::throwMe(CSSM_ERRCODE_FUNCTION_NOT_IMPLEMENTED);
+}
+
// this one is specified in, and called from, AppleKeyPairGenContext
void CryptKit::FEEKeyPairGenContext::generate(
const Context &context,