#include <openssl/rsa.h>#include <stdlib.h>#include <string.h>#include <gtest/gtest.h>#include <openssl/bn.h>#include <openssl/bytestring.h>#include <openssl/crypto.h>#include <openssl/err.h>#include <openssl/nid.h>#include "../fipsmodule/bn/internal.h"#include "../fipsmodule/rsa/internal.h"#include "../internal.h"#include "../test/test_util.h"
Go to the source code of this file.
Classes | |
| struct | RSAEncryptParam |
| class | RSAEncryptTest |
Functions | |
| INSTANTIATE_TEST_SUITE_P (All, RSAEncryptTest, testing::ValuesIn(kRSAEncryptParams)) | |
| TEST (RSATest, ASN1) | |
| TEST (RSATest, BadExponent) | |
| TEST (RSATest, BadKey) | |
| TEST (RSATest, BlindingDisabled) | |
| TEST (RSATest, CheckFIPS) | |
| TEST (RSATest, CheckKey) | |
| TEST (RSATest, DecryptPublic) | |
| TEST (RSATest, GenerateFIPS) | |
| TEST (RSATest, GenerateSmallKey) | |
| TEST (RSATest, KeygenFail) | |
| TEST (RSATest, KeygenFailOnce) | |
| TEST (RSATest, KeygenInternalRetry) | |
| TEST (RSATest, OnlyDGiven) | |
| TEST (RSATest, RoundKeyLengths) | |
| TEST (RSATest, SqrtTwo) | |
| TEST (RSATest, TestDecrypt) | |
| TEST_P (RSAEncryptTest, TestKey) | |
Variables | |
| static const uint8_t | kEstonianRSAKey [] |
| static const uint8_t | kExponent1RSAKey [] |
| static const uint8_t | kFIPSKey [] |
| static const uint8_t | kFIPSPublicKey [] |
| static const uint8_t | kKey1 [] |
| static const uint8_t | kKey2 [] |
| static const uint8_t | kKey3 [] |
| static const uint8_t | kOAEPCiphertext1 [] |
| static const uint8_t | kOAEPCiphertext2 [] |
| static const uint8_t | kOAEPCiphertext3 [] |
| static const uint8_t | kPlaintext [] = "\x54\x85\x9b\x34\x2c\x49\xea\x2a" |
| static const size_t | kPlaintextLen = sizeof(kPlaintext) - 1 |
| struct RSAEncryptParam | kRSAEncryptParams [] |
| static const uint8_t | kTwoPrimeEncryptedMessage [] |
| static const uint8_t | kTwoPrimeKey [] |
| INSTANTIATE_TEST_SUITE_P | ( | All | , |
| RSAEncryptTest | , | ||
| testing::ValuesIn(kRSAEncryptParams) | |||
| ) |
| TEST | ( | RSATest | , |
| ASN1 | |||
| ) |
Definition at line 590 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| BadExponent | |||
| ) |
Definition at line 635 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| BadKey | |||
| ) |
Definition at line 521 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| BlindingDisabled | |||
| ) |
Definition at line 683 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| CheckFIPS | |||
| ) |
Definition at line 482 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| CheckKey | |||
| ) |
Definition at line 717 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| DecryptPublic | |||
| ) |
Definition at line 702 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| GenerateFIPS | |||
| ) |
Definition at line 495 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| GenerateSmallKey | |||
| ) |
Definition at line 643 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| KeygenFail | |||
| ) |
Definition at line 907 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| KeygenFailOnce | |||
| ) |
Definition at line 968 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| KeygenInternalRetry | |||
| ) |
Definition at line 995 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| OnlyDGiven | |||
| ) |
Definition at line 545 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| RoundKeyLengths | |||
| ) |
Definition at line 657 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| SqrtTwo | |||
| ) |
Definition at line 1025 of file rsa_test.cc.
| TEST | ( | RSATest | , |
| TestDecrypt | |||
| ) |
Definition at line 467 of file rsa_test.cc.
| TEST_P | ( | RSAEncryptTest | , |
| TestKey | |||
| ) |
Definition at line 398 of file rsa_test.cc.
Definition at line 331 of file rsa_test.cc.
Definition at line 359 of file rsa_test.cc.
Definition at line 107 of file rsa_test.cc.
Definition at line 143 of file rsa_test.cc.
Definition at line 86 of file rsa_test.cc.
Definition at line 162 of file rsa_test.cc.
Definition at line 187 of file rsa_test.cc.
Definition at line 155 of file rsa_test.cc.
Definition at line 181 of file rsa_test.cc.
Definition at line 225 of file rsa_test.cc.
Definition at line 82 of file rsa_test.cc.
|
static |
Definition at line 83 of file rsa_test.cc.
| struct RSAEncryptParam kRSAEncryptParams[] |
Definition at line 304 of file rsa_test.cc.
Definition at line 235 of file rsa_test.cc.