Hi everybody:

Firs, I will try to explain my current situation (sorry in advanced for my
poor English :-( ). My signing system is splitted in two pieces: a
lightweith client that owns the private key and ONLY can sign (no digest)
and the server side that does everything else EXCEPT signing (digest, add
Manifest elements or aditional References).
My initial idea was: the server side builds the SignedInfo elements, get its
digest and send it to the client. The client signs and send the result to
the server, which adds this to the SignedInfo. Is that possible withe the
current implementation?
I expected that

  SignedInfo si.generateDigestValues();
  String digest = Base64.encode(si.getCanonicalizedOctetStream());

'digest' would contain the digest value in Base64, but what I get is
something different. How can I get the digest? After signing, is there any
way for adding it to SignInfo.

Thanks a lot

Isi

Reply via email to