opcard 1.11.0

OpenPGP smart card implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2022 Nitrokey GmbH
// SPDX-License-Identifier: LGPL-3.0-only

mod card;
mod gpg;
mod virt;

use test_log::test;

#[test]
fn p256_gpg() {
    if card::dangerous_real_card_enabled() {
        gpg::gpg_test(gpg::KeyAlgo::P256);
    } else {
        virt::with_vsc(|| gpg::gpg_test(gpg::KeyAlgo::P256));
    }
}