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

Unified Diff: crypto/hmac.h

Issue 8949056: This adds support for encrypted ONC import (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed merge Created 8 years, 11 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 | « chrome/browser/policy/configuration_policy_handler_chromeos.cc ('k') | crypto/hmac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/hmac.h
diff --git a/crypto/hmac.h b/crypto/hmac.h
index b170ce75fa0e4d185c3988d28b9508e903a09af6..0abbb98b87acae40966453df25c233e1d5fcd689 100644
--- a/crypto/hmac.h
+++ b/crypto/hmac.h
@@ -19,6 +19,7 @@ namespace crypto {
// Simplify the interface and reduce includes by abstracting out the internals.
struct HMACPlatformData;
+class SymmetricKey;
class CRYPTO_EXPORT HMAC {
public:
@@ -41,6 +42,10 @@ class CRYPTO_EXPORT HMAC {
// TODO(abarth): key_length should be a size_t.
bool Init(const unsigned char* key, int key_length) WARN_UNUSED_RESULT;
+ // Initializes this instance using |key|. Call Init
+ // only once. It returns false on the second or later calls.
+ bool Init(SymmetricKey* key) WARN_UNUSED_RESULT;
+
// Initializes this instance using |key|. Call Init only once. It returns
// false on the second or later calls.
bool Init(const base::StringPiece& key) WARN_UNUSED_RESULT {
« no previous file with comments | « chrome/browser/policy/configuration_policy_handler_chromeos.cc ('k') | crypto/hmac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698