@@ -55,7 +55,7 @@ TEST(electronic_id_test, selectCertificateEstIDEMIA)
5555 const HashAlgorithm hashAlgo = authAlgo.hashAlgorithm ();
5656
5757 pcsc_cpp::byte_vector authPin {' 1' , ' 2' , ' 3' , ' 4' };
58- authPin.reserve (12 );
58+ authPin.reserve (17 );
5959
6060 const auto hash = calculateDigest (hashAlgo, dataToSign);
6161 const auto authSignature = cardInfo->signWithAuthKey (std::move (authPin), hash);
@@ -72,7 +72,7 @@ TEST(electronic_id_test, selectCertificateEstIDEMIA)
7272 EXPECT_EQ (signingRetriesLeft.maxRetry , 3 );
7373
7474 pcsc_cpp::byte_vector signPin {' 1' , ' 2' , ' 3' , ' 4' , ' 5' };
75- signPin.reserve (12 );
75+ signPin.reserve (17 );
7676
7777 EXPECT_EQ (cardInfo->isSupportedSigningHashAlgorithm (hashAlgo), true );
7878 const auto signSignature = cardInfo->signWithSigningKey (std::move (signPin), hash, hashAlgo);
@@ -105,7 +105,7 @@ TEST(electronic_id_test, selectCertificateFinV3)
105105 const HashAlgorithm hashAlgo = authAlgo.hashAlgorithm ();
106106
107107 pcsc_cpp::byte_vector authPin {' 1' , ' 2' , ' 3' , ' 4' };
108- authPin.reserve (12 );
108+ authPin.reserve (17 );
109109
110110 const auto hash = calculateDigest (hashAlgo, dataToSign);
111111 const auto authSignature = cardInfo->signWithAuthKey (std::move (authPin), hash);
@@ -122,7 +122,7 @@ TEST(electronic_id_test, selectCertificateFinV3)
122122 EXPECT_EQ (signingRetriesLeft.maxRetry , 5 );
123123
124124 pcsc_cpp::byte_vector signPin {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' };
125- signPin.reserve (12 );
125+ signPin.reserve (17 );
126126
127127 EXPECT_EQ (cardInfo->isSupportedSigningHashAlgorithm (hashAlgo), true );
128128 const auto signSignature = cardInfo->signWithSigningKey (std::move (signPin), hash, hashAlgo);
@@ -155,7 +155,7 @@ TEST(electronic_id_test, selectCertificateFinV4)
155155 const HashAlgorithm hashAlgo = authAlgo.hashAlgorithm ();
156156
157157 pcsc_cpp::byte_vector authPin {' 1' , ' 2' , ' 3' , ' 4' };
158- authPin.reserve (12 );
158+ authPin.reserve (17 );
159159
160160 const auto hash = calculateDigest (hashAlgo, dataToSign);
161161 const auto authSignature = cardInfo->signWithAuthKey (std::move (authPin), hash);
@@ -172,7 +172,7 @@ TEST(electronic_id_test, selectCertificateFinV4)
172172 EXPECT_EQ (signingRetriesLeft.maxRetry , 5 );
173173
174174 pcsc_cpp::byte_vector signPin {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' };
175- signPin.reserve (12 );
175+ signPin.reserve (17 );
176176
177177 EXPECT_EQ (cardInfo->isSupportedSigningHashAlgorithm (hashAlgo), true );
178178 const auto signSignature = cardInfo->signWithSigningKey (std::move (signPin), hash, hashAlgo);
@@ -205,7 +205,7 @@ TEST(electronic_id_test, selectCertificateLatV2)
205205 const HashAlgorithm hashAlgo = authAlgo.hashAlgorithm ();
206206
207207 pcsc_cpp::byte_vector authPin {' 1' , ' 2' , ' 3' , ' 4' };
208- authPin.reserve (12 );
208+ authPin.reserve (17 );
209209
210210 const auto hash = calculateDigest (hashAlgo, dataToSign);
211211 const auto authSignature = cardInfo->signWithAuthKey (std::move (authPin), hash);
@@ -222,7 +222,7 @@ TEST(electronic_id_test, selectCertificateLatV2)
222222 EXPECT_EQ (signingRetriesLeft.maxRetry , 3 );
223223
224224 pcsc_cpp::byte_vector signPin {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' };
225- signPin.reserve (12 );
225+ signPin.reserve (17 );
226226
227227 EXPECT_EQ (cardInfo->isSupportedSigningHashAlgorithm (hashAlgo), true );
228228 const auto signSignature = cardInfo->signWithSigningKey (std::move (signPin), hash, hashAlgo);
0 commit comments