Question: Question 3 . Bob's public key is q 2 , h 2 ( given in Sage as q 2 , h 2 ) . Alice
Question Bob's public key is given in Sage as qh Alice has
sent Bob a message encrypted as e Recall that we discussed in lecture that
if we can find integers $ and satisfying
then will likely have recovered Bob's private key the form
The vector lies the lattice and
mentioned lecture, a short vector relative the basis vectors
and both which have length roughly whereas will have
length the order Implement Gauss' method lattice reduction
from lecture also $ the textbook, and the helpful Sage code
data. find the smallest vector the lattice
and find Bob's private key. Use this decrypt the message that
Alice has sent Bob.
def encodes:
s strs
if lens:
print 'Error, string too long.
return
return sumordsii for i in rangelens
def decoden:
n Integern
v
while n :
vappendchrn
n
return joinv
q
f
g
h modfqmodgq
e
q
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
