Blame nss/lib/freebl/hmacct.h

Packit 40b132
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit 40b132
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit 40b132
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit 40b132
Packit 40b132
#ifndef _HMACCT_H_
Packit 40b132
#define _HMACCT_H_
Packit 40b132
Packit 40b132
SEC_BEGIN_PROTOS
Packit 40b132
Packit 40b132
extern SECStatus HMAC_ConstantTime(
Packit 40b132
    unsigned char *result,
Packit 40b132
    unsigned int *resultLen,
Packit 40b132
    unsigned int maxResultLen,
Packit 40b132
    const SECHashObject *hashObj,
Packit 40b132
    const unsigned char *secret,
Packit 40b132
    unsigned int secretLen,
Packit 40b132
    const unsigned char *header,
Packit 40b132
    unsigned int headerLen,
Packit 40b132
    const unsigned char *body,
Packit 40b132
    unsigned int bodyLen,
Packit 40b132
    unsigned int bodyTotalLen);
Packit 40b132
Packit 40b132
extern SECStatus SSLv3_MAC_ConstantTime(
Packit 40b132
    unsigned char *result,
Packit 40b132
    unsigned int *resultLen,
Packit 40b132
    unsigned int maxResultLen,
Packit 40b132
    const SECHashObject *hashObj,
Packit 40b132
    const unsigned char *secret,
Packit 40b132
    unsigned int secretLen,
Packit 40b132
    const unsigned char *header,
Packit 40b132
    unsigned int headerLen,
Packit 40b132
    const unsigned char *body,
Packit 40b132
    unsigned int bodyLen,
Packit 40b132
    unsigned int bodyTotalLen);
Packit 40b132
Packit 40b132
SEC_END_PROTOS
Packit 40b132
Packit 40b132
#endif