File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
itext/itext.sign/itext/signatures Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ public virtual CMSContainer CreateCMSContainerWithoutSignature(IX509Certificate[
342342 cms . SetSignerInfo ( signerInfo ) ;
343343 IMessageDigest messageDigest = iText . Bouncycastleconnector . BouncyCastleFactoryCreator . GetFactory ( ) . CreateIDigest
344344 ( DigestAlgorithms . GetDigest ( digestAlgorithmOid ) ) ;
345- int realSignatureSize = messageDigest . GetDigestLength ( ) + ( int ) cms . GetSizeEstimation ( ) ;
345+ int realSignatureSize = ( messageDigest . GetDigestLength ( ) + ( int ) cms . GetSizeEstimation ( ) ) * 2 + 2 ;
346346 if ( tsaClient != null ) {
347347 realSignatureSize += tsaClient . GetTokenSizeEstimate ( ) ;
348348 }
Original file line number Diff line number Diff line change 1- 0988b64c687cd07e2787e25871df7e82f97fb5de
1+ c02f3a1c49366516edd50b61e0cc90f41d109455
You can’t perform that action at this time.
0 commit comments