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 _HMACCT_H_ michael@0: #define _HMACCT_H_ michael@0: michael@0: SEC_BEGIN_PROTOS michael@0: michael@0: extern SECStatus HMAC_ConstantTime( michael@0: unsigned char *result, michael@0: unsigned int *resultLen, michael@0: unsigned int maxResultLen, michael@0: const SECHashObject *hashObj, michael@0: const unsigned char *secret, michael@0: unsigned int secretLen, michael@0: const unsigned char *header, michael@0: unsigned int headerLen, michael@0: const unsigned char *body, michael@0: unsigned int bodyLen, michael@0: unsigned int bodyTotalLen); michael@0: michael@0: extern SECStatus SSLv3_MAC_ConstantTime( michael@0: unsigned char *result, michael@0: unsigned int *resultLen, michael@0: unsigned int maxResultLen, michael@0: const SECHashObject *hashObj, michael@0: const unsigned char *secret, michael@0: unsigned int secretLen, michael@0: const unsigned char *header, michael@0: unsigned int headerLen, michael@0: const unsigned char *body, michael@0: unsigned int bodyLen, michael@0: unsigned int bodyTotalLen); michael@0: michael@0: SEC_END_PROTOS michael@0: michael@0: #endif