Re: Trouble using PKCS5_pbe2_set()

2004-09-13 Thread Steve Hay
Dr. Stephen Henson wrote: On Fri, Sep 10, 2004, Dr. Stephen Henson wrote: On Fri, Sep 10, 2004, Steve Hay wrote: As an alternative to my luckless attempts at using EVP_CIPHER_param_to_asn1() + PKCS5_v2_PBE_keyivgen(), I thought I would try PKCS5_pbe2_set() + EVP_PBE_CipherInit(),

Re: Trouble using PKCS5_pbe2_set()

2004-09-13 Thread Dr. Stephen Henson
On Mon, Sep 13, 2004, Steve Hay wrote: Dr. Stephen Henson wrote: OK, I tried that and it works very well. However, as the attached program shows, it now turns out that this has all been a waste of time. If you recall what my original problem was (namely, EVP_BytesToKey() only supports

Re: Multiple attributes in PKCS#10

2004-09-13 Thread Aleix Conchillo Flaque
Hi again, shouldn't it be? static int ext_nid_list[] = { NID_ext_req, NID_ms_ext_req, NID_undef}; instead of static int ext_nid_list[] = { NID_ms_ext_req, NID_ext_req, NID_undef}; I guess it was a typo. regards, aleix On Fri, 10 Sep 2004 22:29:10 +0200, Dr. Stephen Henson [EMAIL PROTECTED]

Re: Trouble using PKCS5_pbe2_set()

2004-09-13 Thread Steve Hay
Dr. Stephen Henson wrote: On Mon, Sep 13, 2004, Steve Hay wrote: So now I'm back to square one: How do I do PKCS#5 key derivation using a non-default key length? Urk, yes you are right. There isn't a way to set the key length in PKCS5_pbe2_set(). OK, I'd hoped to avoid this but I

RE: How to convert a buffer in DER format to a RSA structure?

2004-09-13 Thread Herbert Skopnik V.
Joseph: Excuse me for the late answer, but weekend was in front of the door before the last message I send. Resuming with the problem: I'm not having any problems with the database, because I'm doing the same task with intermediate files. The problem is that in this way (files) the time for

Re: Reloading the CRL

2004-09-13 Thread Ralf Haferkamp
On Thursday 09 September 2004 18:00, Dr. Stephen Henson wrote: On Thu, Sep 09, 2004, Ralf Haferkamp wrote: Hi, I am currently trying to implement CRL checking inside a server. I am now facing the problem, that I would like to trigger a reload of the CRL from disc if it has been updated,

Re: Trouble using PKCS5_pbe2_set()

2004-09-13 Thread Geoff Thorpe
On September 13, 2004 10:04 am, Steve Hay wrote: The above seems to work OK after a quick test, but why does one need EVP_CIPHER cipher = *EVP_bf_cbc(); cipher.key_len = ... rather than EVP_CIPHER *cipher = (EVP_CIPHER *)EVP_bf_cbc(); cipher-key_len = ... ? Because with

RE: How to convert a buffer in DER format to a RSA structure?

2004-09-13 Thread Herbert Skopnik V.
Dr. Henson: Thank you very much for your help. It worked with the d2i_RSA_PUBKEY() function. Both sides recognized the encrypted data. So I need to know now how to do the same with a private key, also in DER format. Any way, I'm sending you the keys I'm using to test the application and would