package aalg.crypto;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

public interface IAssymetricKeyIo<PRIV extends IPrivateKey, PUB extends IPublicKey> {
	public void writePublicKey (final PUB key, final OutputStream stream) throws IOException;
	public PUB readPublicKey (final InputStream stream) throws IOException;
	
	public void writePrivateKey (final PRIV key, final OutputStream stream) throws IOException;
	public PRIV readPrivateKey (final InputStream stream) throws IOException;

}
