C4eRsaKeyPrv Struct Reference
[RSA]
RSA private key.
More...
#include <c4e_rsa.h>
Detailed Description
RSA private key.
- Note:
- For import of big numbers the function c4e_elem_os2e() may be useful.
- Precondition:
- For proper working of RSA functions C4eRsaKeyPrv must meet the following constraints (you may use c4e_rsa_keychk_prv() to check the first four):
- All big numbers must be unequal to zero.
- The modulus dom->m.val and the two primes d.p.z, d.q.z must be odd.
- The modulus dom->m.val must be greater than 1 and comply with .
- The CRT coefficients must fit the following relations:
- ;
- ;
- .
- All big numbers must be normalized, e.g. by using functions c4e_elem_norm() or c4e_elem_os2e().
- The RSA key must be generated exactly with the size indicated in member m.len of C4eDlcDomain.
- See also:
- C4eElement, C4E_ELEM_ASGN_MEM()
Definition at line 70 of file c4e_rsa.h.
Field Documentation
p holds a pointer to the first (secret) prime of in C4eElemTriple::z. There must be at least space for dom->m.val.size digits in p.z. The other two members of p are for internal use only and must not be defined when using any RSA function from external API.
Definition at line 88 of file c4e_rsa.h.
q holds numbers associated with the second (secret) prime of :
- C4eElemTriple::z is the prime number q, with maximum dom->m.val.size digits space required.
- C4eElemTriple::y holds the inverse (Bezout cofactor) , used in CRT. The maximum number of digits is C4E_MODN_POW_SPACE(dom->m.val.size).
- C4eElemTriple::x is for internal use only and must not be defined when using any RSA function from external API.
Definition at line 105 of file c4e_rsa.h.
The documentation for this struct was generated from the following file: