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 a

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

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

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 we are able to

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: 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 hl=2

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