Files
pico-openpgp/tests/030_kdfsingle/test_076_adminless_kdfsingle.py
Pol Henarejos a22f36e03d Add support for admin-less mode.
In this mode, when PW1 is set equal to PW3 without being the default, it enters onto admin-less mode, where with PW1 gains admin privileges.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
2026-07-10 16:37:24 +02:00

9 lines
239 B
Python

from card_test_reset_pw3 import *
from card_const import FACTORY_PASSPHRASE_PW3
def test_restore_adminfull_mode(card):
r = card.change_passwd(3, FACTORY_PASSPHRASE_PW3,
FACTORY_PASSPHRASE_PW3)
assert r