Generating a Signature

Signature dsa =
    Signature.getInstance("DSA");
dsa.initSign(alicePrivateKey);
dsa.update(aliceLetterPage1);
dsa.update(aliceLetterPage2);
dsa.update(aliceLetterPage3);
byte[] aliceSignature = dsa.sign();

Return to Tracks