Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: crypto/aead_openssl.h

Issue 1909513003: Rename crypto/ *_openssl files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « crypto/aead.cc ('k') | crypto/aead_openssl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/aead_openssl.h
diff --git a/crypto/aead_openssl.h b/crypto/aead_openssl.h
deleted file mode 100644
index 3ba60419a30f7ae86671908dfa3a75719998fdce..0000000000000000000000000000000000000000
--- a/crypto/aead_openssl.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CRYPTO_AEAD_H_
-#define CRYPTO_AEAD_H_
-
-#include <stddef.h>
-
-#include "base/strings/string_piece.h"
-#include "crypto/crypto_export.h"
-
-struct evp_aead_st;
-
-namespace crypto {
-
-// This class exposes the AES-128-CTR-HMAC-SHA256 AEAD, currently only
-// for OpenSSL builds.
-class CRYPTO_EXPORT Aead {
- public:
- enum AeadAlgorithm { AES_128_CTR_HMAC_SHA256 };
-
- explicit Aead(AeadAlgorithm algorithm);
-
- ~Aead();
-
- void Init(const std::string* key);
-
- bool Seal(const base::StringPiece& plaintext,
- const base::StringPiece& nonce,
- const base::StringPiece& additional_data,
- std::string* ciphertext) const;
-
- bool Open(const base::StringPiece& ciphertext,
- const base::StringPiece& nonce,
- const base::StringPiece& additional_data,
- std::string* plaintext) const;
-
- size_t KeyLength() const;
-
- size_t NonceLength() const;
-
- private:
- const std::string* key_;
- const evp_aead_st* aead_;
-};
-
-} // namespace crypto
-
-#endif // CRYPTO_ENCRYPTOR_H_
« no previous file with comments | « crypto/aead.cc ('k') | crypto/aead_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698