X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/libsecurity_apple_csp/lib/ascContext.h diff --git a/libsecurity_apple_csp/lib/ascContext.h b/libsecurity_apple_csp/lib/ascContext.h deleted file mode 100644 index 55d2ad8d..00000000 --- a/libsecurity_apple_csp/lib/ascContext.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * ascContext.h - glue between BlockCrytpor and ComCryption (a.k.a. Apple - * Secure Compression). - * Written by Doug Mitchell 4/4/2001 - */ - -#ifdef ASC_CSP_ENABLE - -#ifndef _ASC_CONTEXT_H_ -#define _ASC_CONTEXT_H_ - -#include "AppleCSPContext.h" -#include - -/* symmetric encrypt/decrypt context */ -class ASCContext : public AppleCSPContext { -public: - ASCContext(AppleCSPSession &session) : - AppleCSPContext(session), - mCcObj(NULL) { } - ~ASCContext(); - - // called by CSPFullPluginSession - void init( - const Context &context, - bool encoding = true); - void update( - void *inp, - size_t &inSize, // in/out - void *outp, - size_t &outSize); // in/out - void final( - CssmData &out); - - size_t inputSize( - size_t outSize); // input for given output size - size_t outputSize( - bool final = false, - size_t inSize = 0); // output for given input size - void minimumProgress( - size_t &in, - size_t &out); // minimum progress chunks - -private: - comcryptObj mCcObj; - - /* - * For first implementation, we have to cope with the fact that the final - * decrypt call down to the comcryption engine requires *some* ciphertext. - * On decrypt, we'll just save one byte on each update in preparation for - * the final call. Hopefull we'll have time to fix deComcryptData() so this - * is unneccesary. - */ - unsigned char mDecryptBuf; - bool mDecryptBufValid; - -}; /* RC4Context */ - -#endif /*_ASC_CONTEXT_H_ */ -#endif /* ASC_CSP_ENABLE */