版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CryptographyandNetworkSecurity
Chapter9FourthEditionbyWilliamStallings LectureslidesbyLawrieBrown密码学与网络安全【英文】全文共27页,当前为第1页。Chapter9–PublicKeyCryptographyandRSA
EveryEgyptianreceivedtwonames,whichwereknownrespectivelyasthetruenameandthegoodname,orthegreatnameandthelittlename;andwhilethegoodorlittlenamewasmadepublic,thetrueorgreatnameappearstohavebeencarefullyconcealed.—TheGoldenBough,SirJamesGeorgeFrazer密码学与网络安全【英文】全文共27页,当前为第2页。Private-KeyCryptographytraditionalprivate/secret/singlekeycryptographyusesonekeysharedbybothsenderandreceiverifthiskeyisdisclosedcommunicationsarecompromisedalsoissymmetric,partiesareequalhencedoesnotprotectsenderfromreceiverforgingamessage&claimingissentbysender密码学与网络安全【英文】全文共27页,当前为第3页。Public-KeyCryptographyprobablymostsignificantadvanceinthe3000yearhistoryofcryptographyusestwokeys–apublic&aprivatekeyasymmetricsincepartiesarenotequalusescleverapplicationofnumbertheoreticconceptstofunctioncomplementsratherthanreplacesprivatekeycrypto密码学与网络安全【英文】全文共27页,当前为第4页。WhyPublic-KeyCryptography?developedtoaddresstwokeyissues:keydistribution–howtohavesecurecommunicationsingeneralwithouthavingtotrustaKDCwithyourkeydigitalsignatures–howtoverifyamessagecomesintactfromtheclaimedsenderpublicinventionduetoWhitfieldDiffie&MartinHellmanatStanfordUniin1976knownearlierinclassifiedcommunity密码学与网络安全【英文】全文共27页,当前为第5页。Public-KeyCryptographypublic-key/two-key/asymmetriccryptographyinvolvestheuseoftwokeys:apublic-key,whichmaybeknownbyanybody,andcanbeusedtoencryptmessages,andverifysignatures
aprivate-key,knownonlytotherecipient,usedtodecryptmessages,andsign(create)signaturesisasymmetricbecausethosewhoencryptmessagesorverifysignaturescannotdecryptmessagesorcreatesignatures密码学与网络安全【英文】全文共27页,当前为第6页。Public-KeyCryptography密码学与网络安全【英文】全文共27页,当前为第7页。Public-KeyCharacteristicsPublic-Keyalgorithmsrelyontwokeyswhere:itiscomputationallyinfeasibletofinddecryptionkeyknowingonlyalgorithm&encryptionkeyitiscomputationallyeasytoen/decryptmessageswhentherelevant(en/decrypt)keyisknowneitherofthetworelatedkeyscanbeusedforencryption,withtheotherusedfordecryption(forsomealgorithms)密码学与网络安全【英文】全文共27页,当前为第8页。Public-KeyCryptosystems密码学与网络安全【英文】全文共27页,当前为第9页。Public-KeyApplicationscanclassifyusesinto3categories:encryption/decryption(providesecrecy)digitalsignatures(provideauthentication)keyexchange(ofsessionkeys)somealgorithmsaresuitableforalluses,othersarespecifictoone密码学与网络安全【英文】全文共27页,当前为第10页。SecurityofPublicKeySchemeslikeprivatekeyschemesbruteforceexhaustivesearchattackisalwaystheoreticallypossiblebutkeysusedaretoolarge(>512bits)securityreliesonalargeenoughdifferenceindifficultybetweeneasy(en/decrypt)andhard(cryptanalyse)problemsmoregenerallythehardproblemisknown,butismadehardenoughtobeimpracticaltobreakrequirestheuseofverylargenumbershenceisslowcomparedtoprivatekeyschemes
密码学与网络安全【英文】全文共27页,当前为第11页。RSAbyRivest,Shamir&AdlemanofMITin1977bestknown&widelyusedpublic-keyschemebasedonexponentiationinafinite(Galois)fieldoverintegersmoduloaprimenb.exponentiationtakesO((logn)3)operations(easy)useslargeintegers(eg.1024bits)securityduetocostoffactoringlargenumbersnb.factorizationtakesO(elognloglogn)operations(hard)密码学与网络安全【英文】全文共27页,当前为第12页。RSAKeySetupeachusergeneratesapublic/privatekeypairby:selectingtwolargeprimesatrandom-p,q
computingtheirsystemmodulusn=p.qnoteø(n)=(p-1)(q-1)
selectingatrandomtheencryptionkeyewhere1<e<ø(n),gcd(e,ø(n))=1solvefollowingequationtofinddecryptionkeyd
e.d=1modø(n)and0≤d≤n
publishtheirpublicencryptionkey:PU={e,n}keepsecretprivatedecryptionkey:PR={d,n}密码学与网络安全【英文】全文共27页,当前为第13页。RSAUsetoencryptamessageMthesender:obtainspublickeyofrecipientPU={e,n}
computes:C=Memodn,where0≤M<ntodecrypttheciphertextCtheowner:usestheirprivatekeyPR={d,n}
computes:M=Cdmodn
notethatthemessageMmustbesmallerthanthemodulusn(blockifneeded)密码学与网络安全【英文】全文共27页,当前为第14页。WhyRSAWorksbecauseofEuler'sTheorem:aø(n)modn=1wheregcd(a,n)=1inRSAhave:n=p.qø(n)=(p-1)(q-1)
carefullychosee&dtobeinversesmodø(n)
hencee.d=1+k.ø(n)forsomekhence:
Cd=Me.d=M1+k.ø(n)=M1.(Mø(n))k
=M1.(1)k=M1=Mmodn
密码学与网络安全【英文】全文共27页,当前为第15页。RSAExample-KeySetupSelectprimes:p=17&q=11Compute
n=pq=17x11=187Computeø(n)=(p–1)(q-1)=16x10=160Selecte:
gcd(e,160)=1;choosee=7Determined:
de=1mod160andd<160Valueisd=23since23x7=161=10x160+1PublishpublickeyPU={7,187}KeepsecretprivatekeyPR={23,187}密码学与网络安全【英文】全文共27页,当前为第16页。RSAExample-En/DecryptionsampleRSAencryption/decryptionis:givenmessageM=88(nb.88<187)encryption:C=887mod187=11
decryption:M=1123mod187=88
密码学与网络安全【英文】全文共27页,当前为第17页。ExponentiationcanusetheSquareandMultiplyAlgorithmafast,efficientalgorithmforexponentiationconceptisbasedonrepeatedlysquaringbaseandmultiplyingintheonesthatareneededtocomputetheresultlookatbinaryrepresentationofexponentonlytakesO(log2n)multiplesfornumberneg.75=74.71=3.7=10mod11eg.3129=3128.31=5.3=4mod11密码学与网络安全【英文】全文共27页,当前为第18页。Exponentiationc=0;f=1fori=kdownto0doc=2xcf=(fxf)modnifbi==1
thenc=c+1
f=(fxa)modn
returnf
密码学与网络安全【英文】全文共27页,当前为第19页。EfficientEncryptionencryptionusesexponentiationtopowerehenceifesmall,thiswillbefasteroftenchoosee=65537(216-1)alsoseechoicesofe=3ore=17butifetoosmall(ege=3)canattackusingChineseremaindertheorem&3messageswithdifferentmoduliiifefixedmustensuregcd(e,ø(n))=1ierejectanyporqnotrelativelyprimetoe密码学与网络安全【英文】全文共27页,当前为第20页。EfficientDecryptiondecryptionusesexponentiationtopowerdthisislikelylarge,insecureifnotcanusetheChineseRemainderTheorem(CRT)tocomputemodp&qseparately.thencombinetogetdesiredanswerapprox4timesfasterthandoingdirectlyonlyownerofprivatekeywhoknowsvaluesofp&qcanusethistechnique密码学与网络安全【英文】全文共27页,当前为第21页。RSAKeyGenerationusersofRSAmust:determinetwoprimesatrandom-p,q
selecteithereordandcomputetheotherprimesp,q
mustnotbeeasilyderivedfrommodulusn=p.qmeansmustbesufficientlylargetypicallyguessanduseprobabilistictestexponentse,dareinverses,souseInversealgorithmtocomputetheother密码学与网络安全【英文】全文共27页,当前为第22页。RSASecuritypossibleapproachestoattackingRSAare:bruteforcekeysearch(infeasiblegivensizeofnumbers)mathematicalattacks(basedondifficultyofcomputingø(n),byfactoringmodulusn)timingattacks(onrunningofdecryption)chosenciphertextattacks(givenpropertiesofRSA)密码学与网络安全【英文】全文共27页,当前为第23页。FactoringProblemmathematicalapproachtakes3forms:factorn=p.q,hencecomputeø(n)andthenddetermineø(n)directlyandcomputedfindddirectlycurrentlybelieveallequivalenttofactoringhaveseenslowimprovementsovertheyearsasofMay-05bestis200decimaldigits(663)bitwithLSbiggestimprovementcomesfromimprovedalgorithmcfQStoGHFStoLScurrentlyassume1024-2048bitRSAissecureensurep,qofsimilarsizeandmatchingotherconstraints密码学与网络安全【英文】全文共
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 起诉模板买卖合同模板(3篇)
- 武都事业单位招聘2022年考试模拟试题及答案解析21
- 市鄂伦春自治旗宜里镇青松沟村社区工作人员考试模拟题及答案
- 电工(高级)资格证考试考前冲刺练习试题【名校卷】附答案详解
- 航空医护面试题目及答案
- 旅游包车服务合同协议2025年接送服务
- 猎头服务合同(2025年电商运营)
- 冷链物流运输合同协议(2025年)
- 2023年人教版小学四4年级下册数学期末质量监测含答案图文
- 化工蒸馏工复试知识考核试卷含答案
- 形神拳动作名称与图解
- 马克思主义政治经济学试题及答案
- 国能拟录人员亲属回避承诺书
- 蚕丝被的详细资料
- 2023年生产车间各类文件汇总
- WORD版A4横版密封条打印模板(可编辑)
- 2013标致508使用说明书
- YD5121-2010 通信线路工程验收规范
- 评价实验室6S检查标准
- 工程质量不合格品判定及处置实施细则
- 外观检验作业标准规范
评论
0/150
提交评论