Re: Feedback on DOMCryptInternalAPI

2012-04-27 Thread ianG
On 26/04/12 22:24 PM, helpcrypto helpcrypto wrote: If you want the signature + document to be legally sustainable and/or user-interpretable, then plaintext signatures with embedded public keys are the way to go. You can base64-encode the public keys :) Some further development of this theme is

Re: Feedback on DOMCryptInternalAPI

2012-04-27 Thread ianG
On 26/04/12 17:32 PM, helpcrypto helpcrypto wrote: Are you saying you base64 encode the data to be signed before the signature is created? No. Let me show you an example. Consider you provide this API: sign(keyId, data) IMHO, the correct way of invoking wil be: sign(1,"ZGF0YXRvYmVza