Make-Ecdh-Key

(make-ecdh-key integer) -> ecdh-key
(make-ecdh-key integer random) -> ecdh-key

Creates an <ecdh-key> of integer size in bits, using the optional random as an initialization vector.

The result will test true for ecdh-key? and ecdh-private-key?, but return false for ecdh-public-key?.

Examples:

>> (make-ecdh-key 384)
:: [ecdh-key]
>> (define Cq (make-ecdh-key 384))
:: #f
>> (define Dq (make-ecdh-key 384))
:: #f

With random initialization vector:

>> (make-ecdh-key 384 *default-random*)
:: [ecdh-key]