#include <stdint.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <utility>#include <vector>#include <gtest/gtest.h>#include <openssl/bytestring.h>#include <openssl/crypto.h>#include <openssl/digest.h>#include <openssl/err.h>#include <openssl/pkcs8.h>#include <openssl/rsa.h>#include "../internal.h"#include "../test/test_util.h"
Go to the source code of this file.
| Functions | |
| static void | ExpectECGroupAndKey (const EVP_PKEY *pkey, int nid) | 
| static void | ExpectECGroupOnly (const EVP_PKEY *pkey, int nid) | 
| static bssl::UniquePtr< EVP_PKEY > | LoadExampleRSAKey () | 
| static bssl::UniquePtr< EVP_PKEY > | ParsePrivateKey (int type, const uint8_t *in, size_t len) | 
| TEST (EVPExtraTest, BadECKey) | |
| TEST (EVPExtraTest, d2i_AutoPrivateKey) | |
| TEST (EVPExtraTest, d2i_PrivateKey) | |
| TEST (EVPExtraTest, DigestSignInit) | |
| TEST (EVPExtraTest, DigestVerifyInit) | |
| TEST (EVPExtraTest, ECKeygen) | |
| TEST (EVPExtraTest, Ed25519) | |
| TEST (EVPExtraTest, Ed25519Keygen) | |
| TEST (EVPExtraTest, MarshalEmptyPublicKey) | |
| TEST (EVPExtraTest, VerifyRecover) | |
| static void | TestValidPrivateKey (const uint8_t *input, size_t input_len, int expected_id) | 
| Variables | |
| static const uint8_t | kExampleBadECKeyDER [] | 
| static const uint8_t | kExampleBadECKeyDER2 [] | 
| static const uint8_t | kExampleDSAKeyDER [] | 
| static const uint8_t | kExampleECKeyDER [] | 
| static const uint8_t | kExampleECKeyPKCS8 [] | 
| static const uint8_t | kExampleECKeySpecifiedCurvePKCS8 [] | 
| static const uint8_t | kExampleRSAKeyDER [] | 
| static const uint8_t | kExampleRSAKeyPKCS8 [] | 
| static const uint8_t | kInvalidPrivateKey [] | 
| static const uint8_t | kMsg [] = {1, 2, 3, 4} | 
| static const uint8_t | kSignature [] | 
Definition at line 713 of file evp_extra_test.cc.
Definition at line 703 of file evp_extra_test.cc.
| 
 | static | 
Definition at line 363 of file evp_extra_test.cc.
| 
 | static | 
Definition at line 505 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| BadECKey | |||
| ) | 
Definition at line 482 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| d2i_AutoPrivateKey | |||
| ) | 
Definition at line 461 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| d2i_PrivateKey | |||
| ) | 
Definition at line 517 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| DigestSignInit | |||
| ) | 
Definition at line 376 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| DigestVerifyInit | |||
| ) | 
Definition at line 404 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| ECKeygen | |||
| ) | 
Definition at line 723 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| Ed25519 | |||
| ) | 
Definition at line 544 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| Ed25519Keygen | |||
| ) | 
Definition at line 761 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| MarshalEmptyPublicKey | |||
| ) | 
Definition at line 495 of file evp_extra_test.cc.
| TEST | ( | EVPExtraTest | , | 
| VerifyRecover | |||
| ) | 
Definition at line 415 of file evp_extra_test.cc.
Definition at line 452 of file evp_extra_test.cc.
Definition at line 314 of file evp_extra_test.cc.
Definition at line 330 of file evp_extra_test.cc.
Definition at line 92 of file evp_extra_test.cc.
Definition at line 243 of file evp_extra_test.cc.
Definition at line 259 of file evp_extra_test.cc.
Definition at line 277 of file evp_extra_test.cc.
Definition at line 38 of file evp_extra_test.cc.
Definition at line 185 of file evp_extra_test.cc.
Definition at line 349 of file evp_extra_test.cc.
Definition at line 167 of file evp_extra_test.cc.
Definition at line 169 of file evp_extra_test.cc.