mirror of
https://github.com/prirun/p50em.git
synced 2026-03-04 10:08:30 +00:00
- 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.
71 KiB
71 KiB