作业5(Assignment 5)

app可以包含一下部分:

“我是快递员”:需要有从快递公司获取并查看用户收寄件信息(包括但不限于收件人信息中地址、邮政编码、联系方式)、扫描二维码或直接分配取件码以区分不同客户的不同快递件等功能;

“我是顾客”:需要有上门取件、邮寄寄件、我的收件(展现近日来收到的快递信息)、查看物流详情、获取二维码或取件码以正确取件等功能。

交互过程:

第一阶段 身份验证服务交换:

C to AS(APP端到服务器):IDC‖IDtgs ‖TS1,IDC为快递的顾客标识;IDtgs为顾客请求访问的TGS标识;TS1为让服务器验证顾客与AS的时钟是否同步。

AS to C(服务器到APP端):EKC[Kc,tgs‖IDtgs‖TS2‖Lifetime2‖Tickettgs],EKC:服务器和快递小哥的加密,Lifetime2:签证有效期,Tickettgs:快递小哥用来访问TGS的ticket。

第二阶段 票据授予服务交换:

C to TGS: IDV‖Tickettgs‖Authenticatorc ,Authenticatorc = EKc,tgs[IDc‖Adc‖TS3]

TGS to C: EKc,tgs[Kc,v ‖IDv‖TS4‖Ticketv],Ticketv= EKV[Kc,v‖IDC‖ADC‖IDv‖TS4‖Lifetime4]

第三阶段 客户与服务器身份验证交换

C to V:Ticketv‖Authenticatorc 

V to C:EKc,v[TS5+1] ( for mutual authentication) ,Authenticatorc = EKc,v[IDc‖ADc‖TS5]

搜索

复制

————————

The app can include the following parts:

“I’m a courier”: it needs to have the functions of obtaining and viewing the user’s receiving and sending information from the express company (including but not limited to the address, postal code and contact information in the recipient’s information), scanning QR code or directly assigning pick-up code to distinguish different Express items of different customers;

“I’m a customer”: I need to have the functions of door-to-door pick-up, mailing, my receipt (showing the express information received in recent days), viewing logistics details, obtaining QR code or pick-up code to pick up pieces correctly, etc.

Interaction process:

Phase 1: authentication service exchange:

C ‖ to ‖ as (APP end to server): IDC ‖ idtgs ‖ TS1, IDC is the customer identification of express delivery; Idtgs is the TGS identification requested by the customer; TS1 is to let the server verify whether the clock of the customer is synchronized with that of the as.

As “to” C (server to APP): EKC [KC, TGS ‖ idtgs ‖ TS2 ‖ lifetime2 ‖ tickettgs], EKC: encryption of server and express brother, lifetime2: validity of visa, tickettgs: ticket used by express brother to access TGS.

Phase II bill granting service exchange:

C to TGS: IDV‖Tickettgs‖Authenticatorc ,Authenticatorc = EKc,tgs[IDc‖Adc‖TS3]

TGS to C: EKc,tgs[Kc,v ‖IDv‖TS4‖Ticketv],Ticketv= EKV[Kc,v‖IDC‖ADC‖IDv‖TS4‖Lifetime4]

The third stage is authentication exchange between client and server

C to V:Ticketv‖Authenticatorc 

V to C:EKc,v[TS5+1] ( for mutual authentication) ,Authenticatorc = EKc,v[IDc‖ADc‖TS5]

search

copy