Hello:
I send you a function that read RSA public and
private key from a file:
RSA *RecuperaClavesRSA(int type, char
*pemfile){ FILE *fp; RSA *key=NULL; switch
(type){ case READPUB: if((fp =
fopen(pemfile,"r")) == NULL)
{ fprintf(stderr,"Error:
Public Key file doesn't
Can you try adding "OpenSSL_add_all_algorithms();" the line before calling "
PKCS7_dataInit".
-Madhu
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luis Alberto
Pérez Paz
Sent: Tuesday, May 10, 2005 9:12 PM
To: openssl-users@openssl.org
Subject: Re: P
On Tue, May 10, 2005, Sean Covel wrote:
> Steve,
>
> >
> >>Additionally you seem to be using an unsalted key derivation algorithm with
> >>a
> >>stream cipher (RC4). If passwords are reused then I hope you aren't sending
> >>anything sensitive that way because that is an insecure combination.
>
Hi,
I'm trying to verify a signature using the following code:
BIO* cert_bio;
X509 *cert;
X509 * x509;
EVP_PKEY * pkey;
EVP_MD_CTX *md_ctx;
int sig_err;
cert_bio = BIO_new_file("vpn_test_konz.pem", "r");
if (cert_bio == NULL) {
printf("error reading PEM-file\n");
exit(1);
}
cert = PEM
> If using the third process to hold the SSL connection act like stunnel,
> But the performance is slower, so I prefer without the third process.
It's hard to give you good suggestions without knowing more about the
specifics of your application. But I think it should be possible to make
Steve,
>
>>Additionally you seem to be using an unsalted key derivation algorithm with a
>>stream cipher (RC4). If passwords are reused then I hope you aren't sending
>>anything sensitive that way because that is an insecure combination.
>>
>
Additional Questions:
SALT isn't secret, correct?
lewislyk wrote:
If using the third process to hold the SSL connection act like stunnel,
But the performance is slower, so I prefer without the third process.
My last Idea is you get the SSL session data from a SSL object,
do a i2d_ on it, create a new SSL_SESSION object with d2i_...,
insert that in
If using the third process to hold the SSL connection act like stunnel,
But the performance is slower, so I prefer without the third process.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Schwartz
Sent: Tuesday, May 10, 2005 11:55 PM
To: openssl-us
Yes, I have set up the call-backs exactly as in
crypto\threads\mttest.c
The problem seems to be going away when the replace
the
fseek with fclose and fopen the file again. Does this
sound weird? (considering that all threads may be
executing this code simultaneously).
if(!(x509=d2i_X509_fp(fp, N
> But the SSL object structure is too complex,
> it containing too many pointer, and many other object pointer which also
> containing pointer.
>
> That is hard to translate all of them.
>
> Is there any method, that just pass some element of SSL structure
> connection
> to [Request Handler], then
Thanks Tan Eng for your answer and advice,
I tried it however the code has the same behavior ->crash in the
PKCS7_dataInit<-
I'll continue looking for.
Luis A Perez
On 5/9/05, Tan Eng Ten <[EMAIL PROTECTED]> wrote:
> Before PKCS7_dataInit(), try adding:
>
> PKCS7_content_new(thePKCS7, NID_pkcs7
try
pubKey=*PEM_read_RSA_PUBKEY(file, NULL,NULL,NULL);
in the place of PEM_read_RSAPublicKey.
if it doesn't work try to use the load_key function
with a PEM format in apps.c , i didn't remember where
you can find it , im not sure .
good luck.
Abdou,
_
Hi Angel,
Thank you for your response. I have changed my code with accordance to your suggestion but I'm still getting a runtime error when attempting to read the key from its file.
So far I'm having trouble with 1- reading the key from file, and 2- RSA_size() , this function generates a runtime er
Title: SHA2
I'm trying to generate self signed certificates with sha256, sha384 and sha512 algorithms for testing purposes. It seems openssl.exe doesn't understand it, although I have downloaded latest version (openssl-0.9.7g).
If openssl.exe can't create it then please tell me (if somebody
Hello:
I want to cypher/decypher an struct:
struct PeticionSeudonimo
{
char *mensaje;
int id_peticion;
DES_cblock *clave_simetrica;
}peticion_seudonimo;
To do this, I first convert this struct to char *:
char *ptrPeticionSeudonimo = (char *)&peticion_seudonimo;
Then I use this functio
But the SSL object structure is too complex,
it containing too many pointer, and many other object pointer which also
containing pointer.
That is hard to translate all of them.
Is there any method, that just pass some element of SSL structure connection
to [Request Handler], then [Request Handler
Hello Layla:
Maybe, your error disapear if you will change the
following:
apub = PEM_read_RSAPublicKey(f, NULL, NULL, NULL);
Regards.
- Original Message -
From:
Layla
To: openssl-users@openssl.org
Sent: Tuesday, May 10, 2005 9:30 AM
Subject: Loading RSA keys
Any one knows if openssl can be compiled & run in IBM
OS/390. If not, is there any other cryptographic api
that runs in IBM OS/390.
thanks
hao
Best Regard
__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusines
I'm still not able to load the key from its file and I'm still encountering an error when I use RSA_size(); a run time error occured when I try to print the returned size. I'm including a segment of my code after modification:
RSA *apub
> Did you do:
>
> perl Configure VC-WIN32
>
> first?
No. :( I thought I need to do that only first time I compile OpenSSL
lib, not allways. :(
Works fine now.
Thank you very much,
Milan
__
OpenSSL Project
Sure,
take a look at http://www.openssl.org/docs/crypto/crypto.html.
Renember to link against libcrypto...
Sebastian
cranium2003 wrote:
hello,
I want to write a RSA encryption decryption
program in C that encrypt data on one pc sends that
encrypted data to other pc and get it decrypted on
th
21 matches
Mail list logo