1 package ch.ethz.ssh2.signature; 2 3 import java.math.BigInteger ; 4 5 11 public class DSAPrivateKey 12 { 13 private BigInteger p; 14 private BigInteger q; 15 private BigInteger g; 16 private BigInteger x; 17 private BigInteger y; 18 19 public DSAPrivateKey(BigInteger p, BigInteger q, BigInteger g, 20 BigInteger y, BigInteger x) 21 { 22 this.p = p; 23 this.q = q; 24 this.g = g; 25 this.y = y; 26 this.x = x; 27 } 28 29 public BigInteger getP() 30 { 31 return p; 32 } 33 34 public BigInteger getQ() 35 { 36 return q; 37 } 38 39 public BigInteger getG() 40 { 41 return g; 42 } 43 44 public BigInteger getY() 45 { 46 return y; 47 } 48 49 public BigInteger getX() 50 { 51 return x; 52 } 53 54 public DSAPublicKey getPublicKey() 55 { 56 return new DSAPublicKey(p, q, g, y); 57 } 58 } | Popular Tags |