LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-14-2006, 05:48 AM   #1
sapana
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Rep: Reputation: 0
RSA implementation in openssl-0.9.8-a


I am trying to understand implementation of rsa in opensssl.
I came across this structure in rsa.h file (openssl/crypto/rsa) -:


struct rsa_meth_st
{
const char *name;
int (*rsa_pub_enc)(int flen,const unsigned char *from,
unsigned char *to,
RSA *rsa,int padding);
};


But I couldnot find implementation of this function anywhere.

If anyone could please help me.

Thanks a lot.
 
Old 02-16-2006, 07:22 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,450

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi

You're thinking of "rsa_pub_enc" right? The way I read it, it's a pointer to a function, not a declaration. So most likely, you will have several different implementations, if you grep for it, you might see stuff like

struct rsa_meth_st smth;
/* set function pointer */
smth.rsa_pub_enc = some_function_name;
/* call it */
smth.rsa_pub_enc(...);

grepping for "rsa_pub_enc = " might give you all functions, and all those functions should have implementations.

Hope this helps,
Guttorm
 
Old 02-21-2006, 07:50 AM   #3
sapana
LQ Newbie
 
Registered: Jan 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Guttorm. I got the functions that implements it through grep.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH RSA Auth lil_drummaboy Linux - Networking 2 11-27-2005 06:42 PM
How to RSA authentication ERBRMN Linux - Security 11 07-29-2005 11:22 AM
ssh RSA key thanat0s Linux - Security 3 09-29-2003 09:51 PM
Rsa rch General 0 05-19-2003 03:47 AM
RSA vs DSA??? dm0nkz Slackware 1 02-06-2003 11:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration