22 int (*
fill)(
void *
ctx, uint8_t *out,
size_t len);
Pluggable crypto backend: stateless primitives keyed by explicit material.
void lite_clock_fixed_set(lite_clock *c, int64_t millis)
Sets the time a fixed clock reports.
lite_clock * lite_clock_fixed_new(int64_t millis)
Allocates a fixed clock reading millis. Free with lite_clock_fixed_free().
void lite_clock_fixed_free(lite_clock *c)
Frees a fixed clock created by lite_clock_fixed_new().
void lite_rng_seeded_free(lite_rng *r)
Frees a seeded RNG created by lite_rng_seeded_new().
lite_rng * lite_rng_seeded_new(uint64_t seed)
Allocates a deterministic (seeded) RNG. Free with lite_rng_seeded_free().
Pluggable keystore, a software stand-in for AndroidKeyStore.
Pluggable key/value store shaped like Android SharedPreferences.
Pluggable clock so tests can pin "now".
Definition env.h:14
int64_t(* now_millis)(void *ctx)
Current time in epoch milliseconds.
Definition env.h:16
void * ctx
Backend-private state.
Definition env.h:15
Vtable of stateless crypto primitives; obtain a concrete one from lite_crypto_openssl().
Definition crypto.h:12
Everything the wallet needs, injected so tests can pin the clock, RNG and keys.
Definition env.h:26
lite_store * store
SharedPreferences-shaped persistence.
Definition env.h:29
lite_keystore * keystore
Alias-keyed key storage/signing.
Definition env.h:28
const lite_crypto * crypto
Stateless crypto primitives.
Definition env.h:27
size_t signer_upi_cert_len
Length of signer_upi_cert in bytes.
Definition env.h:33
const uint8_t * signer_upi_cert
PEM/DER of signer-upi.crt, used to verify riskRules.
Definition env.h:32
const lite_clock * clock
Time source.
Definition env.h:30
const lite_rng * rng
Randomness source.
Definition env.h:31
Software AndroidKeyStore stand-in.
Definition keystore.h:12
Pluggable RNG so tests can make IVs and salts reproducible.
Definition env.h:20
int(* fill)(void *ctx, uint8_t *out, size_t len)
Fills out with len random bytes. 0 on success.
Definition env.h:22
void * ctx
Backend-private state.
Definition env.h:21
SharedPreferences-shaped store, namespaced by file (e.g. "NPCICLVAULT", "DataUPI").
Definition store.h:10