File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
prov/src/main/java/org/bouncycastle
jcajce/provider/asymmetric/x509 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -116,9 +116,9 @@ static String getSignatureName(AlgorithmIdentifier sigAlgId)
116116 }
117117 if (X9ObjectIdentifiers .ecdsa_with_SHA2 .equals (sigAlgOid ))
118118 {
119- ASN1Sequence ecDsaParams = ASN1Sequence .getInstance (params );
119+ AlgorithmIdentifier ecDsaParams = AlgorithmIdentifier .getInstance (params );
120120
121- return getDigestAlgName (( ASN1ObjectIdentifier ) ecDsaParams .getObjectAt ( 0 )) + "withECDSA" ;
121+ return getDigestAlgName (ecDsaParams .getAlgorithm ( )) + "withECDSA" ;
122122 }
123123 }
124124
Original file line number Diff line number Diff line change @@ -74,9 +74,9 @@ static String getSignatureName(
7474 }
7575 if (sigAlgId .getAlgorithm ().equals (X9ObjectIdentifiers .ecdsa_with_SHA2 ))
7676 {
77- ASN1Sequence ecDsaParams = ASN1Sequence .getInstance (params );
78-
79- return getDigestAlgName (ASN1ObjectIdentifier . getInstance ( ecDsaParams .getObjectAt ( 0 ) )) + "withECDSA" ;
77+ AlgorithmIdentifier ecDsaParams = AlgorithmIdentifier .getInstance (params );
78+
79+ return getDigestAlgName (ecDsaParams .getAlgorithm ( )) + "withECDSA" ;
8080 }
8181 }
8282
You can’t perform that action at this time.
0 commit comments