#include <CryptKit/falloc.h>
#include <CryptKit/feeFunctions.h>
#include <MiscCSPAlgs/SHA1_MD5_Object.h>
+#include <Security/digestobject.h>
CssmAllocator *CryptKitFactory::normAllocator;
CssmAllocator *CryptKitFactory::privAllocator;
*privAllocator)));
}
return true;
+ case CSSM_ALGID_FEE:
+ if(cspCtx == NULL) {
+ cspCtx = new SignatureContext(session,
+ *(new NullDigest()),
+ *(new FEERawSigner(feeRandCallback,
+ &session,
+ session,
+ *privAllocator)));
+ }
+ return true;
+ case CSSM_ALGID_ECDSA:
+ if(cspCtx == NULL) {
+ cspCtx = new SignatureContext(session,
+ *(new NullDigest()),
+ *(new FEEECDSASigner(feeRandCallback,
+ &session,
+ session,
+ *privAllocator)));
+ }
+ return true;
default:
break;
}