Home page logo
/

fulldisclosure logo Full Disclosure mailing list archives

Re: stealing ssh keys
From: "Raj Mathur (राज माथुर)" <raju () linux-delhi org>
Date: Sat, 27 Oct 2012 08:19:04 +0530

On Thursday 25 Oct 2012, Ivaylo Hubanov wrote:
Yes Raj,
You almost got the RSA encryption/decryption flow. :) Just the
private key is used to sign the data and not to encrypt it.

We're splitting hairs here :) but the private key is actually used to 
encrypt.  That encryption is called a signature.

Except, what you encrypt with the private key is a digest of the 
message, not the whole message itself.  When your recipient gets the 
message with the encrypted digest, she uses the same algorithm to make 
her own digest of the received message.  She then uses your public key 
to decrypt the encrypted digest you'd sent and compares the two digests.

If they're the same, then (a) the message originated from you, and (b) 
the message was not tampered with during transmission.

If they're not the same, then someone is playing silly buggers in the 
message flow.

Regards,

-- Raj
-- 
Raj Mathur                          || raju () kandalaya org   || GPG:
http://otheronepercent.blogspot.com || http://kandalaya.org || CC68
It is the mind that moves           || http://schizoid.in   || D17F

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault