资源简介
国密SM2_SM3加密解密,加签验签操作C#源码,网络上很难找的资源,实现了密SM2_SM3加密解密,加签验签操作,.NET版
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using Com.Itrus.Crypto;
namespace ConsoleApplication_SM2_SM3
{
class Program
{
static void Main(string[] args)
{
//SM2.Main();
//SM3Digest.Main();
//SM2 sm2 = SM2.Instance;
SM2 sm2 = SM2.InstanceTest;
bool sm2Test = sm2.sm2Test;
if (sm2Test)
{
// System.out.println(“p = “ + sm2.ecc_p.toString(16));
// System.out.println(“a = “ + sm2.ecc_a.toString(16));
// System.out.println(“b = “ + sm2.ecc_b.toString(16));
// System.out.println(“n = “ + sm2.ecc_n.toString(16));
// System.out.println(“gx= “ + sm2.ecc_gx.toString(16));
// System.out.println(“gy= “ + sm2.ecc_gy.toString(16));
// System.out.println(“h = “ + sm2.ecc_bc_spec.getH().toString(16));
}
SM2_SM3_Test.Sm3_test();
SM2_SM3_Test.Test_sm2_sign(sm2);
SM2_SM3_Test.Test_sm2_keyexchange(sm2);
SM2_SM3_Test.Test_sm2_cipher(sm2);
Console.ReadLine();
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 144 2014-01-10 08:44 ConsoleApplication_SM2_SM3\app.config
文件 1212416 2007-07-05 05:06 ConsoleApplication_SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
文件 12800 2018-11-23 11:22 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe
文件 144 2014-01-10 08:44 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe.config
文件 19968 2018-11-23 11:22 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.pdb
文件 11592 2014-10-27 16:42 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe
文件 144 2014-01-10 08:44 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.config
文件 490 2010-03-17 22:39 ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.manifest
文件 20992 2018-11-23 11:22 ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.dll
文件 42496 2018-11-23 11:22 ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.pdb
文件 4355 2014-01-10 08:44 ConsoleApplication_SM2_SM3\ConsoleApplication_SM2_SM3.csproj
文件 452 2014-01-10 08:44 ConsoleApplication_SM2_SM3\ConsoleApplication_SM2_SM3.csproj.user
文件 1075 2011-03-25 18:11 ConsoleApplication_SM2_SM3\obj\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt
文件 0 2018-11-23 11:22 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.CopyComplete
文件 42 2018-11-22 18:53 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.CoreCompileInputs.cache
文件 2735 2018-11-23 11:22 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt
文件 22076 2018-11-23 11:22 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csprojAssemblyReference.cache
文件 12800 2018-11-23 11:22 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.exe
文件 19968 2018-11-23 11:22 ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.pdb
文件 5559 2014-10-09 11:00 ConsoleApplication_SM2_SM3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 5224 2014-10-09 08:59 ConsoleApplication_SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
文件 1179 2011-03-25 18:10 ConsoleApplication_SM2_SM3\Program.cs
文件 1199 2011-03-25 17:04 ConsoleApplication_SM2_SM3\Properties\AssemblyInfo.cs
文件 14955 2014-10-09 11:00 ConsoleApplication_SM2_SM3\SM2_SM3_Test.cs
文件 1212416 2007-07-05 05:06 SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
文件 20992 2018-11-23 11:22 SM2_SM3\bin\Debug\SM2_SM3.dll
文件 42496 2018-11-23 11:22 SM2_SM3\bin\Debug\SM2_SM3.pdb
文件 5375 2014-10-09 08:59 SM2_SM3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
文件 4129 2014-01-10 09:22 SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
文件 0 2018-11-23 11:22 SM2_SM3\obj\Debug\SM2_SM3.csproj.CopyComplete
............此处省略33个文件信息
评论
共有 条评论