DSAKeyGenerationParameters DSAKeyGenPara =
new DSAKeyGenerationParameters(sr, dsap);
DSAKeyPairGenerator kpgen=new DSAKeyPairGenerator();
kpgen.init( DSAKeyGenPara );
AsymmetricCipherKeyPair keyPair=kpgen.generateKeyPair();
DSAPrivateKeyParameters prvKey=
(DSAPrivateKeyParameters)keyPair.getPrivate();
DSAPublicKeyParameters pubKey=
(DSAPublicKeyParameters)keyPair.getPublic();