概述
现代密码学大作业
- RSA加密体制破译
- 题目来源
- 问题描述
- 实例破解
- 成绩评判
- 国内外研究进展与现状
- 参考文献与可能用到的软件
- 解答方法:
RSA加密体制破译
题目来源
首届(2016 )全国高校密码数学挑战赛赛题三
问题描述
RSA密码算法是使用最为广泛的公钥密码体制。该体制简单且易于实现,只需要选择5个参数即可(两个素数????和????、模数????=????????、加密指数????和解密指数????。设????为待加密消息RSA体制破译相当于已知 ???? ???? m o d ???? ????^????mod???? memodN能否还原????的数论问题。目前模数规模为1024比特的RSA算法一般情况下是安全的,但是如果参数选取不当,同样存在被破译的可能。
有人制作了一个RSA加解密软件采用的RSA体制的参数特点描述见密码背景部分)。已知该软件发送某个明文的所有参数和加密过程的全部数据(加密案例文件详见附件3-1。Alice使用该软件发送了一个通关密语,且所有加密数据已经被截获,请问能否仅从加密数据恢复该通关密语及RSA体制参数?如能请给出原文和参数,如不能请给出已恢复部分并说明剩余部分不能恢复的理由?
- 原始明文
This is a test of my RSA system.
- Frame0
A5F51EB02EA9C0CC9B96926A08A761FE3E7CDB6E5B348DBEAEC761DBCFCDB15A6C76F8EE08196008AE60E396D7E228C6DAFC3CC1127F16EC87576B89C151F20F99098621FD46872BC92CDA8C915B758E5C0CACB994F55B8705B938126E08589E2502A7B9019C9A62E82392E8449E00CFC7DA17B8CDE92F9516CE9A2009F42DD900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100019726C82FED1E6CD58DE825528AE5634653C9921CAE02AFF7325F20D6E7085B7C8E3DC78D7518A78A8BC7D07E2E837083324579510851827794AE3D1FB9BAB360B1413A8F171A83804CEA73DFBC1248139BB27EB7D5BAD724AD8B08F51888B90562AF950725ACDD698F817AE62746CEA09479A191A6552B0116830355C68D0F61
- Frame1
A5F51EB02EA9C0CC9B96926A08A761FE3E7CDB6E5B348DBEAEC761DBCFCDB15A6C76F8EE08196008AE60E396D7E228C6DAFC3CC1127F16EC87576B89C151F20F99098621FD46872BC92CDA8C915B758E5C0CACB994F55B8705B938126E08589E2502A7B9019C9A62E82392E8449E00CFC7DA17B8CDE92F9516CE9A2009F42DD90000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001789018FDB800AD59A54D27A77F280515BB3BFAB1CD75CB0A255A116D4A44849459FD887FF091F87C0B3E6305F019700E4E4CB3646D1DF276DFB87C4F64245F77377508EC6A796236F8ABB125023D3F4B898F55E3342D0A852193AF890990EA82F12FC85917BF132F2A58C449648D6E934B24E80307AB092DB18110D77BBA0F8E
- Frame2
BA645145D9DE58B0FFA6FC4624A2815092D2A2DC405E7A2515F985727D3C52F479A4D04694568CA9B08391BE79BD122808CF6034AB7251088687BFF5916A4F4723FE1372DCF9B069CAB269A9F8F47CB50078D3279B9452C9B3B65A07B49C793783EDB8EB8D8F1A220D9EFED33147483103A2551A96932738255493F13B5119530000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001534810A0D1B2F6FB257DC3BBDA30AA76157B89038E52D05EE1E5DB06C2D79FAE84892950EF5FD8ADC4F241C3741AD7C97002902C8CA4D96574F28EDCEF3BEF15303335FA8D250102B4EE77E3B405E30F6B81E92403A8881285B65F29668E05B9CD6AC44FC1CD193CF4A5811A2649BE0EDEFBA91FA7143266286C5EC6EE8077D6
- Frame3
BA645145D9DE58B0FFA6FC4624A2815092D2A2DC405E7A2515F985727D3C52F479A4D04694568CA9B08391BE79BD122808CF6034AB7251088687BFF5916A4F4723FE1372DCF9B069CAB269A9F8F47CB50078D3279B9452C9B3B65A07B49C793783EDB8EB8D8F1A220D9EFED33147483103A2551A96932738255493F13B51195300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100018805A937DABF25FE760F9F398C7D9D5955EF7468FEC89119F8DD69874FB009AB2C424BD6A8E85401C4CD130B48D0490586DFBD81C8154EDCEFC3AFC4F80338432197EB059AB54CF109B231416FB65E2F9BE4F01D455E25486D8E155A5874E8A910E8C65F73ACD953D316B35A148D5AC5834D86F66AD415EBA38AD3908B32780A
- 过程及参数
符号说明: n 模数、p 素数、q素数、e加密指数、d 解密指数、m 明文分片、c 密文分片、“0X”十六进制数据表示
明文: "This is a test of my RSA system."将其分割为4个8字符长度消息(注意:空格也是一个字符)
This is 该8字符对应的ASCII为 54 68 69 73 20 69 73 20 将其视为64比特整数为==> 0X5468697320697320
a test o 该8字符对应的ASCII为 61 20 74 65 73 74 20 6F 将其视为64比特整数为==> 0X612074657374206F
f my RSA 该8字符对应的ASCII为 66 20 6D 79 20 52 53 41 将其视为64比特整数为==> 0X66206D7920525341
system. 该8字符对应的ASCII为 20 73 79 73 74 65 6D 2E 将其视为64比特整数为==> 0X2073797374656D2E
选择前缀为0xFFFFFFFFFFFFFFFF,再添加通信序号和若干个0,最终填充后的4条消息依次为
0xFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468697320697320
0xFFFFFFFFFFFFFFFF000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000612074657374206F
0xFFFFFFFFFFFFFFFF00000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066206D7920525341
0xFFFFFFFFFFFFFFFF0000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002073797374656D2E
第0个明文分片参数及加密结果
p= 0XC60C5F1B997ED8A5E340023F33D2E269CFB423A3CF66B46D3F686747403A92B1265CB12B9A4E0135B890254F31A2C3F96A0427B39A36DEFDEEB85C57A80A9641
q= 0XD684DA331AB6157DA338B6D7B08AB4C1B72C29BB7F9EF445466056DFDBF29809C4D4A2435986A40DE688AFE7CC5A5C519F7C63CB486E44D523B0E1EF21C22199
n= 0XA5F51EB02EA9C0CC9B96926A08A761FE3E7CDB6E5B348DBEAEC761DBCFCDB15A6C76F8EE08196008AE60E396D7E228C6DAFC3CC1127F16EC87576B89C151F20F99098621FD46872BC92CDA8C915B758E5C0CACB994F55B8705B938126E08589E2502A7B9019C9A62E82392E8449E00CFC7DA17B8CDE92F9516CE9A2009F42DD9
e= 0X10001
d= 0X4C5340AAECBB1BB5BE74F09F9D9D45BF4583ECF38334D75FF44834A4809CEC4D57071C9374DC1EC3BF574634B0D30DC7EF1D04E0131EAA2F5C4B8364D6A95676C23F9DADAAB4523A6F5B22EC5904650BF558B3FDF39E3B13EA4771FB1D297DA03C8E1E82F4759B31A9492C56E4D1C690A66ECEC430849A17C027D1A7480F1E01
m= 0XFFFFFFFFFFFFFFFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005468697320697320
c= 0X9726C82FED1E6CD58DE825528AE5634653C9921CAE02AFF7325F20D6E7085B7C8E3DC78D7518A78A8BC7D07E2E837083324579510851827794AE3D1FB9BAB360B1413A8F171A83804CEA73DFBC1248139BB27EB7D5BAD724AD8B08F51888B90562AF950725ACDD698F817AE62746CEA09479A191A6552B0116830355C68D0F61
第1个明文分片参数及加密结果
p= 0XC60C5F1B997ED8A5E340023F33D2E269CFB423A3CF66B46D3F686747403A92B1265CB12B9A4E0135B890254F31A2C3F96A0427B39A36DEFDEEB85C57A80A9641
q= 0XD684DA331AB6157DA338B6D7B08AB4C1B72C29BB7F9EF445466056DFDBF29809C4D4A2435986A40DE688AFE7CC5A5C519F7C63CB486E44D523B0E1EF21C22199
n= 0XA5F51EB02EA9C0CC9B96926A08A761FE3E7CDB6E5B348DBEAEC761DBCFCDB15A6C76F8EE08196008AE60E396D7E228C6DAFC3CC1127F16EC87576B89C151F20F99098621FD46872BC92CDA8C915B758E5C0CACB994F55B8705B938126E08589E2502A7B9019C9A62E82392E8449E00CFC7DA17B8CDE92F9516CE9A2009F42DD9
e= 0X10001
d= 0X4C5340AAECBB1BB5BE74F09F9D9D45BF4583ECF38334D75FF44834A4809CEC4D57071C9374DC1EC3BF574634B0D30DC7EF1D04E0131EAA2F5C4B8364D6A95676C23F9DADAAB4523A6F5B22EC5904650BF558B3FDF39E3B13EA4771FB1D297DA03C8E1E82F4759B31A9492C56E4D1C690A66ECEC430849A17C027D1A7480F1E01
m= 0XFFFFFFFFFFFFFFFF000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000612074657374206F
c= 0X789018FDB800AD59A54D27A77F280515BB3BFAB1CD75CB0A255A116D4A44849459FD887FF091F87C0B3E6305F019700E4E4CB3646D1DF276DFB87C4F64245F77377508EC6A796236F8ABB125023D3F4B898F55E3342D0A852193AF890990EA82F12FC85917BF132F2A58C449648D6E934B24E80307AB092DB18110D77BBA0F8E
第2个明文分片参数及加密结果
p= 0XD502B3D96C648A9393966CDD37188D37576AA221290C861B347ED7A57640993F7ED2D16992B42AA3CA66936D3268DE47EB3A61B1495C982BF54EC0350B907C4F3CA272F9ED04EEB355367DFDA1B89357130A25411DAC4E3B8A1EECC594E0435F0E7298897B54D6C334062C8D8508AC67CEDAECD1A5FCA84BF2EE5D
q= 0XE00258CB6F
n= 0XBA645145D9DE58B0FFA6FC4624A2815092D2A2DC405E7A2515F985727D3C52F479A4D04694568CA9B08391BE79BD122808CF6034AB7251088687BFF5916A4F4723FE1372DCF9B069CAB269A9F8F47CB50078D3279B9452C9B3B65A07B49C793783EDB8EB8D8F1A220D9EFED33147483103A2551A96932738255493F13B511953
e= 0X10001
d= 0X524EB244F1CE59966C273B91AC40B620CFB55BA2030E871F01147E11844888B6224C5D4DE14551DFDB93C984DAD94A4359643B247ED6CC7DE774A15440D525E26FE9CF4328DBEF2AAA8E402922596F1C23B8F117C018870777434C93B68F1028295DFA6E69FA8E00FFC4EFEF747C348EDBC99C529B7C3B649813647FF90A8261
m= 0XFFFFFFFFFFFFFFFF00000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000066206D7920525341
c= 0X534810A0D1B2F6FB257DC3BBDA30AA76157B89038E52D05EE1E5DB06C2D79FAE84892950EF5FD8ADC4F241C3741AD7C97002902C8CA4D96574F28EDCEF3BEF15303335FA8D250102B4EE77E3B405E30F6B81E92403A8881285B65F29668E05B9CD6AC44FC1CD193CF4A5811A2649BE0EDEFBA91FA7143266286C5EC6EE8077D6
第3个明文分片参数及加密结果
p= 0XD502B3D96C648A9393966CDD37188D37576AA221290C861B347ED7A57640993F7ED2D16992B42AA3CA66936D3268DE47EB3A61B1495C982BF54EC0350B907C4F3CA272F9ED04EEB355367DFDA1B89357130A25411DAC4E3B8A1EECC594E0435F0E7298897B54D6C334062C8D8508AC67CEDAECD1A5FCA84BF2EE5D
q= 0XE00258CB6F
n= 0XBA645145D9DE58B0FFA6FC4624A2815092D2A2DC405E7A2515F985727D3C52F479A4D04694568CA9B08391BE79BD122808CF6034AB7251088687BFF5916A4F4723FE1372DCF9B069CAB269A9F8F47CB50078D3279B9452C9B3B65A07B49C793783EDB8EB8D8F1A220D9EFED33147483103A2551A96932738255493F13B511953
e= 0X10001
d= 0X524EB244F1CE59966C273B91AC40B620CFB55BA2030E871F01147E11844888B6224C5D4DE14551DFDB93C984DAD94A4359643B247ED6CC7DE774A15440D525E26FE9CF4328DBEF2AAA8E402922596F1C23B8F117C018870777434C93B68F1028295DFA6E69FA8E00FFC4EFEF747C348EDBC99C529B7C3B649813647FF90A8261
m= 0XFFFFFFFFFFFFFFFF0000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000002073797374656D2E
c= 0X8805A937DABF25FE760F9F398C7D9D5955EF7468FEC89119F8DD69874FB009AB2C424BD6A8E85401C4CD130B48D0490586DFBD81C8154EDCEFC3AFC4F80338432197EB059AB54CF109B231416FB65E2F9BE4F01D455E25486D8E155A5874E8A910E8C65F73ACD953D316B35A148D5AC5834D86F66AD415EBA38AD3908B32780A
实例破解
在本次竞赛问题中,我们选取了一个具体加密实例供大家破解,整个算法与加密过程描述如下,截获的加密数据见附件3-2。
- RSA 密码算法描述如下,包含体制参数选取和加解密过程。
1)RSA 体制参数选取
Step1.每个使用者,任意选择两个大素数 ????和 ????,并求出其乘积????=????????。
Step2.令 ????(????)=(????−1)(????−1)选择整数 ????,使得 GCD(????,????(????))=1,并求出????模 ????(????)的逆元 ????,即????????≡1 mod ????(????)
Step3.将数对 (????,????)公布为 公钥,????保存为私钥。
2)加解密过程Bob欲传递明文????给 Alice,则Bob首先由公开途径找出 Alice 的公钥 (????,????),Bob 计算加密的信息????为????≡???????? mod ????。
Bob将密文 ????传送给 Alice 。随后 Alice 利用自己的私钥????解密:????????≡(????????)????≡????????????≡???? mod ???? - Alice 使用的 RSA 密码体制有以下事项需要说明:
1)模数????=????????规模为1024比特,其中????,????为素数;
2)素数????由某一随机数发生器生成;
3)素数????可以随机选择,也可以由2)中的随机数发生器产生;
4)可以对文本加密,每次加密最多8个明文字符;
5)明文超过8个字符时,对明文分片,每个分片不超过8个字符;
6)分片明文填充为512比特消息后再进行加密,填充规则为高位添加64比特标志位,随后加上32比特通信序号,再添加若干个0,最后64比特为明文分片字符对应的ASCII码(注:填充方式参见加密案例,但注意每次通信的标志位可能变化)
7)分片加密后发送一个加密帧数据,帧数据文件名称为FrameXX,其中XX表示接收序号,该序号不一定等于通信序号;
8)帧数据的数据格式如下,其中数据都是16进制表示,结构如下1024bit模数N | 1024bit加密指数e | 1024bit密文 m e m o d N m^emod~ N memod N。
9)由于Alice初次使用该软件,可能会重复发送某一明文分片。
截获的加密数据
- Frame0
803F734ED9E3A3FBDEF8E3540B7B676FB66D15D2E5139840CB3CD06E62634C00A48EA2BF9BC3D7A709DBB47BE7E27DFB2C0E5B81254E6C326691471AE6DDC4A35539018BA6305DAFF1C480F195118B1310C546C31FE62C7AEC2A947013AC2897D00FD60E7B792DD499315341895BD1D1C9AA923E9373E1E01E2856B4FC8C689342A04A989C5800528EF687C978355E9C4AFD410A9DD4B08CCA7669C747CCE5446D5E85022CA2A2C383C28E85AD038C37CED2E18BD88529BD2480E20191958497C61823378CA06DE01C8B6FB148C9BC935E433EFCD960A1BF841FD60599811941A122CB1A323A76367EE78D71870B7134881CA077518C809013AE8EC6BAECD51945446FC78AC9AA9F2E38197D44B76F0C2A7DED354615D906608016E9F884FA51E20893FA0AEAF5975E28A68FBCD9BA469EA00263F812523EEC79E0CF967190317BEF53EE8FF29AF4411A238E7FCE148AE7603C9A1DEC4EEAC1E41AD5FB8725FD3DCE4C058DB10F279B3EC1FA3EBC6584547D29501CCA52851148344316073E6B
- Frame1
845334AC0B3EB2239FDF0E3069750901E791CB774AD36941E30D85E5A0FED57749A30DC1F1F4CB191D9863F437C98293E8E8888B963BCF16B691F1D4EEF56C6807440E5FB5EC5B95DF3434DEDA30C60DCB4E77294BE027F984D5E675AEB1CBBE57E8CAF140226EAD6DCD9A9636A0CFF586FA434804CB09D7E8C48DE34EBE904900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100010251025DC5FB84476581D0F67C640D8927DA6D083627C9C29F3174C17CFE316A6218194DD4BE03D30EF9ECCBB4C609673D853590DD122B151DCFD6D75FD202DC2C758E897BABE0A4CD842FF35D086CF4E34EFBD09E8FF9FBFB4B5254CA2323A463139ABD16E301C37F683579BA624EFBB297B9E6D5A1C68F75EB4BADF9AA198C
- Frame2
808627CED38A980D765454AC5DFEFC10195F6FEF9B35B52B742DBCE2419C34080A3EF3E9673FEA4DD629FF382155031EA6DCBA8372D42C1862F32B2BEE47E157FA7150C544635035F366F7D68234F56FA24180EB6A00A0F85C65AAEB455B8ED28F2285376CDA786F8C658CFEB3752F3504A7256EA3DBD22EEF20267D156FAB51000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000138702EF6FD51CA1CA834EF495618DA956C8F8AD222B99E256ED5E3DD9089E194DE67FD427F6132715709830A73B1A1CB582E56D06AF8F31BBA2851DBA1A1C2985B7FC233018E42554C2AABD69A225F9283A164C3AA5479363F89260219F9964738B7C78C5D08618009F3904EB55A6A570E8D4B1701F4BF1B2C99C7887CCFF2C9
- Frame3
8365D1FF23709FAAEF6330AECA9C848B292E0872C5C41E8CBE9D0780F32EBFC5FCC7947BD666F06AA619F952AFB8D7C08B9211960D1916235D8AB3A60DEC45B1EF5CC21848E56D5235717186EAD51AE22A5661BDFDC42E31F9181F6AB1D070FDEBB078A9980D7A0571B587130A1D3056CBA40CBBA287CD5031838BAB893B476B000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000576CBCAF659936784799208C3EE2420B7BBFDBB9AA8D7C89874C11314DF5DECD3AA97F3DA89851A043AF16E6570E7D03A4F3225D49E552FAA2FB9F6A19AE95BA73ECD6E7CC05CD9C03E03E06F829042DBA4C1A91F39AC0CAD516C8DE7FB45939A2038C24C13F7F62A20040473D8F3D8339A4B30A65715F98A43CC3293E51190D5
- Frame4
803F734ED9E3A3FBDEF8E3540B7B676FB66D15D2E5139840CB3CD06E62634C00A48EA2BF9BC3D7A709DBB47BE7E27DFB2C0E5B81254E6C326691471AE6DDC4A35539018BA6305DAFF1C480F195118B1310C546C31FE62C7AEC2A947013AC2897D00FD60E7B792DD499315341895BD1D1C9AA923E9373E1E01E2856B4FC8C6893D8BFFCDD82504C05A241E26742F0A867B162E5ECBF185E66F0A5FCA1801A2C3A2A562549D433C600E3A4085C123535AA7AD14D55C0B3765C55C5B78B946517C14438AD876EC0F7AC22792988BB6CD7837AA64334EB5F7C668D570CBF8134B7F7E87EEFA95179CA11BEDCDF420EB6DF9178C0A3B489A07B86EBCA6ADF96982D0D1BDAF2DBCEC34D6602C949E9B53876A4D8B62FA69DD960063B342E5101F92A0F5D88A445D7BDF36F3816AEBD5A98A8F06AB2CD708E363A657665CF05CB1F289EB758E09D11351816DF1EDF4575F01F95EFCE164D62EEE92BCE562B94B451FD9B566E4F8625E0428AD93BC6F8342C089AF2842EA6DEB9ED22D450F062CC7B18A8
- Frame5
8D41AC379635A2C8FFA55F609BE3EB6219C7AD0D3C335AC1F7AE27C3C0510E9ACDE319A6E00B891BDDB05C6B53F62E9321340BC0F19727C0526AC811CC02C7229241045A3D125978C1181264FDE49D8A148AAD8A8796C12C2AB5E8D7B0F98EDAC907C092B70D8B36E5BDC47C5801E4225BB508B1F081F5331C9B1324875EA25F0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001251A6449A3E9A4A444238910ED757D0DCF8D825007A94AD9E171D4CAF3799B07BB5FC050AAB3762EE10E234DFFF101D7E551DE4F61C824F55C6A4C0E895D48AB46C67A66FDAC65F2F60D5A2150FCA740940293FF5B2AEDAE129FABF3840D879AD25F9393FF9A664FFCFA0B2FE484D01994DAD68C0D340246C7B63515A96DD034
- Frame6
D11B49BF43234D6595219AB7C21730DE0A13A7A01E63831A4D4F8DC5A7E68FCA0E9768EF0DABCAD036E08E17E4B27C1151DF364556D8F93D19565D9F40F095A49C6185F2630671EB5EC1EAA514BEC32D93A0F0459B52F1E34D4B9113413403F66619262EF1D3CBB025648C997CD1438DE21CFE4BEA0C6E00C72FFDE587929CB300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100014333AF6B43F36028D8D9650EC3EED3238541EE5C15E626C58C9EC33674A6D08D5B1F2580A1A0B07E9D853536CD994E197889D122701A62BB2A9E79559F3D5281014535F6C54F83CA8D9700EEB67D99AF318D20A5150AD46D622A6A12DE0A758EE7DF75F5D10F2FE2585F2348537787063321FFDAC91BB3C3D1D88CBD04A824ED
- Frame7
DD1B58FF0DE86CD28DFFB60CC1EE0EFA3250D58264B3DA9CEAA5B5C17C728741F728C462C347DCB707BA7EE8672295F5A750C19D48AE23A32FC21E76F3188B85008E4EC1A66371BBB0825E558E876D80FA59E7099AF25B0B298131277E634772F24EE0ED1BACD3BA6F8D8E443D5AE16FAF6AA7DBAA59F91F763E4EAFD7D7F5CD0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003B1E7F916884F9D17DFFCB8EF1A93D61E3DA73E066CE8B71F09BB8EF61C833300CB472854FF642F540DB232DED17095F4FDDCA6CCCC27628EA781F546863FA431B9057FA7DC1AA41C127FB22B113E512B14926CA0C361DD6DAAEBC3F2E9CE51D012F40173CF88F07752CAAABA06AE53C4DBD559F50EED636A0A2E65D6BD835BD0
- Frame8
9288E1EEF599EA72113D950723A8FC0ADD096C7312D8E78911FE64A4322C4FEC96FD70B345AA5A345481FB91D8549998A90E2429DCAF1EEEC863F396479A0BBD121E36B0EFAC8D002FC95B58B5879DD75251B5CEFCBE90BF50669742821BE2E89B3831FD6F0F3EAB310E5BF3FC66D702D5FF1581EE1DEFF161EFCA359063C6AB0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005246F3344F2C341FDA293ECB4214C14D57164CB37FB364ED14B2FE3D10C94D2365155959B481085379A9C85B9FCB86C7E3676B2BFD98DF7055D7E474CFEE6CE3529980A3FA0C537AF9C375E606E89B19D34FC801200DB462538E2E9FE80803A8EF02F662D0E5AC9C35DCE7A758B9EFD6D5FEA73BD9649C9B651E5AA5F1D96A773
- Frame9
8B39E72D3C13D48F7773118B19F0D1A0CC592FD8FF12469E1D51ABA8869A23297CD62E28BCF885F744BD4A7C53CB5369F941F401EC010DA8665B7EB0B17B1839B3F0E49B51A266DDB84899EB302E050E43A284B5051C5B9002BA2B8BF1DD3A22C0BAB03A6E780F218852EE086F05E9ADF290189439AFF15986077D36D271C9A100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100011478D729930A4BAC9A114ABCF11B6E5267818C936EDC70C87CCEEAE6114CEEFD83F0ECE19D1DD120470F7D7C22882A57A3DF23D467DDDEAA86BBB2C1FEA07CE8F660440F7A269F2D5C9090C6E8775A553063F8240CC3CED605AE71699AFFB5740C522EAC8C864B207AC691DEEFE08A66D216FEC93961131F786EF9F949F092C8
- Frame10
85A0AC7E685995D9F8012C3A0249491956697997BBB6E5DDC1B53DC6184A843C3E4EB9B2D97FEAFAD097AA0FF640846287953C88F5A0813FD81FF3EBBDD62D66F4403653DCEC64ACE99F9FAAED4FD35513214EF4B4B9AA910E5923CD87F9330E3599F2CF1AD90EFC6BDABBD249D1AC8CF83836FE18399379E712010FC25A3DA30000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010001704A43957AC6D55375FE290CEBA686277B617AE3A013BA998C7475F161A72C4C0820F3A6A2D9474DF3CE86D6B78B50814F6710DAF8338B9880A8ED05CC498098AE299905BDDDAF05423765070ADF71E8CC43103D8E813A9EA8E5027091360DE30D925369DF9085066392166961D70E5AF868B75FD78227F8E603E5790A89058C
- Frame11
9FEDDC9C122AA836E9A04FE9358A118B358C7BC6F3ABDE4E035E2BCB15B52950DB1D23449EA62F83406FB591ED39564FD0E2DAD0954156037BB32C9C23C49DA83E2E85BC09A9B6FD75E2F55129044FA0F996895E8BF5E53D88938E4A3366649E97961BE5B7B4095476D013D2E9F6FE75DC21295747BF371AE346355A5ADBD93F00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000039A597210DA69760A66B063FA125DC17DC2038EC720CAE6D0B1599EC25B9A19F328BC55882EE9ED05FC9BD90276B0F7F1D227946FFD77081DF6E08976EBF57A3BB21AC13FE25A742A0C137E007BD8787A42683D81ADC28450051B44617C2081D5ACA3141DC2C848F1401CEA94DA7D11142BB2406306B299953D1C28259521EA11
- Frame12
808B8F96E7255B3F169EE854ABE0CD0AC7A4AE1B388CBC9A234E225842208A435842C254A55855B867F3FCA78E3887C8D1663B501A5D4D5E32F3EF84847F45651A5E2FC8A091E12E2B4DB7AB41113D258E2200FFB2BBF8B7C38B0049B3E2E60C65EB8B6375F03A40DC9F9AB01FEC60E09DC8CA3644A83738BDA0CFDB2B5ABB3D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000053F312B5FDA3A9AA43DE2697FA001EE909DFE677AA6A48BEAF84991FF7D423596B5CC230DB4E5BE42E7C886E1FA6B39002B148F670C3B162816EFCC6341A96D3CDCF849A35B866EFB9E5F5C48DF9BBD3F065FFA3E0961EB2393C6F2689B72603B21A2E1C674EE2A1A6534CA01F5606B062FB53CA9C3EB1BEC80AC6849B090A7EF
- Frame13
866AA521700CC11B537E0AA52D40843F8DD23469B9B4C5A3C966266DC9682947DA3A24B1505C932BD44EB3358290274F0BA295F9D40449B314531725BDB1DF55D57D088A5D188994C77362BFE54777D666B8C4D59C0C9C2B4D4E63780FD8D7C637444E0A9EC83A9ED3FA856D5155F6FCB5861F0CB66994EE0CCB615B99D22E7300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100013B54C09AC3380DD2CD82D1244D9B774A1E9D4B5809E79280E5254D4A41B8F803A7151D6FEEA62B04B90854A96F1B5284F209FB8DC0BFDA39C885C1401F821872F17610CDF5BC8B7D236966B3A749CDD0907716FCE3AF5E39678EFE9B344E2C05EDE973F4DA393B27F505030E3AA56C6C1022FC0B9ED6454884E41784A3EFEF5C
- Frame14
AAE5F7D640FD102E49217A08E0A4AF72EC895D5ABA020BEAF6F73053F4053D47CB7EBF3D583532ABFFF50F69508A4DBF2421742DCC2C16AE00E88C237653EC4DCFCD9A918763A9C9DE3CE3DA1FE2BC94FF93A9A7C261400A6E363C66816FDA0E44EE73662CFD2B8BFA926EF2B40F7D41F35B7E89516BC28330B5CF49976B8D7F000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000132083A7D65AD94E25E193E0740FE348FB5C35D17329D5446015C85F134BA59FE8607941E5FE605243EFA6E3638A4AB96BB6FAEDAAB095DDD1EE1757919D82C39865C81F5F7FA3E4E72FC976D8A37E3A5591B6C75ED9B65AF8A516B44B06162550347CCE972E4AE121F1A595DFFD9051D5DDF2CC2BF2D04FAEE8EAB92F57CDD9B
- Frame15
D2611805B6839FD983F2C574BDAD1C50A4FB9FAB35F3BB643F90A9FBB0B84AF1D042E35E821564FCA783F1A2AF41349BB3E1C159B20EA6A0DB9E70597CB5C0780EF6CD78481AEAC0DF65A8DE35A8B5021FCE55332C5B2ADAEDCF80963BD6FFF773CAB55D73637C9BD667148FB1359782D38C41CBB43FA5FD56F424F842D8683D00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034A6972B03F96CC30DE3F60DA66C71842E600320964A69EC818047B219506A12F3E4D522B40B10EB3F630A068C908186F29BF782360E35262A4CECCAD554F57D1721DB61B260AC6C5FBCB020AC326562048B0FC9270AFE51C63F5F27A9A3CFD78B5971D5CBF7FBF20E23CA7B429121BD0BB9AE0552D6907C659E2B450B01675D7
- Frame16
811F75BEAD6F0C3EA1560CFA4BFD4762F1DA3A30E22644AB16B1BEA5A6A1AF14F0C3C2E63865FD29241246C1473892232DAB6224AF1600F73340CBCA7BF5AF01EA1FA007E46064CE2F8DD92A9E7FA9F16CFEEE5A6CF67683BCD97F1E7E1BA73A9F86A8E4D7496393AC9727D10530A76B03B3A23321E8BDD756FCE265494F6D350000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005224CD570EAF4D650AA24D51127E1657D201C8483AA690D48D58CA56AE86EA517DF43F9F130CC7CA75C8868623BA145189E2D16326A82A437516530D130161552D016ADB2D8746DC92D30F2A4D90A50A63AF038B0449CF2A3442BA6696B6485A46D47545591AADB1C68E901745D4F9231627C9E0C0A52CC7439CC45B21AE51AEE
- Frame17
9E52BAE97E34F02361E694ED55E87BC77ABAFB3124DC8DABFCCE71B51F1049CF3C22BC79B8841433CCB6DF840F2BD5A6E75A1CE52F54048FF4930E7B103C6A3433A2663BD9CBA0E38A35695F927EB2FF7A51939869A113D8A6CB03228C0E5D1466B1FF491129A988EFDBC636AB2610CAA50925554BE758321178F9EB94072C1D000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000101FCA302BE54FD4B4F8DA498EDE013BF551C714E321B17465CF55B9980EC12FDF92F4F408C15239FE5EED408248D598510C0E77618EBA67321938D487D7286BD9EF539CB2B068FE02617BE2954109B3B3DA0C76ECF00957894D556ACBCE10E1FF68A536B82EF0BEFA92E9FD96264786FAB50A3162D2564D8634338E5A6EEF5E0
- Frame18
84FF95E263D30FAD83684CC08B11DAB54F5A0F3D24A8763C47B57750ED2E342022652836E2EBB30A765DC7364F417E4555D1FD72D140EFB72E283007028CC2A4FE97E4FE3B5D272C917E734F8715A0C5BFF2900640D8097425AFA965F9B1566F339F155ACEB59EDE241327813C920A6FB98A6BB9209379F1BBEBCC955949D8BB000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000145D8BD62BBF9966C81722D6D4AD5E6E91FD5258C8B0747CA166237D167D5C881B100D83D73352F18A60914963CA8F7DF9B9211273C8D7EDAC87132AADAC33DEF0BDA6C9EA91750818D869990521C6BA0A10BC1AC2273282FA4AC47EFBEEE99B2D35EBDA2019D1EF8BF24B5017FA8481B372362AAE138043A00D8761BCDCA80BC
- Frame19
8614C70089AADE50E5A14DE1FB8FCF0880046E9494EEAD3BF600EBE451E335B4C9E21DE984912BCA15914711A9C359056A2AD0543035E971A2FAA387EA53AAD48A7016735E2BB60716626CAD6CF4F9CC41A59CF31EF07473A1DE08A018CAB7C6B95BF7AC9F501BD42FCC4C7CD834B6A7723B6ABCC9A98146A750A9222CCE2CC700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100014B6A6A6CE0CD9D8E0DF4FBD2A23AF3FB45FA587406A3E052231519C4B6B0B606D64DC531A29C0A7510928D4487E7BC3D45CDBADB595AE7D53FBDEE70371DEBCB9A938B94DC0F266326A9DF6191E04F82A9CDC067D366926B58A9092F55DB22F8D4BCD9777A99F14ED95083D091DA69F80F448EFF48A21F998BBDC97DAEA135C1
- Frame20
8178408D7E1155B9F5B0665A3EDFE279189567AAC333CA33A7304AE1BB9C9A921735888FB7BC9B41550817B1C0D42B2AB0304546709648F45147180AD5FC839FB8F90B2D30772718A7B45E6204CE7886122874759F93C198CE61D10555F03C13FD83E639A637D849C846D5589029533E567E12FD992D690EC5EF38569327FC8D0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005210B2C8CA031259D2EF22A2561B23B794B3740382BD0A89EF7DB9E62463C8649EF5983EB94CFF6F0D6A1881A0D4E190EF8A1ACC20DA5DA71AE31705A5501B6856C151449DFC76B7026A9FAB74AA4B41C7F58ECCDC35777866C117D3BE1E37A4576E34C90DF7B8146F1BDF841D1362287A4922CB9A80221EC165E48F0BFFD4EDE
成绩评判
通过数论方法获得的原始明文及RSA 参数数量,数量多者获胜。
国内外研究进展与现状
RSA的安全性是基于大整数素因子分解的困难性,而大整数因子分解问题是数学上的著名难题。数域筛法是目前RSA攻击的首选算法。在1999年,一台Cray超级电脑用了5个月时间分解了512比特长的密钥。在512比特RSA算法破解10年之后,即2009年12月9日,768比特RSA算法即232数位数字的RSA-768被分解。分解一个768比特RSA密钥所需时间是512位的数千倍,而1024比特所需时间则是768比特的一千多倍,因此在短时间内1024比特仍然是安全的。除此之外,目前对于RSA算法的攻击主要有以下方式:选择密文攻击、公共模数攻击、低加密密指数攻击、低解密指数攻击、定时攻击等等,详细的RSA安全分析参见有关文献。
参考文献与可能用到的软件
- 陈少真,密码学基础,科学出版社 , 2008-05-30
- 任伟 , 现代密码学 , 北京邮电大学出版社 , 2011年4月
- 冯登国 等译,密码学原理与实践(第三版),电子工业出版社
- 谢建全阳春华RSA 算法中几种可能泄密的参数选择 , 《计算机工程》2006年16 期
- Don Coppersmith Finding a Small Root of a Univariate Modular Equation EUROCRYPT 1996 L NCS 1070, Springe r 155 16 5
- GMP package, GNU Multiple Precision Arithmetic Library
- Magma Computational Algebra System
- Pari
- NTL: A Library for doing Number Theory
解答方法:
攻击方法 | 破解模数 | 破译明文 |
---|---|---|
费马分解法 | 10 | 10 |
Pollard p-1 分解法 | 2、6、19 | 2、6、19 |
低加密指数攻击 | 无 | 3、8、12、16、20 |
公共模数攻击 | 无 | 0、4 |
因数碰撞法 | 1、18 | 1、18 |
猜测明文攻击 | 无 | 5、7、9、11、13、14、15、17 |
随机数发生器攻击 | 0、3、4、5、7、8、9、11、12、13、14、15、16、17、20 | 验证了全部明文的正确性 |
最后
以上就是热心大树为你收集整理的【现代密码学】大作业-RSA大礼包RSA加密体制破译的全部内容,希望文章能够帮你解决【现代密码学】大作业-RSA大礼包RSA加密体制破译所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复