資源簡介
sm2和SM3算法,國密 SM2 SM3 簽名 驗簽 加解密 公私鑰。經測試,很OK

代碼片段和文件信息
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??SM2和SM3\ConsoleApplication_SM2_SM3\app.config
?????文件????1212416??2007-07-05?05:06??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
?????文件??????12288??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe
?????文件????????144??2014-01-10?08:44??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe.config
?????文件??????24064??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.pdb
?????文件??????11592??2014-10-27?16:42??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe
?????文件????????144??2014-01-10?08:44??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.config
?????文件????????490??2010-03-17?22:39??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.manifest
?????文件??????20992??2014-10-09?08:59??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.dll
?????文件??????46592??2014-10-09?08:59??SM2和SM3\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.pdb
?????文件???????4355??2014-01-10?08:44??SM2和SM3\ConsoleApplication_SM2_SM3\ConsoleApplication_SM2_SM3.csproj
?????文件????????452??2014-01-10?08:44??SM2和SM3\ConsoleApplication_SM2_SM3\ConsoleApplication_SM2_SM3.csproj.user
?????文件???????1075??2011-03-25?18:11??SM2和SM3\ConsoleApplication_SM2_SM3\obj\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt
?????文件????????889??2014-10-27?16:42??SM2和SM3\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt
?????文件??????12288??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.exe
?????文件??????24064??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.pdb
?????文件???????5559??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????5224??2014-10-09?08:59??SM2和SM3\ConsoleApplication_SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
?????文件???????1179??2011-03-25?18:10??SM2和SM3\ConsoleApplication_SM2_SM3\Program.cs
?????文件???????1199??2011-03-25?17:04??SM2和SM3\ConsoleApplication_SM2_SM3\Properties\AssemblyInfo.cs
?????文件??????14955??2014-10-09?11:00??SM2和SM3\ConsoleApplication_SM2_SM3\SM2_SM3_Test.cs
?????文件????1212416??2007-07-05?05:06??SM2和SM3\SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
?????文件??????20992??2014-10-09?08:59??SM2和SM3\SM2_SM3\bin\Debug\SM2_SM3.dll
?????文件??????46592??2014-10-09?08:59??SM2和SM3\SM2_SM3\bin\Debug\SM2_SM3.pdb
?????文件???????5375??2014-10-09?08:59??SM2和SM3\SM2_SM3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????4129??2014-01-10?09:22??SM2和SM3\SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
?????文件????????344??2014-01-10?09:22??SM2和SM3\SM2_SM3\obj\Debug\SM2_SM3.csproj.FileListAbsolute.txt
?????文件??????20992??2014-10-09?08:59??SM2和SM3\SM2_SM3\obj\Debug\SM2_SM3.dll
?????文件??????46592??2014-10-09?08:59??SM2和SM3\SM2_SM3\obj\Debug\SM2_SM3.pdb
?????文件????????643??2011-03-25?18:10??SM2和SM3\SM2_SM3\obj\SM2_SM3.csproj.FileListAbsolute.txt
............此處省略33個文件信息
評論
共有 條評論