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