3031323334353637
private Digest digest; private DSA signer; public SignatureSpi() { this.digest = new GOST3411Digest(); this.signer = new ECGOST3410Signer(); }
9596979899100101102103104105
break; case SHA256: generator = new PKCS12ParametersGenerator(new SHA256Digest()); break; case GOST3411: generator = new PKCS12ParametersGenerator(new GOST3411Digest()); break; default: throw new IllegalStateException("unknown digest scheme for PBE encryption."); } }
3233343536373839
private DSA signer; private SecureRandom random; public SignatureSpi() { this.digest = new GOST3411Digest(); this.signer = new GOST3410Signer(); }
7980818283848586
{ throw new InvalidKeyException("can't recognise key type in DSA based signer"); } } digest = new GOST3411Digest(expandSbox(((BCDSTU4145PublicKey)publicKey).getSbox())); signer.init(false, param); }
106107108109110111112113114115116
if (privateKey instanceof ECKey) { param = ECUtil.generatePrivateKeyParameter(privateKey); } digest = new GOST3411Digest(DEFAULT_SBOX); if (appRandom != null) { signer.init(true, new ParametersWithRandom(param, appRandom)); }
19202122232425
extends BCMessageDigest implements Cloneable { public Digest() { super(new GOST3411Digest()); }
262728293031323334
public Object clone() throws CloneNotSupportedException { Digest d = (Digest)super.clone(); d.digest = new GOST3411Digest((GOST3411Digest)digest); return d; }
40414243444546
public static class HashMac extends BaseMac { public HashMac() { super(new HMac(new GOST3411Digest())); }
230231232233234235236
static public class gost3410 extends JDKGOST3410Signer { public gost3410() { super(new GOST3411Digest(), new GOST3410Signer()); }
239240241242243244245
static public class ecgost3410 extends JDKGOST3410Signer { public ecgost3410() { super(new GOST3411Digest(), new ECGOST3410Signer()); }