-
Notifications
You must be signed in to change notification settings - Fork 0
/
SHA384.cpp
36 lines (29 loc) · 858 Bytes
/
SHA384.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "SHA384.hpp"
#include <cstring>
namespace crypto {
using HS512384 = SHA512384hashing<SHA384_HASH_SIZE>;
SHA384hashing::SHA384hashing(void) :
HS512384(std::make_unique<SHA384hashing::SHA384BlockCipherLike>())
{
}
SHA384hashing::SHA384BlockCipherLike::SHA384BlockCipherLike(void)
: HS512384::SHA512384BlockCipherLike()
{
reset();
}
void SHA384hashing::SHA384BlockCipherLike::reset(void)
{
m_msgBlock.fill(0);
m_spaceAvailable = m_msgBlock;
m_intermediateHash = {
0xcbbb9d5dc1059ed8,
0x629a292a367cd507,
0x9159015a3070dd17,
0x152fecd8f70e5939,
0x67332667ffc00b31,
0x8eb44a8768581511,
0xdb0c2e0d64f98fa7,
0x47b5481dbefa4fa4
};
}
} /* namespace crypto */