564
edits
| Line 56: | Line 56: | ||
}; | }; | ||
interface PKCryptoPublicKey { | |||
readonly attribute DOMString pubKey; | |||
readonly attribute DOMString algorithm; | |||
readonly attribute integer created; | |||
DOMString | |||
} | } | ||
interface PKCryptoMessage { | interface PKCryptoMessage { | ||
attribute DOMString cryptoMessage | attribute DOMString cryptoMessage; | ||
attribute DOMString algorithm; | attribute DOMString algorithm; | ||
}; | }; | ||
| Line 120: | Line 109: | ||
}; | }; | ||
// Use JWE as the crypto object?, or something like the following: | |||
interface SymCipherObject { | |||
attribute DOMString cipherString; | |||
attribute DOMString algorithm; | |||
attribute DOMString symKeyID; | |||
// What is missing here? | |||
}; | }; | ||
[Callback=FunctionOnly, NoInterfaceObject] interface SymEncryptCallback { | [Callback=FunctionOnly, NoInterfaceObject] interface SymEncryptCallback { | ||
void onsuccess( | void onsuccess(SymCipherObject cipherObject); | ||
}; | }; | ||
| Line 136: | Line 129: | ||
attribute DOMString algorithm; | attribute DOMString algorithm; | ||
void | void encrypt(DOMString plainText, SymEncryptCallback callback); | ||
void decrypt(DOMString cipherText, DOMString symKeyID, SymDecryptCallback callback); | |||
void decrypt(DOMString cipherText, DOMString | |||
}; | }; | ||
| Line 173: | Line 164: | ||
}; | }; | ||
</pre> | </pre> | ||
edits