andre@0: /* andre@0: * blapii.h - private data structures and prototypes for the freebl library andre@0: * andre@0: * This Source Code Form is subject to the terms of the Mozilla Public andre@0: * License, v. 2.0. If a copy of the MPL was not distributed with this andre@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ andre@0: andre@0: #ifndef _BLAPII_H_ andre@0: #define _BLAPII_H_ andre@0: andre@0: #include "blapit.h" andre@0: andre@0: /* max block size of supported block ciphers */ andre@0: #define MAX_BLOCK_SIZE 16 andre@0: andre@0: typedef SECStatus (*freeblCipherFunc)(void *cx, unsigned char *output, andre@0: unsigned int *outputLen, unsigned int maxOutputLen, andre@0: const unsigned char *input, unsigned int inputLen, andre@0: unsigned int blocksize); andre@0: typedef void (*freeblDestroyFunc)(void *cx, PRBool freeit); andre@0: andre@0: SEC_BEGIN_PROTOS andre@0: andre@0: #if defined(XP_UNIX) && !defined(NO_FORK_CHECK) andre@0: andre@0: extern PRBool bl_parentForkedAfterC_Initialize; andre@0: andre@0: #define SKIP_AFTER_FORK(x) if (!bl_parentForkedAfterC_Initialize) x andre@0: andre@0: #else andre@0: andre@0: #define SKIP_AFTER_FORK(x) x andre@0: andre@0: #endif andre@0: andre@0: SEC_END_PROTOS andre@0: andre@0: #endif /* _BLAPII_H_ */ andre@0: