mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[es] Add a constant to sign.h
This commit is contained in:
parent
20689e9cbd
commit
c2b8223413
1 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
#include <fnd/types.h>
|
#include <fnd/types.h>
|
||||||
#include <crypto/aes.h>
|
#include <crypto/aes.h>
|
||||||
#include <crypto/rsa.h>
|
#include <crypto/rsa.h>
|
||||||
|
#include <crypto/ecdsa.h>
|
||||||
|
|
||||||
namespace es
|
namespace es
|
||||||
{
|
{
|
||||||
|
@ -17,6 +18,8 @@ namespace es
|
||||||
SIGN_RSA2048_SHA256,
|
SIGN_RSA2048_SHA256,
|
||||||
SIGN_ECDSA240_SHA256,
|
SIGN_ECDSA240_SHA256,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const size_t kEcdsaSigSize = 0x3C;
|
||||||
}
|
}
|
||||||
#pragma pack(push,1)
|
#pragma pack(push,1)
|
||||||
struct sRsa4096SignBlock
|
struct sRsa4096SignBlock
|
||||||
|
@ -36,7 +39,7 @@ namespace es
|
||||||
struct sEcdsa240SignBlock
|
struct sEcdsa240SignBlock
|
||||||
{
|
{
|
||||||
be_uint32_t sign_type;
|
be_uint32_t sign_type;
|
||||||
byte_t signature[0x3C];
|
byte_t signature[sign::kEcdsaSigSize];
|
||||||
byte_t padding[0x40];
|
byte_t padding[0x40];
|
||||||
};
|
};
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
Loading…
Reference in a new issue