Re: Calls to PEM_read_PrivateKey fail after incorrect password

2008-11-12 Thread Aubrey Eddleson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oh jeez, I am! What was I *thinking*?! Wow do I feel *extra* goofy! Heh. Obviously, that fixed it. Thanks much! - Aubrey On Wed, Nov 12, 2008 at 02:55:16PM -0500, Victor Duchovni wrote: > No, you are passing an open file handle. -BEGIN PGP S

Re: Calls to PEM_read_PrivateKey fail after incorrect password

2008-11-12 Thread Victor Duchovni
On Wed, Nov 12, 2008 at 02:26:49PM -0500, Aubrey Eddleson wrote: > Rewind the key file? But how? I didn't open it; I'm just passing its name to > PEM_read_PrivateKey. Am I totally missing something really obvious here? EVP_PKEY *PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x,

Re: Calls to PEM_read_PrivateKey fail after incorrect password

2008-11-12 Thread Aubrey Eddleson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rewind the key file? But how? I didn't open it; I'm just passing its name to PEM_read_PrivateKey. Am I totally missing something really obvious here? On Wed, Nov 12, 2008 at 02:12:03PM -0500, Victor Duchovni wrote: > Rewinding the input file might

Re: Calls to PEM_read_PrivateKey fail after incorrect password

2008-11-12 Thread Victor Duchovni
On Wed, Nov 12, 2008 at 02:03:59PM -0500, Aubrey Eddleson wrote: > Greetings! > > I'm working on a proof-of-concept SSH key cracker: my code reads in password > guesses from standard input and for each guess, calls PEM_read_PrivateKey. If > that returns a valid pointer, that indicates that the

Calls to PEM_read_PrivateKey fail after incorrect password

2008-11-12 Thread Aubrey Eddleson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Greetings! I'm working on a proof-of-concept SSH key cracker: my code reads in password guesses from standard input and for each guess, calls PEM_read_PrivateKey. If that returns a valid pointer, that indicates that the password was correct. (I thi