I want to generate a pair of ECDH keys (64 bytes each), where the first 12 bytes of the public key will suit my format.
For example, if I have a unique sequence "13456789ABC" I'd like to use it as the first 12 bytes of the 64 bytes long public key (the rest of the length is padded by the generated values). For each generation of the keys, the sequence will change a little bit so it is unique.
So I'm basically asking two things:
- Is this possible?
- Is there a generator which would allow me to specify a prefix of a suitable length for the public key?