123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- extern "C" {
- int ocrypto_ecjpake_get_key(
- uint8_t X[64],
- uint8_t V[64],
- uint8_t r[32],
- const uint8_t G[64],
- const uint8_t x[32],
- const uint8_t v[32],
- const char *id, size_t id_len);
- int ocrypto_ecjpake_verify_key(
- const uint8_t G[64],
- const uint8_t X[64],
- const uint8_t V[64],
- const uint8_t r[32],
- const char *id, size_t id_len);
- int ocrypto_ecjpake_get_generator(
- uint8_t G[64],
- const uint8_t X1[64],
- const uint8_t X2[64],
- const uint8_t X3[64]);
- void ocrypto_ecjpake_read_shared_secret(
- uint8_t rs[32],
- const uint8_t *secret, size_t secret_len);
- int ocrypto_ecjpake_process_shared_secret(
- uint8_t xs[32],
- const uint8_t x2[32],
- const uint8_t rs[32]);
- int ocrypto_ecjpake_get_secret_key(
- uint8_t secret[32],
- const uint8_t Xr[64],
- const uint8_t X2[64],
- const uint8_t xs[32],
- const uint8_t x2[32]);
- }
|