git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-05-23%20-%20ctr.7z%20+%20svn_v1.068.zip/ctr/svn/ctr_Repair@160 385bec56-5757-e545-9c3a-d8741f4650f1

This commit is contained in:
mizu 2011-03-25 04:12:47 +00:00
parent 196a2f720a
commit a4083c3429

View File

@ -138,23 +138,6 @@ bool VeriRsa(u8* src,size_t sz,u8* sig,u8* pub)
}
//署名作成
bool SigRsa(u8* src,size_t sz,u8* sig,u8* priv)
{
nn::crypto::RsaKey key;
//nn::crypto::Initialize();
nn::ps::CTR::Initialize();
nn::Result res = key.InitializePrivateKey(priv,KEY_LENGTH);
NN_LOG("iniprvkey desc= %d\n",res.GetDescription());
if (res.IsSuccess())
{
res = nn::ps::CTR::SignRsaSha256(src,sz,sig,key);
NN_LOG("sig desc= %d\n",res.GetDescription());
}
//nn::crypto::Finalize();
nn::ps::CTR::Finalize();
return res.IsSuccess();
}
void ErrorStop(char *s)
{