use of co.krypt.krypton.pgp.publickey.RSAPublicKeyData in project krypton-android by kryptco.
the class RSASSHKeyPair method pgpPublicKeyData.
@Override
public PublicKeyData pgpPublicKeyData() {
RSAPublicKey rsaPub = (RSAPublicKey) keyPair.getPublic();
byte[] n = rsaPub.getModulus().toByteArray();
byte[] e = rsaPub.getPublicExponent().toByteArray();
return new RSAPublicKeyData(new MPInt(n), new MPInt(e));
}
Aggregations