On 18 December 2012 05:30, jeetendra gangele <gangele...@gmail.com> wrote:
> Ok, > > can you expain me how ec_compute_key work and specially this last argument. > Why its need hash value to calculate the secret key. > I need to generate the 56 BYtes shred key. > A KDF (Key Derivation Function) is typically used to generate a secret key from some other input which does not exhibit the properties necessary for direct cryptographic use, e.g. perhaps it would not pass statistical randomness tests. If you need 56 bytes then you could use a hash function that outputs at least that many bits, e.g. SHA512 Matt