mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
今度はwarningを消す
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@21 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
a656144f01
commit
541b299b1f
@ -118,13 +118,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef USE_HSM
|
#ifdef USE_HSM
|
||||||
// nShield
|
#include "cr_hsm_code.h"
|
||||||
#include "nfastapp.h"
|
|
||||||
#include "nfkm.h"
|
|
||||||
#include "rqcard-applic.h"
|
|
||||||
#include "rqcard-fips.h"
|
|
||||||
// nShield optional
|
|
||||||
#include "simplebignum.h"
|
|
||||||
#endif // USE_HSM
|
#endif // USE_HSM
|
||||||
|
|
||||||
// openssl
|
// openssl
|
||||||
|
|||||||
@ -135,6 +135,8 @@ extern RSA *d2i_RSA_PUBKEY(RSA **a, const unsigned char **pp, long length);
|
|||||||
static unsigned char local_buf_1[CR_ID_BUF_SIZE];
|
static unsigned char local_buf_1[CR_ID_BUF_SIZE];
|
||||||
static unsigned char local_buf_2[CR_ID_BUF_SIZE];
|
static unsigned char local_buf_2[CR_ID_BUF_SIZE];
|
||||||
|
|
||||||
|
static int crypto_aes_enc_dec( dst_buf, org_buf );
|
||||||
|
static int crypto_rsa_enc_dec( dst_buf, org_buf );
|
||||||
|
|
||||||
// ビルドスイッチに応じて、IDバッファをAES/RSAで暗号化
|
// ビルドスイッチに応じて、IDバッファをAES/RSAで暗号化
|
||||||
int EncryptID( unsigned char *dst_buf, unsigned char *org_buf )
|
int EncryptID( unsigned char *dst_buf, unsigned char *org_buf )
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user