mirror of
https://github.com/prirun/p50em.git
synced 2026-03-10 12:18:24 +00:00
fce85ba28ee1167d4b72d3af9a3f3ff601c964d1
- decrement hoursleft on each boot to prevent running very short Prime sessions that don't update the dongle; this allows removing of dongle_dtime (the last time the dongle was updated) - only uses 1 dongle location (for hoursleft) - maintain a checksum on dongle values to detect tampering - encrypt hoursleft and the dongle checksum - write random values in all other dongle locations - validate dongle by asking it to encrypt random values; this requires that a copy of the dongle key is stored in the executable - don't fail immediately: just set a status and keep going - caller sets bad Prime keys and hands us the correct keys; we reset Prime keys before returning. This makes it harder to bypass security by not calling it at all.
Description
Prime 50-Series Emulator
Languages
C
97.8%
Roff
1.7%
Python
0.3%
Makefile
0.2%