Skip to content

Commit d77c3dc

Browse files
[example] Add SHA256 tests to example extension
1 parent 3371c04 commit d77c3dc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

example_cpp_smart_card_client_app/src/chrome_certificate_provider/api_bridge_integration_test_helper.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ constexpr uint8_t kFakeCert1Der[] = {1, 2, 3};
4545
constexpr Algorithm kFakeCert1Algorithms[] = {Algorithm::kRsassaPkcs1v15Sha256};
4646
constexpr uint8_t kFakeCert2Der[] = {4};
4747
constexpr Algorithm kFakeCert2Algorithms[] = {Algorithm::kRsassaPkcs1v15Sha512,
48-
Algorithm::kRsassaPkcs1v15Sha1};
48+
Algorithm::kRsassaPkcs1v15Sha1,
49+
Algorithm::kRsassaPssSha256};
4950

5051
ClientCertificateInfo GetFakeCert1() {
5152
ClientCertificateInfo info;

example_cpp_smart_card_client_app/src/chrome_certificate_provider/bridge-integrationtest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const FAKE_CERT_1_DER = new Uint8Array([1, 2, 3]);
3636
const FAKE_CERT_1_ALGORITHMS = ['RSASSA_PKCS1_v1_5_SHA256'];
3737
const FAKE_CERT_2_DER = new Uint8Array([4]);
3838
const FAKE_CERT_2_ALGORITHMS =
39-
['RSASSA_PKCS1_v1_5_SHA512', 'RSASSA_PKCS1_v1_5_SHA1'];
39+
['RSASSA_PKCS1_v1_5_SHA512', 'RSASSA_PKCS1_v1_5_SHA1', 'RSASSA_PSS_SHA256'];
4040

4141
/** @type {GSC.IntegrationTestController?} */
4242
let testController;

0 commit comments

Comments
 (0)