深入浅出密码学习题答案
奇数题号答案
奇数题号答案
SolutionstoHomeworkProblems(OddNumbered
Problems)
UnderstandingATextbookforStudentsandCryptographyPractitioners
byChristofPaarandJanPelzl
1
奇数题号答案
ProblemsofChapter1
1.1
1.Letterfrequencyanalysisoftheciphertext:
countfreq[%]
A
B
C
D
E
F
G
H
I
J
K
L
Mletter177307841713242247201902.631.084.641.0813.002.632.013.723.417.283.102.940.00
2.BecausethepracticeofthebasicmovementsofkataisthefocusandmasteryofselfistheessenceofMatsubayashiRyukaratedo,Ishall
trytoelucidatethemovementsofthekataaccordingtomyinterpretationbasedonfortyyearsofstudy.
Itisnotaneasytasktoexplaineachmovementanditssignificance,andsomemustremainunexplained.Togiveacompleteexplanation,onewouldhavetobequalifiedandinspiredtosuchanextentthathecouldreachthestateofenlightenedmindcapableofrecognizingsoundlesssoundandshapelessshape.Idonotdeemmyselfthefinalauthority,butmyexperiencewithkatahasleftnodoubtthatthefollowingistheproperapplicationandinterpretation.IoffermytheoriesinthehopethattheessenceofOkinawankaratewillremainintact.
3.ShoshinNagamine,furtherreading:TheEssenceofOkinawanKarate-DobyShoshinNagamine,TuttlePublishing,1998.
1.3
Onesearchenginecosts$100includingoverhead.Thus,1milliondollarsbuyus10,000engines.
1.keytestspersecond:5·108·104=5·1012keys/sec
Onaverage,wehavetocheck(2127keys:
(2127keys)/(5·1012keys/sec)=3.40·1025sec=1.08·1018years
Thatisabout108=100,000,000timeslongerthantheageoftheuniverse.Goodluck.
2.LetibethenumberofMooreiterationsneededtobringthesearchtimedownto24h:
1.08·1018years·365/2i=1day
2i=1,08·1018·365days/1dayi=68.42
Weroundthisnumberupto69assumingthenumberofMooreiterationsisdiscreet.Thus,wehavetowaitfor:
1.5·69=103.5years
NotethatitisextremelyunlikelythatMoore’sLawwillbevalidforsuchatimeperiod!Thus,a128bitkeyseemsimpossibletobrute-force,evenintheforeseeablefuture.
1.5
1.
2.
3.
4.15·29mod13≡2·3mod13≡6mod132·29mod13≡2·3mod13≡6mod132·3mod13≡2·3mod13≡6mod132·3mod13≡2·3mod13≡6mod13
奇数题号答案
15,2and-11(and29and3respectively)arerepresentationsofthesameequivalenceclassmodulo13andcanbeused“synonymously”.
1.7
1.
MultiplicationtableforZ4
×0
0123
2
0321
2.
AdditiontableforZ5
+
12340
2
34012
4304321102413MultiplicationtableforZ50123400000
3.
AdditiontableforZ6
+
123450
2
345012
4
50123440543212030303MultiplicationtableforZ6×0012345
4.ElementswithoutamultiplicativeinverseinZ4are2and0
ElementswithoutamultiplicativeinverseinZ6are2,3,4and0
ForallnonzeroelementsofZ5existsbecause5isaprime.Hence,allnonzeroelementssmallerthan5arerelativelyprimeto5.
1.9
1.
2.
3.
4.
5.x=9mod13x=72=49≡10mod13x=310=95≡812·9≡32·9≡81≡3mod13x=7100=4950≡1050≡( 3)50=(310)5≡35≡32=9mod13bytrial:75≡11mod131.11
1.FIRSTTHESENTENCEANDTHENTHEEVIDENCESAIDTHEQUEEN
2.CharlesLutwidgeDodgson,betterknownbyhispennameLewisCarroll
1.13
a≡(x1 x2) 1(y1 y2)modm
b≡y1 ax1modm
Theinverseof(x1 x2)mustexistmodulom,i.e.,gcd((x1 x2),m)=1.
奇数题号答案
ProblemsofChapter2
2.1
1.yi=xi+Kimod26
xi=yi Kimod26
ThekeystreamisasequenceofrandomintegersfromZ26.
2.x1=y1 K1=”B” ”R”=1 17= 16≡10mod26=”K”etc···
DecryptedText:”KASPARHAUSER”
3.Hewasknifed.
2.3
Weneed128pairsofplaintextandciphertextbits(i.e.,16byte)inordertodeterminethekey.siisbeingcomputedby si=xiyi;i=1,2,···,128.
2.5
1
1
1
0
1
0
0
1 0 1 1 1 0 1 0 0 0 0 1 1 1 0 1
0 = Z 0 = Z 1 = Z 2 = Z 3 = Z 4 = Z 5 = Z 6 = Z 7 = Z 0
1.Sequence 1: z 0 = 0 0 1 1 1 0 1 0 0 1 1 1 0 1 ...
0
1
0
0
1
1
1
0 1 0 1 0 0 1 1 1 1 1 0 1 0 0 1
1 = Z 0 = Z 1 = Z 2 = Z 3 = Z 4 = Z 5 = Z 6 = Z 7 = Z 0
2.Sequence 2: z 0 = 1 1 0 1 0 0 1 1 1 0 1 0 0 1 ...
奇数题号答案
3.Thetwosequencesareshiftedversionsofoneanother.
2.7
Thefeedbackpolynomialfrom2.3isx8+x4+x3+x+1.
1
1
1
1
1
1
01100001001110010111000010011100111110000100111001111100001001110111111000010011111111110000100111111111100001001= Z0= Z1= Z2= Z14= Z15
So,theresulting rsttwooutputbytesare(1001000011111111)2=(90FF)16.
2.9
1.Theattackerneeds512consecutiveplaintext/ciphertextbitpairsxi,yitolaunchasuccessfulattack.
2.a.First,theattackerhastomonitorthepreviouslymentioned512bitpairs.
b.Theattackercalculatessi=xi+yimod2,i=0,1,...,2m 1
c.Inordertocalculatethe(secret)feedbackcoef cientspi,Oscargenerates256linearlydependentequationsusingtherelationshipbetweentheunknownkeybitspiandthekeystreamoutputde nedbytheequation
m 1
si+m≡j=0∑pj·si+jmod2;si,pj∈{0,1};i=0,1,2,...,255
withm=256.
d.Aftergeneratingthislinearequationsystem,ingGaussianElimination,revealingthe256feedbackcoef cients.
3.Thekeyofthissystemisrepresentedbythe256feedbackcoef cients.SincetheinitialcontentsoftheLFSRareunalteredlyshiftedoutoftheLFSRandXORedwiththe rst256plaintextbits,itwouldbeeasytocalculatethem.
2.11 xiyi=xi(xizi)=zi
W 22=101102
5 31=111112
奇数题号答案
I 8=010002
zi=111111000001000
1.InitializationVector:(Z0=1,1,1,1,1,1)
2.
C0111 C1 111 C2 11 …… 此处隐藏:4419字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [外语考试]管理学 第13章 沟通
- [外语考试]07、中高端客户销售流程--分类、筛选讲
- [外语考试]2015-2020年中国高筋饺子粉市场发展现
- [外语考试]“十三五”重点项目-汽车燃油表生产建
- [外语考试]雅培奶粉培乐系列适用年龄及特点
- [外语考试]九三学社入社申请人调查问卷
- [外语考试]等级薪酬体系职等职级表
- [外语考试]货物买卖合同纠纷起诉状(范本一)
- [外语考试]青海省实施消防法办法
- [外语考试]公交车语音自动报站系统的设计第3稿11
- [外语考试]logistic回归模型在ROC分析中的应用
- [外语考试]2017-2021年中国隔膜泵行业发展研究与
- [外语考试]神经内科下半年专科考试及答案
- [外语考试]园林景观设计规范标准
- [外语考试]2018八年级语文下册第一单元4合欢树习
- [外语考试]分布式发电及微网运行控制技术应用
- [外语考试]三人行历史学笔记:中世纪人文主义思想
- [外语考试]2010届高考复习5年高考3年联考精品历史
- [外语考试]挖掘机驾驶员安全生产责任书
- [外语考试]某211高校MBA硕士毕业论文开题报告(范
- 用三层交换机实现大中型企业VLAN方案
- 斯格配套系种猪饲养管理
- 涂层测厚仪厂家直销
- 研究生学校排行榜
- 鄱阳湖湿地景观格局变化及其驱动力分析
- 医学基础知识试题库
- 2010山西省高考历年语文试卷精选考试技
- 脉冲宽度法测量电容
- 谈高职院校ESP教师的角色调整问题
- 低压配电网电力线载波通信相关技术研究
- 余额宝和城市商业银行的转型研究
- 篮球行进间运球教案
- 气候突变的定义和检测方法
- 财经大学基坑开挖应急预案
- 高大支模架培训演示
- 一种改进的稳健自适应波束形成算法
- 2-3-鼎视通核心人员薪酬股权激励管理手
- 我国电阻焊设备和工艺的应用现状与发展
- MTK手机基本功能覆盖测试案例
- 七年级地理教学课件上册第四章第一节




