Skip to content
  • ap@apple.com's avatar
    Beef up CryptoKey · 431a61b5
    ap@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=123462
    
    Reviewed by Sam Weinig.
    
    * WebCore.xcodeproj/project.pbxproj: Added new files.
    
    * crypto/CryptoAlgorithmIdentifier.h: Added an enum with all registered algorithms
    (they don't have to be all implemented in any port).
    
    * crypto/CryptoKey.cpp:
    (WebCore::CryptoKey::CryptoKey): Initialize base class variables.
    (WebCore::CryptoKey::type): Convert internal representation for bindings use.
    (WebCore::CryptoKey::buildAlgorithmDescription): Ditto. This function is supposed
    to be called by derived classes before adding other keyes.
    (WebCore::CryptoKey::usages): Convert internal representation for bindings use.
    
    * crypto/CryptoKey.h:
    (WebCore::CryptoKey::extractable): Expose for bindings.
    (WebCore::CryptoKey::allows): A faster way to check allowed key usage from C++ code.
    
    * crypto/CryptoKey.idl: Added SkipVTableValidation, because validation doesn't work
    with derived classes. Corrected "usages" attribute name.
    
    * crypto/CryptoKeyFormat.h: Added. 
    * crypto/CryptoKeyType.h: Added.
    * crypto/CryptoKeyUsage.h: Added.
    Added enums used by CryptoKey.
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158236 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    431a61b5