#include <basis/byte_array.h>#include <basis/chaos.h>#include <basis/function.h>#include <basis/istring.h>#include <mechanisms/time_stamp.h>#include <data_struct/static_memory_gremlin.h>#include <textual/string_manipulation.h>#include <openssl/crypto.h>#include <openssl/err.h>#include <openssl/rand.h>#include <openssl/rsa.h>#include <stdio.h>#include <string.h>Include dependency graph for rsa_test.cpp:

Go to the source code of this file.
Functions | |
| RSA * | generate_key () |
| const byte_array & | random_seed () |
| bool | rsa_public_encryption (RSA *key, const byte_array &source, byte_array &target) |
| bool | rsa_private_decryption (RSA *key, const byte_array &source, byte_array &target) |
| bool | rsa_private_encryption (RSA *key, const byte_array &source, byte_array &target) |
| bool | rsa_public_decryption (RSA *key, const byte_array &source, byte_array &target) |
| int | main (int formal(argc), char *formal(argv)[]) |
Variables | |
| HOOPLE_STARTUP_CODE | |
| const int | KEY_SIZE = 1024 |
| const int | TEST_RUNS = 100 |
| const int | SEED_SIZE = 100 |
| const int | MAX_STRING = 100000 |
| chaos | rando |
| RSA* generate_key | ( | ) |
| int main | ( | int | formal(argc), | |
| char * | formal(argv)[] | |||
| ) |
Definition at line 190 of file rsa_test.cpp.
References deadly_error, flip_increasing(), generate_key(), chaos::inclusive(), istring::length(), string_manipulation::make_random_name(), MAX_STRING, array< contents >::observe(), rando, random_seed(), time_stamp::reset(), rsa_private_decryption(), rsa_private_encryption(), rsa_public_decryption(), rsa_public_encryption(), istring::s(), SEED_SIZE, istring::substring(), TEST_RUNS, and time_stamp::value().
| const byte_array& random_seed | ( | ) |
| bool rsa_private_decryption | ( | RSA * | key, | |
| const byte_array & | source, | |||
| byte_array & | target | |||
| ) |
Definition at line 111 of file rsa_test.cpp.
References array< contents >::access(), array< contents >::last(), array< contents >::length(), array< contents >::reset(), and array< contents >::zap().
Referenced by main().
| bool rsa_private_encryption | ( | RSA * | key, | |
| const byte_array & | source, | |||
| byte_array & | target | |||
| ) |
Definition at line 142 of file rsa_test.cpp.
References array< contents >::access(), array< contents >::last(), array< contents >::length(), and array< contents >::reset().
Referenced by main().
| bool rsa_public_decryption | ( | RSA * | key, | |
| const byte_array & | source, | |||
| byte_array & | target | |||
| ) |
Definition at line 163 of file rsa_test.cpp.
References array< contents >::access(), array< contents >::last(), array< contents >::length(), array< contents >::reset(), and array< contents >::zap().
Referenced by main().
| bool rsa_public_encryption | ( | RSA * | key, | |
| const byte_array & | source, | |||
| byte_array & | target | |||
| ) |
Definition at line 90 of file rsa_test.cpp.
References array< contents >::access(), array< contents >::last(), array< contents >::length(), and array< contents >::reset().
Referenced by main().
Definition at line 36 of file rsa_test.cpp.
| const int KEY_SIZE = 1024 |
Definition at line 38 of file rsa_test.cpp.
| const int MAX_STRING = 100000 |
Definition at line 47 of file rsa_test.cpp.
Definition at line 50 of file rsa_test.cpp.
| const int SEED_SIZE = 100 |
Definition at line 44 of file rsa_test.cpp.
| const int TEST_RUNS = 100 |
Definition at line 41 of file rsa_test.cpp.
1.5.1