| Index: Source/modules/crypto/Crypto.cpp
|
| diff --git a/Source/modules/crypto/Crypto.cpp b/Source/modules/crypto/Crypto.cpp
|
| index 849e1cad2e75dfd38ac8c1649fc2c70dd1a5c635..a2e55daaa82295fd417022c3b1cbe7a6cb09e019 100644
|
| --- a/Source/modules/crypto/Crypto.cpp
|
| +++ b/Source/modules/crypto/Crypto.cpp
|
| @@ -70,4 +70,11 @@ void Crypto::getRandomValues(ArrayBufferView* array, ExceptionCode& ec)
|
| cryptographicallyRandomValues(array->baseAddress(), array->byteLength());
|
| }
|
|
|
| +SubtleCrypto* Crypto::subtle()
|
| +{
|
| + if (!m_subtleCrypto)
|
| + m_subtleCrypto = SubtleCrypto::create();
|
| + return m_subtleCrypto.get();
|
| +}
|
| +
|
| }
|
|
|