基于余数系统的sm2白盒数字签名


3.功能性:本系统实现数字内容的数字签名及验签功能。首先,用户指定需签名的数字内容;系统计算这份数字内容的Hash值;然后系统对Hash值进行签名,完成文件的签名操作;此外,系统中的验签算法可以判断签名是否合法。 4.创新性:目前,同类系统主要采用ECDSA或者SM2等标准数字签名算法进行签名,本系统基于白盒数字签名算法对文件签名,提高了不可信环境中用户签名私钥的安全性。 5.实用性:该系统以纯软件的方式实现不可信环境中的签名操作,成本低。而且,产生的签名可以用标准算法进行验签,通用性强。
资源截图
代码片段和文件信息
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements. See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License Version 2.0
 * (the “License“); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License is distributed on an “AS IS“ BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

/*
 * This package is based on the work done by Keiron Liddle Aftex Software
 *  to whom the Ant project is very grateful for his
 * great code.
 */

using System;

namespace Org.BouncyCastle.Apache.Bzip2
{
    /**
    * base class for both the compress and decompress classes.
    * Holds common arrays and static data.
    *
    * @author Keiron Liddle
    */
    public class BZip2Constants {

        public const int baseBlockSize = 100000;
        public const int MAX_ALPHA_SIZE = 258;
        public const int MAX_CODE_LEN = 23;
        public const int RUNA = 0;
        public const int RUNB = 1;
        public const int N_GROUPS = 6;
        public const int G_SIZE = 50;
        public const int N_ITERS = 4;
        public const int MAX_SELECTORS = (2 + (900000 / G_SIZE));
        public const int NUM_OVERSHOOT_BYTES = 20;

        public static readonly int[] rNums = {
            619 720 127 481 931 816 813 233 566 247
            985 724 205 454 863 491 741 242 949 214
            733 859 335 708 621 574 73 654 730 472
            419 436 278 496 867 210 399 680 480 51
            878 465 811 169 869 675 611 697 867 561
            862 687 507 283 482 129 807 591 733 623
            150 238 59 379 684 877 625 169 643 105
            170 607 520 932 727 476 693 425 174 647
            73 122 335 530 442 853 695 249 445 515
            909 545 703 919 874 474 882 500 594 612
            641 801 220 162 819 984 589 513 495 799
            161 604 958 533 221 400 386 867 600 782
            382 596 414 171 516 375 682 485 911 276
            98 553 163 354 666 933 424 341 533 870
            227 730 475 186 263 647 537 686 600 224
            469 68 770 919 190 373 294 822 808 206
            184 943 795 384 383 461 404 758 839 887
            715 67 618 276 204 918 873 777 604 560
            951 160 578 722 79 804 96 409 713 940
            652 934 970 447 318 353 859 672 112 785
            645 863

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-10-16 17:40  基于余数系统的sm2白盒数字签名
     目录           0  2018-10-16 17:43  基于余数系统的sm2白盒数字签名源码
     目录           0  2018-10-16 17:44  基于余数系统的sm2白盒数字签名源码sm2
     文件         902  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2.gitattributes
     文件         203  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2.gitignore
     文件        2718  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2BouncyCastle-PCL.sln
     文件     2686976  2018-04-09 16:18  基于余数系统的sm2白盒数字签名源码sm2BouncyCastle.sdf
     文件        6890  2018-04-12 14:01  基于余数系统的sm2白盒数字签名源码sm2BouncyCastle.sln
     文件         596  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2BouncyCastle.snk
     文件      237056  2018-04-12 14:01  基于余数系统的sm2白盒数字签名源码sm2BouncyCastle.v12.suo
     目录           0  2018-10-16 17:44  基于余数系统的sm2白盒数字签名源码sm2Debug
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2FxCop
     文件        3129  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2FxCopCustomDictionary.xml
     文件        3624  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2MimeKit.BouncyCastle.nuspec
     文件        2945  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2README.md
     目录           0  2018-10-16 17:44  基于余数系统的sm2白盒数字签名源码sm2Release
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2crypto
     文件       91305  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoBouncyCastle.Android.csproj
     文件       90858  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoBouncyCastle.csproj
     文件       91029  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoBouncyCastle.iOS.csproj
     文件        5926  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoContributors.html
     文件        1846  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoLicense.html
     文件       10397  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoNBuild.build
     文件       33971  2015-12-28 22:34  基于余数系统的sm2白盒数字签名源码sm2cryptoReadme.html
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2cryptoin
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2cryptoinDebug
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2cryptoinDebuglib
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2cryptoinDebuglib
et20
     文件     2349568  2018-03-29 19:58  基于余数系统的sm2白盒数字签名源码sm2cryptoinDebuglib
et20BouncyCastle.dll
     文件     8279552  2018-03-29 19:58  基于余数系统的sm2白盒数字签名源码sm2cryptoinDebuglib
et20BouncyCastle.pdb
     目录           0  2018-10-16 17:41  基于余数系统的sm2白盒数字签名源码sm2cryptoinRelease
............此处省略3043个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)