Yubico / yubikit-android

Yubico Mobile Android SDK - YubiKit
Apache License 2.0
114 stars 42 forks source link

Security Domain integration tests #148

Closed AdamVe closed 3 months ago

AdamVe commented 3 months ago

Adds test for:

These tests will be skipped on devices not supporting a specific secure channel or under incompatible circumstances (trying to do SCP03 over NFC on FIPS capable device).

The tests are java version of yubikey-manager security domain tests from here: https://github.com/Yubico/yubikey-manager/blob/5.5.1/tests/device/test_securitydomain.py

The binary data are are extracted from the following files: OCE_CERTS: https://github.com/Yubico/yubikey-manager/blob/5.5.1/tests/files/scp/certs.oce.pem OCE: https://github.com/Yubico/yubikey-manager/blob/5.5.1/tests/files/scp/oce.pfx