Re: Error - AES-256 CBC encrypting using EVP routines and decrypting using command line

2010-05-25 Thread Anand Patel
You need to use same iv and key for decryption. I believe the command is openssl enc -d -aes-256-cbc -K -iv -in rgconf_encrypted -out rgconf_decrypted. -Anand On Tue, May 25, 2010 at 8:30 AM, ~ Kunal Sharma ~ wrote: > Friends, > > I'm trying to verify that my encryption and decryption routines

Re: Problem in using openssl in PC

2010-03-21 Thread Anand Patel
Why don't you link your application statically during build. This eliminates problem of having runtime linking/loading. If that works then you know the problem is with something else and not ssl. On Fri, Mar 19, 2010 at 8:42 AM, Mohit Kumar wrote: > Hi, > I am using openssl in QT4.I copy libeay

Re: Error copiling ssl: undefined reference

2010-02-26 Thread Anand Patel
Those are the header you included. But you need to link against libs after compilation. What platform(win/linux) and What tool(studio/shell)? -Anand On Fri, Feb 26, 2010 at 1:59 PM, xabi esteban wrote: > I don't understand you. I put the libreries in the includes #include > #include <> >

Re: Need help on creating certs

2010-02-26 Thread Anand Patel
You are not using any valid command. Error clearly explains that command '-incommand' is not valid command, and gives you output of valid commands. Look at, http://openssl.org/docs/apps/ca.html# openssl x509 openssl ca openssl req simple expample to get you started. >openssl genrsa -out private_k

Re: Error copiling ssl: undefined reference

2010-02-26 Thread Anand Patel
Do you link against correct libraries? Try linking with ssleay and libeay. -Anand On Fri, Feb 26, 2010 at 12:08 PM, xabi esteban wrote: > Hello: > I'm trying to use the SSL libreries. When I try to comipile my code y > always obtain the same error: > > cli.c:(.text+0x20): undefined reference

Re: recommended rsa api

2010-01-20 Thread Anand Patel
For RSA API take a look at http://openssl.org/docs/crypto/rsa.html# -Anand On Wed, Jan 20, 2010 at 11:18 AM, Anand Patel wrote: > EVP is oneway of implementing your solution. Look at Example section of > http://openssl.org/docs/crypto/EVP_EncryptInit.html# > > -Anand > > >

Re: recommended rsa api

2010-01-20 Thread Anand Patel
EVP is oneway of implementing your solution. Look at Example section of http://openssl.org/docs/crypto/EVP_EncryptInit.html# -Anand On Wed, Jan 20, 2010 at 10:14 AM, Alexey Luchko wrote: > Hi! > > I'm new to openssl. > > I need to encrypt and decrypt approx 1k block of data with rsa. > What is

Re: Problem with compiling of openSSL

2010-01-20 Thread Anand Patel
I use windows cmd prompt to compile openssl (0.9.8) on XP. I have found Perl to be a main problem. make sure ActivePerl is the first perl on your path (set path=ActivePerl;%PATH%). And then run $$perl Configure Also, if you want debug symbols you will have to edit nt.mak file. After running C

Re: (newbie) private key vs. keystore confusion

2009-12-27 Thread Anand Patel
Not sure what you mean by keystore but above command combines certificate and key in PKCS12 format "service.p12". -Anand On Thu, Dec 24, 2009 at 10:33 AM, Mazza, Glen R. wrote: > Hello, I'm confused somewhat about the workings of OpenSSL, in particular > the following command: > > > > openssl p

Re: How can I decrypt a DES-EDE3-CBC file?

2009-12-27 Thread Anand Patel
openssl enc -d/-e [cipher to use] -in -out Look here http://www.openssl.org/docs/apps/enc.html# Encrypt openssl enc -e -des-ede3-cbc -in regualr_file Decrypt openssl enc -d -des-ede3-cbc -in encrypted_file -Anand On Wed, Dec 23, 2009 at 5:09 PM, dutchman1 wrote: > > Hi, > > what's the opens

PKCS 1 API question

2009-11-24 Thread Anand Patel
Hello, I need to generated PKCS#1 structure from a message hash that I have calculated. Can some one please point me to OpenSSL API calls that does this. Thanks in advance..! -Anand

wincrypt.h conflicts during compilation winxp

2009-11-19 Thread Anand Patel
Hello, I am trying to compile my appilcation performing PKCS7 logic. I am having issue during compilation of the x509 related objects. Specifically, there is name collision between wincrypt.h and openssl. During my initial research I found that it is a common problem (user list and ticket#1749).