summaryrefslogtreecommitdiff
path: root/examples/rsa-encrypt.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2004-01-09 23:02:59 +0100
committerNiels Möller <nisse@lysator.liu.se>2004-01-09 23:02:59 +0100
commit3adff46ec38921d2f6d543bdb4871eb9af50ff28 (patch)
tree9872edc863f595eec1604172ccb46fc24bbd8baa /examples/rsa-encrypt.c
parent38c7d4dcc2285d96d41e1cf0c07fca86c0605970 (diff)
downloadnettle-3adff46ec38921d2f6d543bdb4871eb9af50ff28.tar.gz
Expanded the
comment describing the file format, and moved to rsa-session.h. Rev: src/nettle/examples/rsa-encrypt.c:1.3 Rev: src/nettle/examples/rsa-session.h:1.2
Diffstat (limited to 'examples/rsa-encrypt.c')
-rw-r--r--examples/rsa-encrypt.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/examples/rsa-encrypt.c b/examples/rsa-encrypt.c
index 0e9ab59c..e3f3c351 100644
--- a/examples/rsa-encrypt.c
+++ b/examples/rsa-encrypt.c
@@ -21,32 +21,6 @@
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
-
-/* Encryption program using the following file format:
-
- uint32_t version = 1;
- uint32_t xsize;
- uint8_t x[xsize];
- uint8_t encrypted[n];
- uint8_t hmac[SHA1_DIGEST_SIZE];
-
- "x" is the data
-
- uint32_t version = 1;
- uint8_t aes_key[AES_KEY_SIZE];
- uint8_t iv[AES_BLOCK_SIZE];
- uint8_t hmac_key[SHA1_DIGEST_SIZE];
-
- of size (4 + AES_KEY_SIZE + AES_BLOCK_SIZE + SHA1_DIGEST_SIZE) = 72
- bytes, encrypted using rsa-pkcs1.
-
- "encrypted" is the cleartext processed with aes-cbc. The final block is padded as
-
- | data | random octets | padding length |
-
- where the last octet is the padding length, a number between 1 and
- AES_BLOCK_SIZE (inclusive).
-*/
#if HAVE_CONFIG_H
# include "config.h"