crypto.h 431 B

1234567891011121314151617
  1. #ifndef _CRYPTO_H_
  2. #define _CRYPTO_H_
  3. # define n2s(c,s) ((s=(((unsigned int)(c[0]))<< 8)| \
  4. (((unsigned int)(c[1])) )),c+=2)
  5. int PRF(uint8_t *secret, int32_t secret_len,
  6. uint8_t *seed1, int32_t seed1_len,
  7. uint8_t *seed2, int32_t seed2_len,
  8. uint8_t *seed3, int32_t seed3_len,
  9. uint8_t *seed4, int32_t seed4_len,
  10. uint8_t *output, int32_t output_len);
  11. #define PRE_MASTER_LEN 256
  12. #endif /* _CRYPTO_H_ */