OSCrypto.jsm 588 B

12345678910111213141516171819202122
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. /**
  5. * Common front for various implementations of OSCrypto
  6. */
  7. "use strict";
  8. Components.utils.import("resource://gre/modules/Services.jsm");
  9. this.EXPORTED_SYMBOLS = ["OSCrypto"];
  10. var OSCrypto = {};
  11. #ifdef XP_WIN
  12. Services.scriptloader.loadSubScript("resource://gre/modules/OSCrypto_win.js", this);
  13. #else
  14. throw new Error("OSCrypto.jsm isn't supported on this platform");
  15. #endif