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

Side by Side Diff: content/child/webcrypto/openssl/aes_kw_openssl.cc

Issue 379383002: Refactor WebCrypto code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase onto master (no longer has BoringSSL) Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/logging.h"
6 #include "content/child/webcrypto/openssl/aes_key_openssl.h"
7 #include "content/child/webcrypto/status.h"
8
9 namespace content {
10
11 namespace webcrypto {
12
13 namespace {
14
15 class AesKwImplementation : public AesAlgorithm {
16 public:
17 AesKwImplementation() : AesAlgorithm("KW") {}
18
19 virtual Status Encrypt(const blink::WebCryptoAlgorithm& algorithm,
20 const blink::WebCryptoKey& key,
21 const CryptoData& data,
22 std::vector<uint8>* buffer) const OVERRIDE {
23 // TODO(eroman):
24 return Status::ErrorUnsupported();
25 }
26
27 virtual Status Decrypt(const blink::WebCryptoAlgorithm& algorithm,
28 const blink::WebCryptoKey& key,
29 const CryptoData& data,
30 std::vector<uint8>* buffer) const OVERRIDE {
31 // TODO(eroman):
32 return Status::ErrorUnsupported();
33 }
34 };
35
36 } // namespace
37
38 AlgorithmImplementation* CreatePlatformAesKwImplementation() {
39 return new AesKwImplementation;
40 }
41
42 } // namespace webcrypto
43
44 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/openssl/aes_key_openssl.cc ('k') | content/child/webcrypto/openssl/hmac_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698