#include "nsISupports.idl" // UUID version 5 for http://passpet.org/XPCOM/IPasspetHash [scriptable, uuid(c1d0a705-2b34-567b-8778-1e8dba89beb2)] interface IPasspetHash : nsISupports { attribute ACString data; readonly attribute long iterations; // Hash until the data has been hashed maxIterations times or // for maxMilliseconds milliseconds, whichever comes first. // If maxIterations is -1, keep hashing until time runs out. void run(in long maxIterations, in long maxMilliseconds); // Hash the given data maxIterations times. ACString hash(in long maxIterations, in ACString data); };