• 大小: 0.93M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: SM2  SM3  算法  

资源简介

国密SM2、SM3算法的C#实现。

资源截图

代码片段和文件信息

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-03-25 17:04  国密算法_SM2_SM3\
     目录           0  2011-03-25 18:23  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\
     目录           0  2011-03-25 17:04  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\
     目录           0  2011-03-25 17:12  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\
     文件     1212416  2007-07-05 05:06  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
     文件       24576  2011-03-25 18:10  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.exe
     文件       22016  2011-03-25 18:10  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.pdb
     文件        5632  2011-03-25 18:11  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\ConsoleApplication_SM2_SM3.vshost.exe
     文件       32768  2011-03-25 17:47  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.dll
     文件       44544  2011-03-25 17:47  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\bin\Debug\SM2_SM3.pdb
     文件        2506  2011-03-25 17:47  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\ConsoleApplication_SM2_SM3.csproj
     目录           0  2011-03-25 17:07  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\
     文件        1075  2011-03-25 18:11  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\ConsoleApplication_SM2_SM3.csproj.FileListAbsolute.txt
     目录           0  2011-03-25 18:10  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\Debug\
     文件       24576  2011-03-25 18:10  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.exe
     文件       22016  2011-03-25 18:10  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\Debug\ConsoleApplication_SM2_SM3.pdb
     文件        5147  2011-03-25 17:47  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
     目录           0  2011-03-25 17:04  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\obj\Debug\TempPE\
     文件        1179  2011-03-25 18:09  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\Program.cs
     目录           0  2011-03-25 17:04  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\Properties\
     文件        1199  2011-03-25 17:04  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\Properties\AssemblyInfo.cs
     文件       14955  2011-03-25 18:23  国密算法_SM2_SM3\ConsoleApplication_SM2_SM3\SM2_SM3_Test.cs
     目录           0  2011-03-25 17:26  国密算法_SM2_SM3\SM2_SM3\
     目录           0  2011-03-25 16:36  国密算法_SM2_SM3\SM2_SM3\bin\
     目录           0  2011-03-25 16:59  国密算法_SM2_SM3\SM2_SM3\bin\Debug\
     文件     1212416  2007-07-05 05:06  国密算法_SM2_SM3\SM2_SM3\bin\Debug\BouncyCastle.Crypto.dll
     文件       32768  2011-03-25 17:47  国密算法_SM2_SM3\SM2_SM3\bin\Debug\SM2_SM3.dll
     文件       44544  2011-03-25 17:47  国密算法_SM2_SM3\SM2_SM3\bin\Debug\SM2_SM3.pdb
     目录           0  2011-03-25 16:58  国密算法_SM2_SM3\SM2_SM3\obj\
     目录           0  2011-03-25 17:47  国密算法_SM2_SM3\SM2_SM3\obj\Debug\
     文件        3370  2011-03-25 16:58  国密算法_SM2_SM3\SM2_SM3\obj\Debug\ResolveAssemblyReference.cache
............此处省略11个文件信息

评论

共有 条评论