Let the public key be (y,p,g)=(64,101,2). The El Gamal Digital Signature of 11 is (r,s)=(8,s), where s=?
What is the El Gamal Signature Scheme? wikipedia: The ElGamal signature scheme is a digital signature scheme which is based on the difficulty of computing discrete logarithms. It was described by Taher Elgamal in 1985.
my notes:
Public / Private Keys:
A triple (y,p,g), where p is a prime number, g is a generator for Zp∗ and y≡gx(modp) where x is the private Key.
Signing:
The signature of a message m is a pair (r,s). Since this is a probabilistic signature scheme, in order to generate such a pair, the signer begins by choosing a random number k such that 0=k=p−1 and gcd(k,p−1)=1. Then,
r≡gk(modp)s≡(m−xr)⋅k−1(mod(p−1))
Verifying:
Check that gm≡yrrs(modp)
The equation for s in the Signing step was obtained as follows:
The second-to-last step might be confusing. Since g is a generator of Zp∗ and p is a prime number, we have that
gz≡gz+(p−1)(modp)
for any z∈Z. In other words, the powers of g are congruent modulo p−1.
For this problem, we need to find s. We already have the values of m,r and p, which means we need the values of x and k. Those can be found easily by examining these equations:
64≡2x(mod101)8≡2k(mod101)
It is clear that x=6 and k=3. We can now find s as,
s≡(11−6⋅8)⋅3−1≡3−37≡363≡21(mod100)
Therefore, s=21 is the solution to this problem.
Let’s move on to the next one:
The Hadamard gate is applied to the two qubits of a 2-qubit system in state
21(∣00⟩+∣01⟩+∣10⟩+∣11⟩).
What is the resulting state of the 2-qubit system?
First, we can rewrite the given state of the 2-qubit system as:
(2∣0⟩+∣1⟩)⊗(2∣0⟩+∣1⟩)
Now we will apply the Hadamard operation on each of these qubits,
H(2∣0⟩+∣1⟩)=(21[111−1])(21[11])=[10]
And finally take the tensor product of the output from the operation,
[10]⊗[10]=1000
which is equivalent to ∣00⟩, the solution to this problem.
Even though I was able to solve this problem, I do not know anything about quantum computing. It seems like a very cool subject and I’d love to read and learn more about it. Until next time!