欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PDF文档下载
    分享到微信 分享到微博 分享到QQ空间

    ANSI INCITS ISO IEC 18032-2005 Information technology - Security techniques - Prime number generation《信息技术.安全技术.素数生成》.pdf

    • 资源ID:436260       资源大小:745.81KB        全文页数:24页
    • 资源格式: PDF        下载积分:10000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要10000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    ANSI INCITS ISO IEC 18032-2005 Information technology - Security techniques - Prime number generation《信息技术.安全技术.素数生成》.pdf

    1、INCITS/ISO/IEC 18032-2005 (ISO/IEC 18032:2005, IDT) Information technology Security techniques Prime numbergenerationIINCITS/ISO/IEC 18032-2005 (ISO/IEC 18032:2005, IDT)Copyright American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking

    2、 permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005ii ITIC 2005 All rights reserved PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedde

    3、d are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. De

    4、tails of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem

    5、 relating to it is found, please inform the Central Secretariat at the address given below. Adopted by INCITS (InterNational Committee for Information Technology Standards) as an American National Standard. Date of ANSI Approval: 8/29/2005 Published by American National Standards Institute, 25 West

    6、43rd Street, New York, New York 10036 Copyright 2005 by Information Technology Industry Council (ITI). All rights reserved. These materials are subject to copyright claims of International Standardization Organization (ISO), International Electrotechnical Commission (IEC), American National Standard

    7、s Institute (ANSI), and Information Technology Industry Council (ITI). Not for resale. No part of this publication may be reproduced in any form, including an electronic retrieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI

    8、, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of America Copyright American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005 ITIC 2005 All right

    9、s reserved iii Contents Page Foreword . iv 1 Scope . 1 2 Normative references 1 3 Terms and definitions . 2 4 Symbols . 2 5 Trial division 3 6 Probabilistic primality tests 4 6.1 Miller-Rabin primality test . 4 6.2 Frobenius-Grantham primality test. 5 6.3 Lehmann primality test . 5 7 Deterministic p

    10、rimality verification methods . 6 7.1 Elliptic curve primality certificate . 6 7.2 Primality certificate based on Maurers algorithm . 7 8 Prime number generation . 8 8.1 Requirements 8 8.2 Using probabilistic tests . 9 8.3 Using deterministic methods 10 9 Candidate prime testing 11 Annex A (informat

    11、ive) Error probabilities 13 Annex B (informative) Generating primes with side conditions . 16 Bibliography . 18 Copyright American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18

    12、032-2005 iv ITIC 2005 All rights reserved Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development

    13、 of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, i

    14、n liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the join

    15、t technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. Attenti

    16、on is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights. ISO/IEC 18032 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subco

    17、mmittee SC 27, IT Security techniques. Copyright American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-AMERICAN NATIONAL STANDARD INCITS/ISO/IEC 18032-2005 ITIC 2005 All rights reserved 1 Infor

    18、mation technology Security techniques Prime number generation 1 Scope This International Standard specifies methods for generating and testing prime numbers as required in cryptographic protocols and algorithms. Firstly, this International Standard specifies methods for testing whether a given numbe

    19、r is prime. The testing methods included in this International Standard can be divided into two groups: Probabilistic primality tests, which have a small error probability. All probabilistic tests described here may declare a composite to be a prime. One test described here may declare a prime to be

    20、 composite. Deterministic methods, which are guaranteed to give the right verdict. These methods use so-called primality certificates. Secondly, this International Standard specifies methods to generate prime numbers. Again, both probabilistic and deterministic methods are presented. NOTE Readers wi

    21、th a background in algorithm theory may have had previous encounters with probabilistic and deterministic algorithms. We stress that the deterministic methods in this International Standard internally still make use of random bits, and “deterministic” only refers to the fact that the output is corre

    22、ct with probability one. Annex B describes variants of the methods for generating primes so that particular cryptographic requirements can be met. The methods for generating, proving and verifying primality defined by this International Standard are applicable to cryptographic systems based on the p

    23、roperties of the primes. NOTE The specifications of the tests given in this International Standard define the properties to be tested in the simplest possible form. Following these specifications directly will not necessarily produce the most efficient implementations. This is especially the case fo

    24、r the Frobenius-Grantham test. 2 Normative references The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) appl

    25、ies. ISO/IEC 9796-2:2002, Information technology Security techniques Digital signature schemes giving message recovery Part 2: Integer factorization based mechanisms ISO/IEC 15946-1:2002, Information technology Security techniques Cryptographic techniques based on elliptic curves Part 1: General Cop

    26、yright American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005 2 ITIC 2005 All rights reserved 3 Terms and definitions For the purposes of this document, the following t

    27、erms and definitions apply. 3.1 composite number composite Integer N 1 is composite if it is not prime, i.e. there exist divisors of N that are not trivial divisors. 3.2 entropy Total amount of information yielded by a set of bits. It is representative of the work effort required for an adversary to

    28、 be able to reproduce the same set of bits. 3.3 Jacobi symbol Jacobi symbol of a with respect to an odd number n is the product of the Legendre symbols of a with respect to the prime factors of n (repeating the Legendre symbols for repeated prime factors). NOTE Defined in Annex A of ISO/IEC 9796-2.

    29、3.4 Legendre symbol Let p be an odd prime, and let a be a positive integer. The Legendre symbol of a with respect to p is defined as a(p - 1)/2 mod p. NOTE Defined in Annex A of ISO/IEC 9796-2. 3.5 primality certificate Mathematical proof that a given number is indeed a prime. For small numbers prim

    30、ality is most efficiently proven by trial division. In these cases, the primality certificate may therefore be empty. 3.6 prime number prime Integer N 1 is prime if the only divisors of N are trivial divisors. 3.7 pseudo-random bit generator Deterministic algorithm which when given some form of a bi

    31、t sequence of length k outputs a sequence of bits of length l k, computationally infeasible to distinguish from true random bits. 3.8 trial division Trial division of a number N means checking all prime numbers smaller than or equal to N to see if they divide N. 3.9 trivial divisor Any integer N is

    32、always divisible by 1, -1, N and N. These numbers are the trivial divisors of N. 4 Symbols a mod n for integers a and n, (a mod n) denotes the (non-negative) remainder obtained when a is divided by n. C a primality certificate C(N) primality certificate of the number N. Copyright American National S

    33、tandards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005 ITIC 2005 All rights reserved 3 C0(N) the empty primality certificate. It indicates that trial division should be used to verify tha

    34、t N is a prime. gcd greatest common divisor g(x) mod (N,f(x) the remainder when the polynomial g(x) is divided by the polynomial f(x), calculating coefficients modulo the integer N k number of bits in N L limit below which primality is verified by trial division logb(a) the logarithm of a with respe

    35、ct to base b ln() the natural logarithm (i.e., with respect to the number e) M a lower bound on the size of an interval in which a prime number has to be found mina,b the minimum of the numbers a and b N candidate number to be tested for primality, where N is always a positive, odd number. n0 a star

    36、ting point in an incremental search for a prime nmax an end point in an incremental search for a prime T a (probabilistic) test for primality ZN the set of the integer numbers 0, 1, 2, ., N-1, representing the ring of integers modulo N. ZN* the subset of ZN containing the numbers that have a multipl

    37、icative inverse modulo N (i.e., if N is prime: the integer numbers 1, 2, ., N-1) ZNx/f(x) the ring of polynomials modulo f(x) with coefficients in ZN x the largest integer smaller than or equal to x. a parameter which determines the lower bound of the entropy of the output of a prime generation algo

    38、rithm the maximal number of steps in an incremental search for a prime 5 Trial division The primality of an integer N can be proven by means of trial division. This is done in the following way: 1. For all primes p N a. If N mod p = 0 then return “reject” 2. Return “accept” For small integers N, tri

    39、al division is less computationally expensive than other primality tests. Implementations of any primality test described in this standard may define a trial division bound L, below which trial division is used in order to prove the primality of integers. This International Standard sets no value fo

    40、r L. NOTE It is assumed that the set of prime numbers below a certain size are already known. One practical way to implement the test may be to have a pre-computed table of the first few primes, do trial division by these, and then simply trial divide by all odd integers up to the square root. Copyr

    41、ight American National Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005 4 ITIC 2005 All rights reserved NOTE The size of integers for which trial division is less computationally e

    42、xpensive than another primality test, depends on the test and its implementation. A typical value for L might be L = 103. 6 Probabilistic primality tests A probabilistic primality test takes a positive, odd number N as input and returns “accept” or “reject”. If N is a composite number, the tests des

    43、cribed in this clause output “reject”, except with some error probability depending on the test being used. The probability that a composite number is accepted is not negligible. If N is a prime number, the Miller-Rabin test and the Frobenius-Grantham test always output “accept”. The Lehmann test re

    44、jects a prime number with a probability that is not negligible. In order to reduce the probability of errors, one usually makes several iterations with the same input (and different choices for the random values). 6.1 Miller-Rabin primality test On input of a candidate number, N, the Miller-Rabin te

    45、st starts with the following initialisation step: 1. Determine positive integers t and s such that N-1 = 2ts, where s is odd. Subsequently, the Miller-Rabin test proceeds with one or more iterations of the following algorithm, which takes inputs t, s, N and outputs “accept” or “reject”. For each ite

    46、ration, a different base b must be selected, with 2 b N-2. NOTE One iteration of the algorithm is called testing N for primality with respect to the base b. 1. Choose a random integer b such that 2 b N-2. 2. Let y = bs mod N 3. if y 1 and y N-1 then do a. i = 1 b. while i 1 is prime if and only if a

    47、 ZN*: a(N-1)/2 = 1 mod N and a ZN*: a(N-1)/2 = -1 mod N. The Lehmann primality test takes as input a candidate number N and a parameter t indicating the maximum number of iterations to be executed. The test executes the following algorithm. 1. Set f = “false”. 2. Do t times Copyright American Nation

    48、al Standards Institute Provided by IHS under license with ANSI Not for ResaleNo reproduction or networking permitted without license from IHS-,-,-INCITS/ISO/IEC 18032-2005 6 ITIC 2005 All rights reserved a. Choose a random integer b such that 2 b N-2. b. Let y = b(N-1)/2 mod N. c. If y 1 and y N-1 then return “reject”. d. If y = N-1, then set f = “true”. 3. If f = “true” then return “accept”, else return “reject”. NOTE Informative Annex A contains information on the error probability of this test depending on the n


    注意事项

    本文(ANSI INCITS ISO IEC 18032-2005 Information technology - Security techniques - Prime number generation《信息技术.安全技术.素数生成》.pdf)为本站会员(brainfellow396)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开