Re: How to add my own crypto with openssl libs

2014-02-14 Thread Gnanasekar R
You can hook your engine to the crypto library to do the enc/dec. But I don't think you can completely avoid the libcrypto.so. Someone please correct me if I am wrong. On 14 February 2014 16:40, Indtiny S wrote: > Hi, > > I have written a my code for AES_CCM ciper suite. > > I want to use the o

Re: Forcing an application to use SHA512

2014-02-04 Thread Gnanasekar R
2014 13:01, Gnanasekar R wrote: > Hi, > > I am trying to write a cli-ser app and in that I want to force SHA512 to > be used. I am always seeing SHA1 being used. Is there a way to force that > in the application? > > Thanks in advance! >

Forcing an application to use SHA512

2014-02-03 Thread Gnanasekar R
Hi, I am trying to write a cli-ser app and in that I want to force SHA512 to be used. I am always seeing SHA1 being used. Is there a way to force that in the application? Thanks in advance!

Re: Support for SHA-512/224 and SHA-512/256

2013-10-04 Thread Gnanasekar R
wrote: > Hi! > > Note, this is OpenSSL 1.0.1c. > > sha.h: int SHA512_Init(SHA512_CTX *c); > evp.h: const EVP_MD *EVP_sha512(void); > > Best regards, > Fredrik > > > On Fri, Oct 4, 2013 at 9:44 AM, Gnanasekar R wrote: > >> Hi, >> >> I would

Support for SHA-512/224 and SHA-512/256

2013-10-04 Thread Gnanasekar R
Hi, I would like to know if OpenSSL has support for SHA-512/224 and SHA-512/256. I see init functions for SHA-256 and SHA-224. But could not find one for the 512/t. Is it not supported? Thanks, Gnanasekar

Re: cryptodev engine in openssl not working

2013-09-11 Thread Gnanasekar R
Did you build OpenSSL libs by enabling the appropriate flags - HAVE_CRYPTODEV etc ? In files crypto/engine/eng_all.c , "ENGINE_load_cryptodev" will be under few defines. Make sure your platform have those defines. Regards, Gnananasekar On 11 September 2013 14:34, Anees K A wrote: > Hi, > > Whe

Re: Assigning pre-defined bufs to OpenSSL lib bufs for AES calculation

2013-05-21 Thread Gnanasekar R
Yes, basically I am trying to see if I can make OpenSSL use certain 'pre-defined' bufs that will be mmap'ed to a known location in the memory. So that in the HW cryptolib I can make use of DMA to supply data to the crypto engine and read back to the same physical address. That way it will be faster

Assigning pre-defined bufs to OpenSSL lib bufs for AES calculation

2013-05-21 Thread Gnanasekar R
Hi, I would like to know if it is possible to assign pre-defines bufs(addresses) to OpenSSL which it can use to store plaintext/cipher text during AES computation.

AES using cryptodev driver

2013-05-20 Thread Gnanasekar R
Hi, Has anyone tried using cryptodev driver and seen it to be better than AES computation in OpenSSL libs. I instrumented the time using evp_test app and see that AES computation using cryptodev is ~1.6ms slower compared to running the app without cryptodev driver, in my system. So I would like to

Crypto engine EVP_CIPHER structure - cleanup

2012-10-03 Thread Gnanasekar R
Hi, I have a crypto engine to perform AES encryption/decryption. I have initialized the EVP_CIPHER structure with the needed function pointers. I get called in "init" where I do some bookkeeping(could be assigning a context id). When this context is over I would like to remove any bookkeeping I wo