org.bouncycastle.crypto.tls
Class TlsDHUtils
java.lang.Object
org.bouncycastle.crypto.tls.TlsDHUtils
public class TlsDHUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TlsDHUtils
public TlsDHUtils()
calculateDHBasicAgreement
public static byte[] calculateDHBasicAgreement(DHPublicKeyParameters publicKey,
DHPrivateKeyParameters privateKey)
generateDHKeyPair
public static AsymmetricCipherKeyPair generateDHKeyPair(java.security.SecureRandom random,
DHParameters dhParams)
generateEphemeralClientKeyExchange
public static DHPrivateKeyParameters generateEphemeralClientKeyExchange(java.security.SecureRandom random,
DHParameters dhParams,
java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
validateDHPublicKey
public static DHPublicKeyParameters validateDHPublicKey(DHPublicKeyParameters key)
throws java.io.IOException
- Throws:
java.io.IOException