Click here to Skip to main content
15,913,773 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: creating exe Pin
Dave Kreskowiak1-Aug-11 1:35
mveDave Kreskowiak1-Aug-11 1:35 
GeneralRe: creating exe Pin
Edward Giles3-Sep-11 20:28
Edward Giles3-Sep-11 20:28 
AnswerRe: creating exe Pin
Pravin Patil, Mumbai28-Jul-11 21:28
Pravin Patil, Mumbai28-Jul-11 21:28 
AnswerRe: creating exe Pin
Not Active29-Jul-11 6:26
mentorNot Active29-Jul-11 6:26 
AnswerRe: creating exe Pin
Abhinav S30-Jul-11 2:26
Abhinav S30-Jul-11 2:26 
QuestionHow to call a web service in a Smart Device Project ? Pin
rashmita pal26-Jul-11 19:12
rashmita pal26-Jul-11 19:12 
AnswerRe: How to call a web service in a Smart Device Project ? Pin
Eddy Vluggen28-Jul-11 8:39
professionalEddy Vluggen28-Jul-11 8:39 
QuestionOpenSSL (cpp) .net RSA key exchange Pin
Volker Biermann25-Jul-11 3:38
Volker Biermann25-Jul-11 3:38 
Hello,
I have a problem concerning OpenSSL and dotnet encryption. I would like to transform a RSA public and private key generated by OpenSSL into a dotnet one. This key is then used for further actions. For security reasons the usage of an external keystore or keyfile is not a solution. I have included a small part of an old cpp code I have to use and have marked two lines where I think it is possible to export the keys. The RSA key structure comes from an extenal PKI server. In fact the PKI server delivers an array of public keys for selected users when sending a message. The private key for each user is always stored local. Could one help me?

Thanks a lot for your help
Volker


############## start code ##############
typedef struct _KEY_POINT 
{
                unsigned short size;
                unsigned short key_size;
                unsigned long crc;
                unsigned char key_data[1];
} KEY_POINT, * PKEY_POINT;

unsigned char * encryptRSA( const unsigned char * pSrcBuffer,
                            unsigned long * pBufferSize,
                            const PKEY_POINT pPublicKey)
{
RSA * pRsa = NULL;
// ------------- snip ---------------------------------------------------------
                unsigned char * pPublic_data = pPublicKey->key_data;
                pRsa = d2i_RSAPublicKey(&pRsa, (const unsigned char **)&pPublic_data, pPublicKey->key_size);
// Here chance to export *pRsa as .net public keye e.g. as string (base 64 encoded)
// ------------- snip ---------------------------------------------------------
}

unsigned char * decryptRSA( const unsigned char * pSrcBuffer,
                            unsigned long * pBufferSize,
                            const PKEY_POINT pPrivateKey)
{
RSA * pRsa = NULL;
// ------------- snip ---------------------------------------------------------
                unsigned char * pPublic_data = pPublicKey->key_data;
                pRsa = d2i_RSAPrivateKey(&pRsa, (const unsigned char **)&pPublic_data, pPublicKey->key_size);
// Here chance to export *pRsa as .net private key e.g. as string (base 64 encoded)
// ------------- snip ---------------------------------------------------------
}

############## end code ##############
Questionhow to build a hierarchy with binding list. Pin
dessiymartin25-Jul-11 0:27
dessiymartin25-Jul-11 0:27 
AnswerRe: how to build a hierarchy with binding list. Pin
robertalis26-Jul-11 1:34
robertalis26-Jul-11 1:34 
QuestionSource: .Net Runtime 2.0 Error , EventID:5000, Eventtype: clr20r3 P4 mysql.data P5 5.0.7.0,P6 464b5d79,P7 21c,P8 76,P9 mysql.data.mysqlclient.mysql, P10 NIL. Pin
surender.m21-Jul-11 21:01
surender.m21-Jul-11 21:01 
AnswerCROSSPOST` Pin
Dave Kreskowiak22-Jul-11 8:04
mveDave Kreskowiak22-Jul-11 8:04 
AnswerRe: Source: .Net Runtime 2.0 Error , EventID:5000, Eventtype: clr20r3 P4 mysql.data P5 5.0.7.0,P6 464b5d79,P7 21c,P8 76,P9 mysql.data.mysqlclient.mysql, P10 NIL. Pin
surender.m27-Jul-11 20:25
surender.m27-Jul-11 20:25 
QuestionHow can i dynamic increaseTable's Column for RDLC. Pin
ZhiLiangLin18-Jul-11 15:27
ZhiLiangLin18-Jul-11 15:27 
AnswerRe: How can i dynamic increaseTable's Column for RDLC. Pin
ZhiLiangLin18-Jul-11 23:39
ZhiLiangLin18-Jul-11 23:39 
QuestionPixel Shader Pin
Mehdi Ghiasi14-Jul-11 23:45
Mehdi Ghiasi14-Jul-11 23:45 
QuestionDataBindings, BindingContext's, CurrencyManagers etc... Pin
paper6714-Jul-11 5:19
paper6714-Jul-11 5:19 
AnswerRe: DataBindings, BindingContext's, CurrencyManagers etc... Pin
RobCroll26-Jul-11 19:02
RobCroll26-Jul-11 19:02 
QuestionCan I derive a new chart control from MSChart? Pin
spainchaud12-Jul-11 5:11
spainchaud12-Jul-11 5:11 
AnswerRe: Can I derive a new chart control from MSChart? Pin
Not Active12-Jul-11 5:26
mentorNot Active12-Jul-11 5:26 
GeneralRe: Can I derive a new chart control from MSChart? Pin
spainchaud12-Jul-11 7:58
spainchaud12-Jul-11 7:58 
GeneralRe: Can I derive a new chart control from MSChart? Pin
Not Active12-Jul-11 9:04
mentorNot Active12-Jul-11 9:04 
GeneralRe: Can I derive a new chart control from MSChart? Pin
spainchaud12-Jul-11 9:50
spainchaud12-Jul-11 9:50 
GeneralRe: Can I derive a new chart control from MSChart? Pin
Not Active12-Jul-11 10:14
mentorNot Active12-Jul-11 10:14 
GeneralRe: Can I derive a new chart control from MSChart? Pin
spainchaud12-Jul-11 12:42
spainchaud12-Jul-11 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.