• 大小: 1.65MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-01
  • 语言: C#
  • 标签: 国密  sm2  sm3  签名  验签  

资源简介

国密SM2_SM3加密解密,加签验签操作C#源码,加签验签操作,.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();    
        }

    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     83456  2019-06-19 15:03  国密签名验签源码C#\.vs\国密算法_SM2_SM3签名验签\v15\.suo

     文件       4096  2019-06-19 15:03  国密签名验签源码C#\.vs\国密算法_SM2_SM3签名验签\v15\Server\sqlite3\storage.ide

     文件      32768  2019-06-19 15:03  国密签名验签源码C#\.vs\国密算法_SM2_SM3签名验签\v15\Server\sqlite3\storage.ide-shm

     文件     140112  2019-06-19 15:03  国密签名验签源码C#\.vs\国密算法_SM2_SM3签名验签\v15\Server\sqlite3\storage.ide-wal

     文件        144  2014-01-10 08:44  国密签名验签源码C#\ConsoleApplication_SM2_SM3\app.config

     文件    1212416  2007-07-05 05:06  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll

     文件      12800  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe

     文件        144  2014-01-10 08:44  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe.config

     文件      19968  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.pdb

     文件      11592  2014-10-27 16:42  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe

     文件        144  2014-01-10 08:44  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.config

     文件        490  2010-03-17 22:39  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe.manifest

     文件      20992  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.dll

     文件      42496  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.pdb

     文件       4355  2014-01-10 08:44  国密签名验签源码C#\ConsoleApplication_SM2_SM3\ConsoleApplication_sign.csproj

     文件        452  2014-01-10 08:44  国密签名验签源码C#\ConsoleApplication_SM2_SM3\ConsoleApplication_sign.csproj.user

     文件       1075  2011-03-25 18:11  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt

     文件          0  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_sign.csproj.CopyComplete

     文件         42  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_sign.csproj.CoreCompileInputs.cache

     文件       1353  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_sign.csproj.FileListAbsolute.txt

     文件       7307  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_sign.csprojAssemblyReference.cache

     文件          0  2019-06-19 15:02  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.CopyComplete

     文件         42  2019-06-19 15:02  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.CoreCompileInputs.cache

     文件       4097  2019-06-19 15:02  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt

     文件      18235  2019-06-19 15:02  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.csprojAssemblyReference.cache

     文件      12800  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.exe

     文件      19968  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.pdb

     文件       6468  2019-06-19 15:03  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       5224  2014-10-09 08:59  国密签名验签源码C#\ConsoleApplication_SM2_SM3\obj\Debug\ResolveAssemblyReference.cache

     文件       1179  2011-03-25 18:10  国密签名验签源码C#\ConsoleApplication_SM2_SM3\Program.cs

............此处省略48个文件信息

评论

共有 条评论