jpayne@69: /* jpayne@69: * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. jpayne@69: * jpayne@69: * Licensed under the OpenSSL license (the "License"). You may not use jpayne@69: * this file except in compliance with the License. You can obtain a copy jpayne@69: * in the file LICENSE in the source distribution or at jpayne@69: * https://www.openssl.org/source/license.html jpayne@69: */ jpayne@69: jpayne@69: #ifndef HEADER_HMAC_H jpayne@69: # define HEADER_HMAC_H jpayne@69: jpayne@69: # include jpayne@69: jpayne@69: # include jpayne@69: jpayne@69: # if OPENSSL_API_COMPAT < 0x10200000L jpayne@69: # define HMAC_MAX_MD_CBLOCK 128 /* Deprecated */ jpayne@69: # endif jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: size_t HMAC_size(const HMAC_CTX *e); jpayne@69: HMAC_CTX *HMAC_CTX_new(void); jpayne@69: int HMAC_CTX_reset(HMAC_CTX *ctx); jpayne@69: void HMAC_CTX_free(HMAC_CTX *ctx); jpayne@69: jpayne@69: DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, jpayne@69: const EVP_MD *md)) jpayne@69: jpayne@69: /*__owur*/ int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, jpayne@69: const EVP_MD *md, ENGINE *impl); jpayne@69: /*__owur*/ int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, jpayne@69: size_t len); jpayne@69: /*__owur*/ int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, jpayne@69: unsigned int *len); jpayne@69: unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, jpayne@69: const unsigned char *d, size_t n, unsigned char *md, jpayne@69: unsigned int *md_len); jpayne@69: __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); jpayne@69: jpayne@69: void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); jpayne@69: const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx); jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif