mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
393a9d5a94
Add support for validating certificates with SHA384 and SHA512 hashes.
24 lines
573 B
C
24 lines
573 B
C
/*
|
|
* SHA-384 internal definitions
|
|
* Copyright (c) 2015, Pali Rohár <pali.rohar@gmail.com>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef SHA384_I_H
|
|
#define SHA384_I_H
|
|
|
|
#include "sha512_i.h"
|
|
|
|
#define SHA384_BLOCK_SIZE SHA512_BLOCK_SIZE
|
|
|
|
#define sha384_state sha512_state
|
|
|
|
void sha384_init(struct sha384_state *md);
|
|
int sha384_process(struct sha384_state *md, const unsigned char *in,
|
|
unsigned long inlen);
|
|
int sha384_done(struct sha384_state *md, unsigned char *out);
|
|
|
|
#endif /* SHA384_I_H */
|