wxMaxima
Loading...
Searching...
No Matches
sha384.h
1/*
2** Name: sha384.h
3** Purpose: SHA-384 hashing
4** Copyright: (c) 2024-2024 Ulrich Telle
5** SPDX-License-Identifier: MIT
6*/
7
8// SHA-384. Adapted from LibTomCrypt (Public Domain).
9
10#pragma once
11#ifndef WXPDFDOC_CRYPTO_SHA384_H_
12#define WXPDFDOC_CRYPTO_SHA384_H_
13
14// SHA-384 is a truncated SHA-512 with different input vector.
15#include "sha512.h"
16
17namespace wxpdfdoc {
18namespace crypto {
19
21{
22 sha512_state md;
23};
24
25void sha_init(sha384_state& md);
26void sha_process(sha384_state& md, const void* in, std::uint32_t inlen);
27void sha_done(sha384_state& md, void* out);
28
29} // namespace crypto
30} // namespace wxpdfdoc
31
32#endif // WXPDFDOC_CRYPTO_SHA384_H_
Definition: sha384.h:21
Definition: sha512.h:20