473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

RSA keyblob size

skylab
1
Hi, this is my first post on this forum and I'm sorry if it isn't the right place to explain my problem.
I use CryptoAPI to encrypt data and the Algorithm is RSA. I need to save on disk the key pub/priv pair and this
work fine. The size of keyblob is 596 byte and I need to know why:
In the post at this address http://bytes.com/topic/c-sharp/answe...phertext-twice I read this code:

Expand|Select|Wrap|Line Numbers
  1. ...
  2. unsigned char *modulus = new unsigned char[128];
  3. unsigned char *prime1 = new unsigned char[64];
  4. unsigned char *prime2 = new unsigned char[64];
  5. unsigned char *exponent1 =new unsigned char[64];
  6. unsigned char *exponent2 = new unsigned char[64];
  7. unsigned char *coefficient = new unsigned char[64];
  8. unsigned char *privateExponent = new unsigned char[128];
  9. ...
The RSA theory says that i need: modulus (128 byte), prime1 (64 byte), prime2 (64 byte), publicExponent (or coefficient)(64 byte) and privateExponent (128 byte).
I don't understand the 2 variables: exponent1 and exponent2.

The sum of the 7 variables is 576 byte and I read in documentation that the blob header is 20 byte long. So 576 + 20 = 596 Byte long as I have in the keyblob on my disk.

Can someone explain me what are exponent1 and exponent2 and how I use it?

I'm sorry for my bad english.
Jun 9 '11 #1
0 1097

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Marti | last post by:
Dear everyone, Its my understanding that IE6 now uses a default text-size of "Small" rather than IE5's "Medium". Since I have used relative font-sizes (usually in ems) on all my sites, I am...
25
by: Matthias | last post by:
Hi, I am just reading that book by Scott Meyers. In Item 4 Meyers suggests to always use empty() instead of size() when probing for emptyness of STL containers. His reasoning is that size()...
9
by: Dr John Stockton | last post by:
Assuming default set-ups and considering all reasonable browsers, whatever that may mean, what should an author expect that his readers in general will see (with visual browsers) for a page with...
4
by: Erik Hendrix | last post by:
Hi, I have a quick question, when one sets the prefetch size = extent size, then when doing a backup we will have 1 agent (db2bm) doing the reads. If we have prefetch size a multiple of extent...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
4
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a...
2
by: Elmo Watson | last post by:
In HTML - for a textbox (input), I would use the 'Size' Attribute In an ASP.Net TextBox - I use 'Width' - - (like 200px) However, for other browsers - Other than IE - the size attribute isn't...
5
by: Pohihihi | last post by:
Why can't the following work when it has a set property defined? this.textBox1.Size.Width = 25; I get error Cannot modify the return value of 'System.Windows.Forms.Control.Size' because it is...
27
by: Deephay | last post by:
Greetings all, I have a program that used the realloc() function to change the allocated size of a buffer, the program works with some arguments, but with some other arguments, it will show me...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.