def encrypt_on_host(keyno_str): keyno = int(keyno_str) scc.ciphertext = rsa_keys.encrypt(keyno, scc.plaintext)
def test_decrypt_1(card): ciphertext = rsa_keys.encrypt(1, PLAIN_TEXT1) r = card.cmd_pso(0x80, 0x86, ciphertext) assert r == PLAIN_TEXT1