Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[改善] BLE検証ツールの再動作確認 #101

Merged
merged 1 commit into from
Oct 30, 2018

Conversation

makmorit
Copy link
Contributor

概要

FIDOアライアンスから提供されている、BLE検証ツールBLECertificationTool.exe(FIDO U2Fの仕様を満たしているかどうかを検証するためのツール)について、再度動作確認をします。

対象はHUAWEI PC、nRF52832(One Card開発機)になります。
ファームウェアはVersion 0.1.6を使用します。
SHA-1: c0497fd

再確認をおこなう理由

Windows 10のアップデートを実施したための措置になります。

@makmorit
Copy link
Contributor Author

対応内容

BLE検証ツールの提供元リポジトリー(jovasco-u2f-ref-code)において、最新プルリクエスト Improve buildscript and fix Windows 10 Creator update problems が発行されています。
 ご参照:fido-alliance/jovasco-u2f-ref-code#6

こちらに添付されている、バイナリービルドを取得します。
 https://github.com/fido-alliance/jovasco-u2f-ref-code/files/1317557/BLECertTool-1.2.1.zip

ダウンロードされたzipファイルを解凍すると、新しいバージョンのBLECertificationTool.exeが格納されているので、それを実行して動作確認します。

@makmorit
Copy link
Contributor Author

makmorit commented Oct 30, 2018

対応結果の確認

One Card開発機での結果

全テスト項目、正常にパスしたことを確認いたしました。

C:\Users\makmo\OneDrive\program>BLECertificationTool.exe
BLE Certification Tool 1.2.1


==== Selected Device ====
Device Display Name: OneCard_Peripheral
Device Identifier  : BluetoothLE#BluetoothLE38:37:8b:f0:d9:ba-df:ad:18:34:59:d3
Bluetooth Address  : df:ad:18:34:59:d3

==== Configuration ====
U2F Version: 1.2
Pairing PIN    : NA
Encryption     : Yes
Continuous Adv : No
Logging        : None
Timestamping   : Off

==== Selected Tests ====
BLE Transport Tests    : Yes
U2F Raw Messages Tests : Yes
ISO7816-4 Tests        : Yes

=== Starting Tests ===

==== BLE Transport tests ====
Turn on device.
PASS(BleApiTest_TransportPing(configuration, dev))
PASS(BleApiTest_TransportLongPing(configuration, dev))
PASS(BleApiTest_TransportLimits(configuration, dev))
PASS(BleApiTest_TransportUnknown (configuration, dev, (4 + (rand() % (TYPE_INIT - 0x04)))))
PASS(BleApiTest_TransportNotCont(configuration, dev))
PASS(BleApiTest_TransportBadSequence(configuration, dev))
PASS(BleApiTest_TransportContFirst(configuration, dev))
PASS(BleApiTest_TransportTooLong(configuration, dev))
PASS(BleApiTest_VersionSelection(configuration, dev))
PASS(BleApiTest_VersionSelectionWrong(configuration, dev))
Turn on device NOT in Pairing Mode.
PASS(BleApiTest_AdvertisingNotPairingMode(configuration, dev, notpairingmode_sd_present))
Turn on device in Pairing Mode.
Waiting until device disconnects.
PASS(BleApiTest_AdvertisingPairingMode(configuration, dev, pairingmode_sd_present))

==== U2F Raw Message tests ====
Turn on device.
PASS(BleApiTest_GetU2FProtocolVersion(dev))
PASS(BleApiTest_UnknownINS(dev))
PASS(BleApiTest_BadCLA(dev))
PASS(BleApiTest_VersionWrongLength(dev))
PASS(BleApiTest_RegisterWrongLength(dev))
PASS(BleApiTest_Enroll(dev))
Turn on device.
PASS(BleApiTest_Sign(dev, NULL, FIDO_RESP_WRONG_DATA, false, true, false))
PASS(BleApiTest_Sign(dev, NULL, FIDO_RESP_WRONG_DATA, false, false, true))
PASS(BleApiTest_Sign(dev, NULL, FIDO_RESP_USERPRESENCE_REQUIRED, true))
PASS(BleApiTest_Sign(dev, &ctr1))
Turn on device.
PASS(BleApiTest_Sign(dev, &ctr2))
PASS(((ctr2 == (ctr1 + 1)) ? ReturnValue::BLEAPI_ERROR_SUCCESS : ReturnValue::BLEAPI_ERROR_UNKNOWN_ERROR))

==== BLE ISO7816-4 Encoding tests ====
Turn on device.
PASS(BleApiTest_TestEncodingLongAnyLength(dev))
PASS(BleApiTest_TestEncodingLongExactLength(dev))
PASS(BleApiTest_TestEncodingLongWrongLength(dev))
Turn on device.
PASS(BleApiTest_TestEncodingLongDataAnyLength(dev))
Turn on device.
PASS(BleApiTest_TestEncodingLongDataExactLength(dev))
Turn on device.
PASS(BleApiTest_TestEncodingLongDataWrongLength(dev))

==== Test completed. ====

C:\Users\makmo\OneDrive\program>

ご参考:nRF52832側のUARTプリント

nRF52832.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant