GGHImplements Goldreich–Goldwasser–Halevi (GGH) |
Outline
The following is a sample run:
Searching for private vectors [[1. 0. 0. 0. 0.] [0. 1. 0. 0. 0.] [0. 0. 1. 0. 0.] [0. 0. 0. 1. 0.] [0. 0. 0. 0. 1.]] Looking for public vector [[-68. 33. -3. 28. 4.] [ 42. 1. 40. 22. 2.] [-45. 25. -19. -4. 0.] [ 9. 23. 41. 73. 9.] [ 0. 3. 4. 8. 1.]] --------ENCODED TEXT-------- [b'aA==', b'ZQ==', b'bA==', b'bA==', b'bw=='] --------CYPHER ARRAY-------- [-6718. 9050. 6548. 13474. 1701.] --------MESSAGE ARRAY-------- [104 101 108 108 111] --------MESSAGE-------- hello [104 101 108 108 111] =