Skip to content

Commit 90f0dfa

Browse files
committed
Remove workarounds for previously missing Bouncy Castle fips features.
DEVSIX-7474
1 parent eb42fc9 commit 90f0dfa

File tree

1 file changed

+2
-1
lines changed
  • itext/itext.bouncy-castle-fips-adapter/itext/bouncycastlefips/cert/ocsp

1 file changed

+2
-1
lines changed

itext/itext.bouncy-castle-fips-adapter/itext/bouncycastlefips/cert/ocsp/CertIDBCFips.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ You should have received a copy of the GNU Affero General Public License
3535
using Org.BouncyCastle.Asn1.X500;
3636
using Org.BouncyCastle.Asn1.X509;
3737
using Org.BouncyCastle.Crypto;
38+
using Org.BouncyCastle.Ocsp;
3839

3940
namespace iText.Bouncycastlefips.Cert.Ocsp {
4041
/// <summary>
@@ -44,7 +45,7 @@ namespace iText.Bouncycastlefips.Cert.Ocsp {
4445
public class CertIDBCFips : ICertID {
4546
private static readonly CertIDBCFips INSTANCE = new CertIDBCFips(null);
4647

47-
private static readonly string HASH_SHA1 = CryptoConfig.MapNameToOID("SHA1");
48+
private static readonly string HASH_SHA1 = CertificateID.HashSha1.Algorithm.Id;
4849

4950
private readonly CertID certificateID;
5051

0 commit comments

Comments
 (0)