Ignore:
Timestamp:
Feb 11, 2011, 12:37:36 AM (14 years ago)
Author:
[email protected]
Message:

2011-02-10 Adam Barth <[email protected]>

Reviewed by Eric Seidel.

WebKit should have a cryptographic RNG
https://bugs.webkit.org/show_bug.cgi?id=22049

Test crypto.getRandomValues API. It's pretty hard to write a
deterministic API for a randomized API, but this test should catch some
regressions.

  • security/crypto-random-values-expected.txt: Added.
  • security/crypto-random-values.html: Added.

2011-02-10 Adam Barth <[email protected]>

Reviewed by Eric Seidel.

WebKit should have a cryptographic RNG
https://bugs.webkit.org/show_bug.cgi?id=22049

Teach JavaScriptCore how to export this function.

2011-02-10 Adam Barth <[email protected]>

Reviewed by Eric Seidel.

WebKit should have a cryptographic RNG
https://bugs.webkit.org/show_bug.cgi?id=22049

Add crypto.getRandomValues. Yes, all these diffs are required to
expose a single function to the DOM.

Test: security/crypto-random-values.html

  • Android.mk:
  • CMakeLists.txt:
  • DerivedSources.cpp:
  • DerivedSources.make:
  • ForwardingHeaders/wtf/CryptographicallyRandomNumber.h: Added.
  • GNUmakefile.am:
  • WebCore.gypi:
  • WebCore.pri:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • bindings/js/JSDOMWindowCustom.cpp:
  • bindings/v8/custom/V8DOMWindowCustom.cpp:
  • config.h:
  • page/Crypto.cpp: Added. (WebCore::Crypto::Crypto): (WebCore::Crypto::getRandomValues):
  • page/Crypto.h: Added. (WebCore::Crypto::create):
  • page/Crypto.idl: Added.
  • page/DOMWindow.cpp: (WebCore::DOMWindow::clear): (WebCore::DOMWindow::crypto):
  • page/DOMWindow.h: (WebCore::DOMWindow::optionalCrypto):
  • page/DOMWindow.idl:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/JavaScriptCore.exp

    r78297 r78321  
    434434__ZN3WTF27releaseFastMallocFreeMemoryEv
    435435__ZN3WTF28setMainThreadCallbacksPausedEb
     436__ZN3WTF29cryptographicallyRandomValuesEPvm
    436437__ZN3WTF36lockAtomicallyInitializedStaticMutexEv
    437438__ZN3WTF37parseDateFromNullTerminatedCharactersEPKc
Note: See TracChangeset for help on using the changeset viewer.