summaryrefslogtreecommitdiffstats
path: root/crypto/rsa_private_key.h
diff options
context:
space:
mode:
authorthestig <thestig@chromium.org>2015-09-24 12:53:21 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-24 19:55:47 +0000
commit92619caa27a1b8aca56b46b0e25fbf2b85a02898 (patch)
tree0d200cbb1e0475b8a6fb8b2096450418800043f1 /crypto/rsa_private_key.h
parent6282934a62f7b1416b677acad89a2880f2de201c (diff)
downloadchromium_src-92619caa27a1b8aca56b46b0e25fbf2b85a02898.zip
chromium_src-92619caa27a1b8aca56b46b0e25fbf2b85a02898.tar.gz
chromium_src-92619caa27a1b8aca56b46b0e25fbf2b85a02898.tar.bz2
Cleanup: Remove references to tests that no longer exists / are unused.
Review URL: https://codereview.chromium.org/1362223002 Cr-Commit-Position: refs/heads/master@{#350630}
Diffstat (limited to 'crypto/rsa_private_key.h')
-rw-r--r--crypto/rsa_private_key.h29
1 files changed, 9 insertions, 20 deletions
diff --git a/crypto/rsa_private_key.h b/crypto/rsa_private_key.h
index 637be38..fdcb392 100644
--- a/crypto/rsa_private_key.h
+++ b/crypto/rsa_private_key.h
@@ -5,18 +5,13 @@
#ifndef CRYPTO_RSA_PRIVATE_KEY_H_
#define CRYPTO_RSA_PRIVATE_KEY_H_
-#include "build/build_config.h"
-
#include <list>
#include <vector>
#include "base/basictypes.h"
+#include "build/build_config.h"
#include "crypto/crypto_export.h"
-#if defined(USE_NSS_CERTS)
-#include "base/gtest_prod_util.h"
-#endif
-
#if defined(USE_OPENSSL)
// Forward declaration for openssl/*.h
typedef struct evp_pkey_st EVP_PKEY;
@@ -34,7 +29,6 @@ namespace crypto {
// PKCS #8 PrivateKeyInfo and PublicKeyInfo.
class PrivateKeyInfoCodec {
public:
-
// ASN.1 encoding of the AlgorithmIdentifier from PKCS #8.
static const uint8 kRsaAlgorithmIdentifier[];
@@ -73,14 +67,14 @@ class PrivateKeyInfoCodec {
// Accessors to the contents of the integer components of the PrivateKeyInfo
// structure.
- std::vector<uint8>* modulus() { return &modulus_; };
- std::vector<uint8>* public_exponent() { return &public_exponent_; };
- std::vector<uint8>* private_exponent() { return &private_exponent_; };
- std::vector<uint8>* prime1() { return &prime1_; };
- std::vector<uint8>* prime2() { return &prime2_; };
- std::vector<uint8>* exponent1() { return &exponent1_; };
- std::vector<uint8>* exponent2() { return &exponent2_; };
- std::vector<uint8>* coefficient() { return &coefficient_; };
+ std::vector<uint8>* modulus() { return &modulus_; }
+ std::vector<uint8>* public_exponent() { return &public_exponent_; }
+ std::vector<uint8>* private_exponent() { return &private_exponent_; }
+ std::vector<uint8>* prime1() { return &prime1_; }
+ std::vector<uint8>* prime2() { return &prime2_; }
+ std::vector<uint8>* exponent1() { return &exponent1_; }
+ std::vector<uint8>* exponent2() { return &exponent2_; }
+ std::vector<uint8>* coefficient() { return &coefficient_; }
private:
// Utility wrappers for PrependIntegerImpl that use the class's |big_endian_|
@@ -208,11 +202,6 @@ class CRYPTO_EXPORT RSAPrivateKey {
bool ExportPublicKey(std::vector<uint8>* output) const;
private:
-#if defined(USE_NSS_CERTS)
- FRIEND_TEST_ALL_PREFIXES(RSAPrivateKeyNSSTest, FindFromPublicKey);
- FRIEND_TEST_ALL_PREFIXES(RSAPrivateKeyNSSTest, FailedFindFromPublicKey);
-#endif
-
// Constructor is private. Use one of the Create*() methods above instead.
RSAPrivateKey();