-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
595 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _ec: | ||
|
||
Elliptic Curves | ||
================ | ||
|
||
.. raw:: html | ||
|
||
<p style="background:rgba(176,196,222,.5); padding:10px; font-family:Arial; margin:20px 0;"><span style="font-weight:bold;">Module Functionality</span><br />Provides elliptic curve cryptography—generation of public/private keypairs, the diffie-hellman key exchange protocol, and digital signature algorithm.</p> | ||
|
||
Macros | ||
_______ | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_PRIVKEY | ||
:project: CryptX | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_PUBKEY | ||
:project: CryptX | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_SECRET | ||
:project: CryptX | ||
|
||
Response Codes | ||
_______________ | ||
|
||
.. doxygenenum:: ec_error_t | ||
:project: CryptX | ||
|
||
Functions | ||
___________ | ||
|
||
.. doxygenfunction:: cryptx_ec_keygen | ||
:project: CryptX | ||
|
||
.. doxygenfunction:: cryptx_ec_secret | ||
:project: CryptX |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
.. _rsa: | ||
|
||
function documentation: RSA | ||
=============================== | ||
RSA | ||
==== | ||
|
||
.. raw:: html | ||
|
||
<p style="background:rgba(176,196,222,.5); padding:10px; font-family:Arial; margin:20px 0;"><span style="font-weight:bold;">Module Functionality</span><br />Provides an encryption-only implemention of the Rivest-Shamir Adleman (RSA) public key encrytion system. RSA is still widely used at the start of an encrypted connection to negotiate a secret for a faster encryption algorithm like AES.</p> | ||
|
||
Macros | ||
_________ | ||
|
||
.. doxygendefine:: CRYPTX_RSA_MODULUS_MAX | ||
:project: CryptX | ||
|
||
Response Codes | ||
_______________ | ||
|
||
.. doxygenenum:: rsa_error_t | ||
:project: CryptX | ||
|
||
|
||
Functions | ||
____________ | ||
|
||
.. doxygenfunction:: cryptx_rsa_encrypt | ||
:project: CryptX | ||
|
||
Notes | ||
______ | ||
|
||
(1) This implementation automatically applies Optimal Asymmetric Encryption Padding (OAEP) v2.2 encoding to the message. The length of the plaintext message to encrypt cannot exceed :code:`len(public_modulus) - (2 * chosen_hash_digestlen) - 2`. | ||
|
||
(2) The length of the ciphertext returned is the same length as the public modulus used for encryption. This means you can allocate/reserve a buffer of that size, or just use the macro defined above for the maximum length. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _ec: | ||
|
||
Elliptic Curves | ||
================ | ||
|
||
.. raw:: html | ||
|
||
<p style="background:rgba(176,196,222,.5); padding:10px; font-family:Arial; margin:20px 0;"><span style="font-weight:bold;">Module Functionality</span><br />Provides elliptic curve cryptography—generation of public/private keypairs, the diffie-hellman key exchange protocol, and digital signature algorithm.</p> | ||
|
||
Macros | ||
_______ | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_PRIVKEY | ||
:project: CryptX | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_PUBKEY | ||
:project: CryptX | ||
|
||
.. doxygendefine:: CRYPTX_KEYLEN_EC_SECRET | ||
:project: CryptX | ||
|
||
Response Codes | ||
_______________ | ||
|
||
.. doxygenenum:: ec_error_t | ||
:project: CryptX | ||
|
||
Functions | ||
___________ | ||
|
||
.. doxygenfunction:: cryptx_ec_keygen | ||
:project: CryptX | ||
|
||
.. doxygenfunction:: cryptx_ec_secret | ||
:project: CryptX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
.. _rsa: | ||
|
||
function documentation: RSA | ||
=============================== | ||
RSA | ||
==== | ||
|
||
.. raw:: html | ||
|
||
<p style="background:rgba(176,196,222,.5); padding:10px; font-family:Arial; margin:20px 0;"><span style="font-weight:bold;">Module Functionality</span><br />Provides an encryption-only implemention of the Rivest-Shamir Adleman (RSA) public key encrytion system. RSA is still widely used at the start of an encrypted connection to negotiate a secret for a faster encryption algorithm like AES.</p> | ||
|
||
Macros | ||
_________ | ||
|
||
.. doxygendefine:: CRYPTX_RSA_MODULUS_MAX | ||
:project: CryptX | ||
|
||
Response Codes | ||
_______________ | ||
|
||
.. doxygenenum:: rsa_error_t | ||
:project: CryptX | ||
|
||
|
||
Functions | ||
____________ | ||
|
||
.. doxygenfunction:: cryptx_rsa_encrypt | ||
:project: CryptX | ||
|
||
Notes | ||
______ | ||
|
||
(1) This implementation automatically applies Optimal Asymmetric Encryption Padding (OAEP) v2.2 encoding to the message. The length of the plaintext message to encrypt cannot exceed :code:`len(public_modulus) - (2 * chosen_hash_digestlen) - 2`. | ||
|
||
(2) The length of the ciphertext returned is the same length as the public modulus used for encryption. This means you can allocate/reserve a buffer of that size, or just use the macro defined above for the maximum length. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.