コード例 #1
0
def encrypt_on_host(keyno_str):
    keyno = int(keyno_str)
    scc.ciphertext = rsa_keys.encrypt(keyno, scc.plaintext)
コード例 #2
0
ファイル: test_personalize_card.py プロジェクト: vgisc/gnuk
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
ファイル: test_personalize_card.py プロジェクト: jj1bdx/gnuk
def test_decrypt_1(card):
    ciphertext = rsa_keys.encrypt(1, PLAIN_TEXT1)
    r = card.cmd_pso(0x80, 0x86, ciphertext)
    assert r == PLAIN_TEXT1