summaryrefslogtreecommitdiff
path: root/chromium/components/webcrypto/algorithms/aes.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/webcrypto/algorithms/aes.h')
-rw-r--r--chromium/components/webcrypto/algorithms/aes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/components/webcrypto/algorithms/aes.h b/chromium/components/webcrypto/algorithms/aes.h
index b7b0ad55961..0be65b8ee25 100644
--- a/chromium/components/webcrypto/algorithms/aes.h
+++ b/chromium/components/webcrypto/algorithms/aes.h
@@ -34,7 +34,7 @@ class AesAlgorithm : public AlgorithmImplementation {
GenerateKeyResult* result) const override;
Status ImportKey(blink::WebCryptoKeyFormat format,
- const CryptoData& key_data,
+ base::span<const uint8_t> key_data,
const blink::WebCryptoAlgorithm& algorithm,
bool extractable,
blink::WebCryptoKeyUsageMask usages,
@@ -48,7 +48,7 @@ class AesAlgorithm : public AlgorithmImplementation {
blink::WebCryptoKeyType type,
bool extractable,
blink::WebCryptoKeyUsageMask usages,
- const CryptoData& key_data,
+ base::span<const uint8_t> key_data,
blink::WebCryptoKey* key) const override;
Status GetKeyLength(const blink::WebCryptoAlgorithm& key_length_algorithm,
@@ -56,13 +56,13 @@ class AesAlgorithm : public AlgorithmImplementation {
unsigned int* length_bits) const override;
private:
- Status ImportKeyRaw(const CryptoData& key_data,
+ Status ImportKeyRaw(base::span<const uint8_t> key_data,
const blink::WebCryptoAlgorithm& algorithm,
bool extractable,
blink::WebCryptoKeyUsageMask usages,
blink::WebCryptoKey* key) const;
- Status ImportKeyJwk(const CryptoData& key_data,
+ Status ImportKeyJwk(base::span<const uint8_t> key_data,
const blink::WebCryptoAlgorithm& algorithm,
bool extractable,
blink::WebCryptoKeyUsageMask usages,