mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
15 lines
337 B
C++
15 lines
337 B
C++
|
#include "sha.h"
|
||
|
#include "polarssl/sha1.h"
|
||
|
#include "polarssl/sha2.h"
|
||
|
|
||
|
using namespace crypto::sha;
|
||
|
|
||
|
void crypto::sha::Sha1(const uint8_t* in, uint64_t size, uint8_t hash[kSha1HashLen])
|
||
|
{
|
||
|
sha1(in, size, hash);
|
||
|
}
|
||
|
|
||
|
void crypto::sha::Sha256(const uint8_t* in, uint64_t size, uint8_t hash[kSha256HashLen])
|
||
|
{
|
||
|
sha2(in, size, hash, false);
|
||
|
}
|