diff --git a/bsspeke.h b/bsspeke.h index 6acc212ea0114ce2c4e7c3f3454196107684dc90..b196d6865da77168d82e84998b7befb540494947 100644 --- a/bsspeke.h +++ b/bsspeke.h @@ -75,16 +75,6 @@ typedef struct { uint8_t K_s[32]; // Session key } bsspeke_server_ctx; -typedef struct { - uint8_t salt[32]; - size_t salt_len; - - uint8_t P[32]; - uint8_t V[32]; - - uint32_t phf_blocks; - uint32_t phf_iterations; -} bsspeke_user_info_t; typedef struct { char *client_id; diff --git a/demo.c b/demo.c index e7686d239a330fcfa4dc76b40e7fca83463c6749..8bcfa87daa38eaafc1ab1c6e635285e8d8790d7c 100644 --- a/demo.c +++ b/demo.c @@ -24,6 +24,17 @@ #include "bsspeke.h" +typedef struct { + uint8_t salt[32]; + size_t salt_len; + + uint8_t P[32]; + uint8_t V[32]; + + uint32_t phf_blocks; + uint32_t phf_iterations; +} bsspeke_user_info_t; + int demo_setup(bsspeke_user_info_t *user_info) { bsspeke_client_ctx client;