Houston, we cannot recover the plaintext


poly_prime =
8 0 0 0 0 c9
data test =
68616c6c 6f0a0000 0 0 0 6000000
setting up curves

the curve after setting up:
form: 1
a2: 2 0 0 0 0 0
a6: 1 0 0 0 0 0

counter = 0
inc = 5
Base point
x: 5 63323eab 10fc68f8 254d4d11 d2d518f2 9979dd24
y: 7 95f678a8 39481c22 2f4c7995 4a571060 6fe263b2

create side 2's private key

Side 2 secret:
5 5d0be8bb a913fcdb 91edee60 4da6d486 295d85ac

Generate side 2's public key

Side 2 public key
x: d107f500 66784cc8 9a0621db 9050de48 31c6e7c5 7d65d83b
y: 2 1763b098 91e23a1e 2f96df5c 50c63a33 a4b16c75

Hide data on curve and send from side 1 to side 2

counter = 0
inc = 0
counter = 0
-- pnt->x =
x: bffff4d8 1 bffff508 90483f7b a0073a58 905e07e8
y: 100131 1000 0 bffff7a0 bffff71c 1ed5
counter = 1
-- pnt->x =
x: bffff4d8 1 bffff508 90483f7b a0073a58 905e07e8
y: 100132 1000 0 bffff7a0 bffff71c 1ed5
Hidden data
x: 100135 70f0eb24 c996c3e4 2d120279 e9f3ec30 3370129a
y: 100132 7a61b198 ccba8673 27995624 c069db6f ab7bdfaa
Random point
x: d107f503 81d255cd 358038a7 148e84da a7b39f16 75d320c4
y: 3 e0053e42 6538a7a0 41dabd3 4cb90701 9a31b3b0

Recover transmitted message

sent data
100130 1000 0 bffff7a0 bffff71c 1ed5
received data
d117f431 a8e83258 f59857d7 646d8b77 90191393 f6674925

Advertisements