public class SignatureRSA extends Object implements SignatureRSA
Constructor and Description |
---|
SignatureRSA() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
setPrvKey(byte[] d,
byte[] n) |
void |
setPubKey(byte[] e,
byte[] n) |
byte[] |
sign() |
void |
update(byte[] foo) |
boolean |
verify(byte[] sig) |
public void init() throws Exception
public void setPubKey(byte[] e, byte[] n) throws Exception
setPubKey
in interface SignatureRSA
Exception
public void setPrvKey(byte[] d, byte[] n) throws Exception
setPrvKey
in interface SignatureRSA
Exception
public byte[] sign() throws Exception
public void update(byte[] foo) throws Exception
Copyright © 2015 JCraft,Inc.. All rights reserved.