Interface IDiffieHellmanKeyBuilder
interface IDiffieHellmanKeyBuilder
Extends IAsymmetricKeyBuilder
Methods
modulus()
Specify the Diffie-Hellman modulus as a big-endian byte array compatible with OpenSSL’s BN_bin2bn.IDiffieHellmanKeyBuilder*modulus(u8[]modulus)
Parameters
modulus
u8[] — Required
The modulus as a byte array.
Returns
IDiffieHellmanKeyBuilder*
The Diffie-Hellman key builder.
generator()
Specify the Diffie-Hellman base.IDiffieHellmanKeyBuilder*generator(u32generator)
Parameters
generator
u32 — Required
The base.
Returns
IDiffieHellmanKeyBuilder*
The Diffie-Hellman key builder.
buildPublicFromBigInteger()
Build a Diffie-Hellman public key from a byte array containing a two’s complement representation of the key in big-endian byte-order. This representation is fully compatible with the byte array representation of a Java BigInteger as described in the MSL documentation.IPublicKey*buildPublicFromBigInteger(u8[]bytes)
Parameters
bytes
u8[] — Required
The byte array representing the key.
Returns
IPublicKey*
The public key.

