美文网首页
coding the matrix week1 GF(2)

coding the matrix week1 GF(2)

作者: 爱跑步的coder | 来源:发表于2018-06-03 10:28 被阅读0次

Addition of 0 and 1 in the Galois Field 2 is just like exclusive-or.

image.png image.png
def encrypt(p,k): return p+k
from GF2 import one
k = one
p = one

c = encrypt(p, k)
print c

Now, suppose an eavesdropper Eve, observes the value of c.
So, let's suppose the secret key is chosen by flipping a coin.


image.png image.png

So, you can see in this case, you could effectively double the throughput from this source to these two recipients using GF2 addition.

相关文章

网友评论

      本文标题:coding the matrix week1 GF(2)

      本文链接:https://www.haomeiwen.com/subject/sbzdsftx.html