Author

Topic: who can explain how signing/verifing message works? (Read 578 times)

full member
Activity: 143
Merit: 100
The verfication is done with your public key.

Basicly its a o = m^d (mod N)

where o is the signature, m is the message and d is the private key
Because RSA has some vulnerabilites, the message gets hashed first.

To check the signature you calulate o^e = m (mod N)
where e is the public key to the former used private key.

If the hashes match the message wasnt changed durring transport.

This works because ed = 1 (mod phi(N))
while e and N again are part of the public key
and d is the private key



If you want more details, read the rfc 3447, its explained for RSA, but the principle is still the same

Link: http://tools.ietf.org/html/rfc3447#page-27



Edit: phi(x) is eulers phi function ( http://en.wikipedia.org/wiki/Euler%27s_totient_function )

thank you very much!
copper member
Activity: 1498
Merit: 1499
No I dont escrow anymore.
The verfication is done with your public key.

Basicly its a o = m^d (mod N)

where o is the signature, m is the message and d is the private key
Because RSA has some vulnerabilites, the message gets hashed first.

To check the signature you calulate o^e = m (mod N)
where e is the public key to the former used private key.

If the hashes match the message wasnt changed durring transport.

This works because ed = 1 (mod phi(N))
while e and N again are part of the public key
and d is the private key



If you want more details, read the rfc 3447, its explained for RSA, but the principle is still the same

Link: http://tools.ietf.org/html/rfc3447#page-27



Edit: phi(x) is eulers phi function ( http://en.wikipedia.org/wiki/Euler%27s_totient_function )
full member
Activity: 238
Merit: 100
Me 3, plz
newbie
Activity: 7
Merit: 0
I would like to know more about that as well.
Can anyone shed some light on it?
full member
Activity: 143
Merit: 100
Using a bitcoin client, one can sign/verify messages.
I understand that I use my private key to sign a message,
but I wonder why other people can verify messages which I signed?
since the  key is private, and other people don't know.
Jump to: