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