summaryrefslogtreecommitdiffstats
path: root/chromecast
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 20:19:34 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-18 20:19:34 +0000
commitd008566b720e4d41fb0fdc83d2b7f3b74ce39c02 (patch)
tree816ecde55aaf3c3ec81b3a4839f6dac5fcfef53c /chromecast
parentb31dbfcc5310f4056950e874efbfc513955c47bf (diff)
downloadchromium_src-d008566b720e4d41fb0fdc83d2b7f3b74ce39c02.zip
chromium_src-d008566b720e4d41fb0fdc83d2b7f3b74ce39c02.tar.gz
chromium_src-d008566b720e4d41fb0fdc83d2b7f3b74ce39c02.tar.bz2
Refactor WebCrypto code.
Split up the monstrously large platform_crypto_nss.cc, platform_crypto_openssl.cc into multiple files. ----------- Overview: ----------- * algorithm_implementation.h: This defines a base class AlgorithmImplementation, which has virtual methods for synchronous encrypt/decrypt/generatekey. All of the information about an algorithm is now encapsulated by an AlgorithmImplementation. So for instance the JWK specific knowledge, key usages for each key type are pulled into this interface. * algorithm_registry.cc: Contains a mapping from WebCryptoAlgorithmID --> AlgorithmImplementation, stored by a singleton. * algorithm_dispatch.cc: Given parameters from Blink, looks up the appropriate AlgorithmImplementation in the registry and dispatches the operation. Also implements wrap/unwrap in terms of encrypt/decrypt. * structured_clone.cc: Contains the code related to structured cloning (which still needs some cleanup, and is implemented in terms of import/export). * nss/*, openssl/*: Contains the AlgorithmImplementation concrete classes for each algorithm. This reorganization also unintentionally fixes a few bugs. * ExportKey() for spki/pkcs8/raw uses the already serialized key data rather than re-exporting * Some exception codes were fixed. BUG=389325,389342,389327,374912 Review URL: https://codereview.chromium.org/379383002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromecast')
0 files changed, 0 insertions, 0 deletions