mirror of
https://github.com/jakcron/nstool
synced 2024-12-25 06:01:12 +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 <crypto/aes.h>
|
||||
#include <crypto/rsa.h>
|
||||
#include <crypto/ecdsa.h>
|
||||
|
||||
namespace es
|
||||
{
|
||||
|
@ -17,6 +18,8 @@ namespace es
|
|||
SIGN_RSA2048_SHA256,
|
||||
SIGN_ECDSA240_SHA256,
|
||||
};
|
||||
|
||||
static const size_t kEcdsaSigSize = 0x3C;
|
||||
}
|
||||
#pragma pack(push,1)
|
||||
struct sRsa4096SignBlock
|
||||
|
@ -36,7 +39,7 @@ namespace es
|
|||
struct sEcdsa240SignBlock
|
||||
{
|
||||
be_uint32_t sign_type;
|
||||
byte_t signature[0x3C];
|
||||
byte_t signature[sign::kEcdsaSigSize];
|
||||
byte_t padding[0x40];
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
|
Loading…
Reference in a new issue