Re: Getting public/private keys into/out of NSS

2007-07-11 Thread David Stutzman
Robert Relyea wrote: >> One other final thing I'm stumbling over is key and hash types. I >> recognise the names RSA and DSA but is there a particular advantage of >> using one over the other? > RSA and DSA have different performance characteristics, RSA has a fairly > fast verification compare

Re: Getting public/private keys into/out of NSS

2007-07-10 Thread Robert Relyea
Dave Townsend wrote: Hi Bob, thanks for all your help by the way, got me much further so far. Robert Relyea wrote: You really only want to store and retrieve the private keys if you you need to transport them (or back them up). Doing the latter needs to be handled carefully, and can be a s

Re: Getting public/private keys into/out of NSS

2007-07-10 Thread Dave Townsend
Hi Bob, thanks for all your help by the way, got me much further so far. Robert Relyea wrote: > You really only want to store and retrieve the private keys if you you > need to transport them (or back them up). Doing the latter needs to be > handled carefully, and can be a source of errors in y

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Robert Relyea
Dave Townsend wrote: Nelson Bolyard wrote: Dave Townsend wrote: I've spent much of the afternoon delving through the NSS APIs trying to figure out how to achieve my goals. I'm basicaly working on signing and verifying data with public and private keys. I've figured that SGN_SignData and

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Robert Relyea
Dave Townsend wrote: Robert Relyea wrote: Dave Townsend wrote: Anyway basic issue is that I need a SECKEYPublicKey and SECKEYPrivateKey. I can see how to create them in NSS for use, I've also found a technical note which suggests how to bring a public key into NSS, however I don't see

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Dave Townsend
Robert Relyea wrote: > Dave Townsend wrote: >> Anyway basic issue is that I need a SECKEYPublicKey and >> SECKEYPrivateKey. I can see how to create them in NSS for use, I've >> also found a technical note which suggests how to bring a public key >> into NSS, however I don't see anything about se

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Dave Townsend
Nelson Bolyard wrote: > Dave Townsend wrote: >> I've spent much of the afternoon delving through the NSS APIs trying to >> figure out how to achieve my goals. I'm basicaly working on signing and >> verifying data with public and private keys. I've figured that >> SGN_SignData and VFY_VerifyData are

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Nelson Bolyard
Dave Townsend wrote: > I've spent much of the afternoon delving through the NSS APIs trying to > figure out how to achieve my goals. I'm basicaly working on signing and > verifying data with public and private keys. I've figured that > SGN_SignData and VFY_VerifyData are my friends (or should I be

Re: Getting public/private keys into/out of NSS

2007-07-09 Thread Robert Relyea
Dave Townsend wrote: I've spent much of the afternoon delving through the NSS APIs trying to figure out how to achieve my goals. I'm basicaly working on signing and verifying data with public and private keys. I've figured that SGN_SignData and VFY_VerifyData are my friends (or should I be usin

Getting public/private keys into/out of NSS

2007-07-09 Thread Dave Townsend
I've spent much of the afternoon delving through the NSS APIs trying to figure out how to achieve my goals. I'm basicaly working on signing and verifying data with public and private keys. I've figured that SGN_SignData and VFY_VerifyData are my friends (or should I be using the PK11_Sign/Verif