博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
《计算机网络 自顶向下方法》(第7版)答案(第八章)(五)
阅读量:4170 次
发布时间:2019-05-26

本文共 1652 字,大约阅读时间需要 5 分钟。

P22

a) F

b) T
c) T
d) F

P23

If Trudy does not bother to change the sequence number, R2 will detect the duplicate when checking the sequence number in the

ESP header. If Trudy increments the sequence number, the packet will fail the
integrity check at R2.

P24

a) Since IV = 11, the key stream is 111110100000 ……….

Given,

m = 10100000

Hence,

ICV = 1010 XOR 0000 = 1010

The

three fields will be:

IV: 11

Encrypted

message: 10100000 XOR 11111010 = 01011010

Encrypted

ICV: 1010 XOR 0000 = 1010

b) The receiver extracts the IV (11) and generates the

key stream 111110100000 ……….

XORs

the encrypted message with the key stream to recover the original message:

01011010

XOR 11111010 = 10100000

XORs

the encrypted ICV with the keystream to recover the original ICV:

1010

XOR 0000 = 1010

The receiver

then XORs the first 4 bits of recovered message with its last 4 bits:

1010

XOR 0000 = 1010 (which equals the recovered ICV)

c) Since the ICV is calculated as the XOR of first 4

bits of message with last 4 bits of message, either the 1st bit or the 5th bit
of the message has to be flipped for the received packet to pass the ICV check.

d) For part (a), the encrypted message was 01011010

Flipping

the 1st bit gives, 11011010

Trudy

XORs this message with the keystream:

11011010

XOR 11111010 = 00100000

If

Trudy flipped the first bit of the encrypted ICV, the ICV value received by the
receiver is 0010

The receiver XORs this value with the keystream to get the ICV:

0010 XOR 0000 = 0010

The receiver now calculates the ICV from the recovered message:

0010 XOR 0000 = 0010 (which equals the recovered ICV and so the received packet

passes the ICV check)

P25

在这里插入图片描述

P26

在这里插入图片描述

转载地址:http://ckwai.baihongyu.com/

你可能感兴趣的文章
初学定时器
查看>>
数码管
查看>>
单片机数码管消隐及中断
查看>>
C#串口调试助手代码
查看>>
学习DS1820随记
查看>>
初学C#之windowes窗口应用文件
查看>>
linux常用命令
查看>>
Linux之vim(一)vim简介
查看>>
进程间通信的方式简单解析————管道
查看>>
git学习笔录
查看>>
Activity类中7个与活动生命周期回调有关的方法
查看>>
jwt与token+redis,哪种方案更好用?
查看>>
Comparator接口
查看>>
在二叉树中找到一个节点的后继节点
查看>>
寻找第K大
查看>>
String.trim
查看>>
缓存行 伪共享
查看>>
400 : perceived to be a client error 错误
查看>>
Establishing SSL connection without server's identity verification is not recommended
查看>>
扫描包不存在:pojo类找不到
查看>>