gg-crypto-ucryptolib.c
int crypto_set_shared_key_to_hmac(GG_crypt *ggc) {

  static uint8_t md[clSHA1_DIGEST_SIZE];
  const uint8_t *ret;
  ret = clSHA1(ggc->dh_shared_secret, ggc->dh_shared_secret_size, md);

  return crypto_set_hmac_key(ggc, ret, clSHA1_DIGEST_SIZE);
}
/* put the shared DH key into the HMAC */
/* -1 on failure 0 on success */
put the shared DH key into the HMAC
1 on failure 0 on success
put the shared DH key into the HMAC 1 on failure 0 on success
int crypto_set_shared_key_to_hmac(GG_crypt *ggc) {
  static uint8_t md[clSHA1_DIGEST_SIZE];
  const uint8_t *ret;
  ret = clSHA1(ggc->dh_shared_secret, ggc->dh_shared_secret_size, md);
  return crypto_set_hmac_key(ggc, ret, clSHA1_DIGEST_SIZE);
}
int crypto_set_shared_key_to_hmac ( GG_crypt * ggc ) { static uint8_t md [ clSHA1_DIGEST_SIZE ] ; const uint8_t * ret ; ret = clSHA1 ( ggc -> dh_shared_secret , ggc -> dh_shared_secret_size , md ) ; return crypto_set_hmac_key ( ggc , ret , clSHA1_DIGEST_SIZE ) ; }
put the shared DH key into the HMAC
1 on failure 0 on success
put the shared DH key into the HMAC 1 on failure 0 on success