mirror of
https://github.com/billbuchanan/appliedcrypto.git
synced 2026-02-21 11:18:02 +00:00
Update README.md
This commit is contained in:
@@ -167,42 +167,7 @@ What are the main advantages of having a variable key size and having a stream c
|
||||
|
||||
|
||||
|
||||
### L4
|
||||
The ELLI method can be used to identify an RFID tag.
|
||||
|
||||
|
||||
|
||||
Can you run the following code and determine that it works (C and D should be the same)? Can you also explain how it works?
|
||||
|
||||
|
||||
|
||||
```Python
|
||||
from os import urandom
|
||||
from eccsnacks.curve25519 import scalarmult, scalarmult_base
|
||||
import binascii
|
||||
|
||||
lamb = urandom(32)
|
||||
a = scalarmult_base(lamb)
|
||||
|
||||
eps = urandom(32)
|
||||
b = scalarmult_base(eps)
|
||||
|
||||
c = scalarmult(eps, a)
|
||||
|
||||
d = scalarmult(lamb, b)
|
||||
|
||||
print "RFID private key: ",binascii.hexlify(eps)
|
||||
|
||||
print "Reader private key: ",binascii.hexlify(lamb)
|
||||
|
||||
print
|
||||
print "A value: ",binascii.hexlify(a)
|
||||
print "B value: ",binascii.hexlify(b)
|
||||
|
||||
print "C value: ",binascii.hexlify(c)
|
||||
print "D value: ",binascii.hexlify(d)
|
||||
```
|
||||
Repl.it: https://repl.it/@billbuchanan/elli
|
||||
|
||||
## 3 Zero-knowledge proof (ZKP)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user