Skip to content

Fixed encoding of AlgorithmIdentifier.parameters of digest algorithms - #907

Closed
xipki wants to merge 2 commits into
bcgit:masterfrom
xipki:master
Closed

xipki wants to merge 2 commits into
bcgit:masterfrom
xipki:master

Conversation

@xipki

@xipki xipki commented Mar 15, 2021

Copy link
Copy Markdown
Contributor

No description provided.

xipki added 2 commits March 15, 2021 21:24
- MD2, MD4, MD5, SHA1, GOSTR3411: with NULL parameters
- All others: with absent parameters, except in RSASSA-PSS-Parameters and RSAES-OAPE-Parameters
@xipki

xipki commented Mar 15, 2021

Copy link
Copy Markdown
Contributor Author

This is a re-submit containing part of the pull request #906.

@dghgit

dghgit commented Apr 12, 2021

Copy link
Copy Markdown
Contributor

Thanks for the patch, this is now merged with some minor revisions - eventually the DefaultDigestAlgorithmIdentifierFinder will have to be pluggable (it always happens...). Also now up in https://www.bouncycastle.org/betas

@dghgit dghgit closed this Apr 12, 2021
@xipki

xipki commented Apr 12, 2021 •

Copy link
Copy Markdown
Contributor Author

Thanks for the merge. There are still some codes needed to be fixed. Here is a (un-complete) list:

  • pkix/src/main/java/org/bouncycastle/tsp/TimeStampRequestGenerator.java
        ASN1ObjectIdentifier digestAlgOID = new ASN1ObjectIdentifier(digestAlgorithmOID);

        AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);
  • pkix/src/main/java/org/bouncycastle/tsp/TimeStampTokenGenerator.java
  • pkix/src/main/j2me/org/bouncycastle/tsp/TimeStampTokenGenerator.java
  • pkix/src/main/jdk1.4/org/bouncycastle/tsp/TimeStampTokenGenerator.java
  • pkix/src/main/jdk1.1/org/bouncycastle/tsp/TimeStampTokenGenerator.java
        ASN1ObjectIdentifier digestAlgOID = request.getMessageImprintAlgOID();

        AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOID, DERNull.INSTANCE);

vanitasvitae pushed a commit to pgpainless/bc-java that referenced this pull request Apr 27, 2021
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.

2 participants