Please Help: RSA Public Key Exponent size

2009-10-30 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, In our environment a secure server creates Private/Public RSA keys. We Can never access the Private key but we are able to access the Public Key. The command BN_num_bytes(rsa_public_key->e) returns the size of the exponent part of the public key, and it is 3 bytes. "10001". Could this be

Creating private key pem file from exponent and modulus

2009-10-23 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, Working with legacy code, a RSA private key's modulus and exponent are saved to a file (i.e. two array of c-structures). Is there anyway I can create pem format of the Private key its modulus and exponent parts? Many thanks in advance, --B

Newbie questions: extracting public key's exponent and modules.

2009-10-22 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, Here is the part of the code that was previously developed. The code successfully extract a public key from some secure server, now I like to know how to extract the exponent and modules of the public key (rsa_public_key). EVP_PKEY *public_key = NULL; RSA *rsa_public_key =

Hex dump of public key.

2009-07-29 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, I need to convert a public key in PEM format to Hex format. Thanks, B __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automat

RE: Base64-encoded public key convert to PEM

2009-07-28 Thread Bizhan Gholikhamseh (bgholikh)
> HI ALL, > I have a binary format of a public key which is in > "BASE64-encoded public key in RSA PKCS#1 format". > How could I convert that to a PEM format? > Here is another data set: TO get the binary format I ran the following command: openssl asn1parse -inform d -in key.bin 0:d=0

Base64-encoded public key convert to PEM

2009-07-28 Thread Bizhan Gholikhamseh (bgholikh)
HI ALL, I have a binary format of a public key which is in "BASE64-encoded public key in RSA PKCS#1 format". How could I convert that to a PEM format? Many thanks in advance, Bizhan __ OpenSSL Project

RE: conversion function

2009-07-28 Thread Bizhan Gholikhamseh (bgholikh)
> > Hi All, > > In our development environment we have an image signing > system. Through > > some configuration we can create a pair of rsa > public/private key by > > the system. > > > > The private key are kept by the system and never are > release, however, > > through some HTTPS API

conversion function

2009-07-28 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, In our development enviroment we have an image signing system. Through some configuration we can create a pair of rsa public/private key by the system. The private key are kept by the system and never are release, however, through some HTTPS API we are able to recieve public key in binary

RE: Need help please: calculate SHA256.

2009-07-09 Thread Bizhan Gholikhamseh (bgholikh)
ase: calculate SHA256. > > On Wed, Jul 08, 2009, Bizhan Gholikhamseh (bgholikh) wrote: > > > > > > > > I have a text file, let us call it test.tx, which I > need to send > > > > it through a secure mechanism to a remote site. > > > > I have

RE: Need help please: calculate SHA256.

2009-07-09 Thread Bizhan Gholikhamseh (bgholikh)
: Need help please: calculate SHA256. > > > -Original Message- > > From: owner-openssl-us...@openssl.org > > [mailto:owner-openssl-us...@openssl.org] On Behalf Of Bizhan > > Gholikhamseh (bgholikh) > > Sent: Wednesday, July 08, 2009 5:38 PM > > To: op

RE: Need help please: calculate SHA256.

2009-07-08 Thread Bizhan Gholikhamseh (bgholikh)
> > > I have a text file, let us call it test.tx, which I need to send it > > through a secure mechanism to a remote site. > > I have already created a pair of public and private rsa key using > > openssl. > > I want to use openssl to generate a sha256 hash digest of the text > > file, i.e. tes

RE: Need help please: calculate SHA256.

2009-07-08 Thread Bizhan Gholikhamseh (bgholikh)
> -Original Message- > From: owner-openssl-us...@openssl.org > [mailto:owner-openssl-us...@openssl.org] On Behalf Of David Schwartz > Sent: Wednesday, July 08, 2009 3:05 PM > To: openssl-users@openssl.org > Subject: RE: Need help please: calculate SHA256. > > > Bizhan Gholikhamseh wro

Need help please: calculate SHA256.

2009-07-08 Thread Bizhan Gholikhamseh (bgholikh)
Hi all, I have an image that I need to calculate SHA256 has digest of image and encrypt the hash digest using my private key to generate image signature. Could someone please let me know how to use openssl to do this? Many thanks in advance, Biz ___

Newbie question: how could I sign an image

2009-07-08 Thread Bizhan Gholikhamseh (bgholikh)
HI All, How could I sign an image using SHA256 or RSA? Thanks, B __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manag

Question: how to sign an image

2009-07-07 Thread Bizhan Gholikhamseh (bgholikh)
Hi All, I am new to openssl. I have created an rsa key: $openssl genrsa -des3 2048 >mykey.key Now I need to sign the SHA-256 digest of an image with this key. What is the command line to use openssl? Many thanks in advance, Bizhan

RE: Newbie questions: generating RSA PGP private & Public key pair

2009-06-19 Thread Bizhan Gholikhamseh (bgholikh)
mplements CAST. (the -des3 > tells it to use triple-DES; you can instead use -aes256 to > use AES at 256 bits.) > > -Kyle H > > On Thu, Jun 18, 2009 at 4:45 PM, Bizhan Gholikhamseh > (bgholikh) wrote: > > HI > > I have never used openssl and need to get some info

Newbie questions: generating RSA PGP private & Public key pair

2009-06-18 Thread Bizhan Gholikhamseh (bgholikh)
HI I have never used openssl and need to get some info quickly. I greatly appreciate if you could help me out by providing me exact command syntax. I am suppose to create "2048-bit RSA PGP private & public key pair". With a preferred CAST cipher and SHA-2 256 hash. Could I use openssl to do this

test

2009-06-18 Thread Bizhan Gholikhamseh (bgholikh)
test __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org