Date sent:              Mon, 30 Apr 2001 18:01:22 -0400
From:                   Gila Sheftel <[EMAIL PROTECTED]>
Organization:           Gemplus Inc.
To:                     [EMAIL PROTECTED]
Subject:                Where are the low-level crypto functions implemented?
Send reply to:          [EMAIL PROTECTED]

Gila

The rsa structure contains a pointer to the low level functions, and in 
fact one of the defaults is the one you show below.  You can place 
your own function pointers in the rsa structure if you so desire.  In 
fact that is what I do to interface to the GemPLUS Smart Card with 
our software.  In our case, we have to be able to process both disk 
based as well as Smart Card based RSA keys, and this is where we 
do the intercept.  I am sure there are other/better ways using 
"engines" and methods, etc. but this is a quick simple way to do it, 
and still use all the other SSL/crypto support without having to have 
multiple libraries.

Ken

Hi, 

Our purpose is to write an add-on to openSSL in order to interface it
safely and comprehensively with a smartcard.

My teammate and I have come a long way in understanding the high-level
cryptography structure -- where the methods are found, how to use them,
etc, but where we get stuck is the following:

for example, in openssl-0.9.6a/crypto/rsa/rsa.h the following methods
are mentioned:

int (*rsa_pub_enc)(int flen,unsigned char *from,unsigned char *to,
                           RSA *rsa,int padding);
int (*rsa_pub_dec)(int flen,unsigned char *from,unsigned char *to,
                           RSA *rsa,int padding);

And they are again mentioned in rsa_lib.c where

int RSA_public_encrypt(int flen, unsigned char *from, unsigned char *to,
             RSA *rsa, int padding)

returns it, but that's all. Are we missing something? Where are all the
low-level methods defined? Are they system-native or protected or have I
overlooked something entirely?

I appreciate your help immensely,
(let alone how much I learn just from lurking on this list)
Gila. (Monstre) 
--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--=--
Gila Monstre                          [EMAIL PROTECTED]     
Fearless Geek                                    (514)732-2459
Advanced Projects Group                       Gemplus Software

If you can't beat your computer at chess, try kickboxing.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]
__________________________________________________
Support
InterSoft International, Inc.
Voice: 888-823-1541, International 281-398-7060
Fax: 888-823-1542, International 281-560-9170
[EMAIL PROTECTED]
http://www.securenetterm.com
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to