mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
calculate MAC
This commit is contained in:
parent
e1f64e2476
commit
5deccd7833
2 changed files with 18 additions and 3 deletions
2
Reseed.h
2
Reseed.h
|
@ -7,6 +7,7 @@
|
|||
#include <map>
|
||||
#include <cryptopp/osrng.h>
|
||||
#include <cryptopp/rsa.h>
|
||||
#include <cryptopp/hmac.h>
|
||||
#include "Identity.h"
|
||||
#include "aes.h"
|
||||
|
||||
|
@ -57,6 +58,7 @@ namespace data
|
|||
CryptoPP::RSA::PublicKey ExtractPublicKey (const uint8_t * certificate, size_t len);
|
||||
void PRF (const uint8_t * secret, const char * label, const uint8_t * random, size_t randomLen,
|
||||
size_t len, uint8_t * buf);
|
||||
void CalculateMACKey (uint8_t type, uint64_t seqn, const uint8_t * buf, size_t len, uint8_t * mac);
|
||||
size_t Encrypt (const uint8_t * in, size_t len, const uint8_t * mac, uint8_t * out);
|
||||
size_t Decrypt (uint8_t * in, size_t len, uint8_t * out);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue