Skip to content

Commit

Permalink
Fixed K generation: K <- 2A XOR 4B XOR T.
Browse files Browse the repository at this point in the history
  • Loading branch information
markkurossi committed Apr 8, 2020
1 parent 0966211 commit 8759bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions circuit/garble.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ func decrypt(alg cipher.Block, a, b ot.Label, t uint32, encrypted ot.Label) (

func makeK(a, b ot.Label, t uint32) ot.Label {
a.Mul2()

b.Mul4()
a.Xor(b)

a.Xor(ot.NewTweak(t))

return a
Expand Down

0 comments on commit 8759bd1

Please sign in to comment.