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