diff options
author | eroman <eroman@chromium.org> | 2014-11-26 11:59:53 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-26 20:00:17 +0000 |
commit | 1499b4948559e1c3d04beb9980dec9da36f9d4af (patch) | |
tree | 4dbc8ff2ba60f3052af6e5232013edfc4801642b /content/child/webcrypto/algorithm_implementation.h | |
parent | 7ef5b365909cb4ad156d515f8b091c7059aba798 (diff) | |
download | chromium_src-1499b4948559e1c3d04beb9980dec9da36f9d4af.zip chromium_src-1499b4948559e1c3d04beb9980dec9da36f9d4af.tar.gz chromium_src-1499b4948559e1c3d04beb9980dec9da36f9d4af.tar.bz2 |
Add the method DeriveBits to AlgorithmImplementation.
And wire it up to WebCryptoImplementation.
BUG=399093
Review URL: https://codereview.chromium.org/744993002
Cr-Commit-Position: refs/heads/master@{#305863}
Diffstat (limited to 'content/child/webcrypto/algorithm_implementation.h')
-rw-r--r-- | content/child/webcrypto/algorithm_implementation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/child/webcrypto/algorithm_implementation.h b/content/child/webcrypto/algorithm_implementation.h index ba40d66..2726137 100644 --- a/content/child/webcrypto/algorithm_implementation.h +++ b/content/child/webcrypto/algorithm_implementation.h @@ -81,6 +81,12 @@ class AlgorithmImplementation { blink::WebCryptoKeyUsageMask usages, GenerateKeyResult* result) const; + // This method corresponds to Web Crypto's "derive bits" operation. + virtual Status DeriveBits(const blink::WebCryptoAlgorithm& algorithm, + const blink::WebCryptoKey& base_key, + unsigned int length_bits, + std::vector<uint8_t>* derived_bytes) const; + // ----------------------------------------------- // Key import // ----------------------------------------------- |