org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value
please look my android code about verify signature using bouncycastle. condition: have one cms file and root.crt, use root.crt verify cms file. first use:openssl smime -verify -CAfile root.crt -in index.cms -out index_verify.log, it’s successful. but i want to code to android app, but it’s bad. code as below:
Unexpected content JWS with bouncy castle JWT
I’m trying to generate a JWT
with base64
encoded json
string.
When the json
string is not encoded as base64
everything works but when it does I get an error about Unexpected JWS content
.
This is the code that creates the JWT
:
The type org.bouncycastle.cms.cmsutils is not visible
I want to subclass some BC classes, in my Java project, but I faced issue with import of CMSUtils class. In order to reproduce issue in a simple project, I created quick-start Maven project (Eclipse 2024-06 IDE). Here are some details:
bcprov-jdk18on 1.74 upgrade failing with jcajcehelper no class found error
We bcprov-jdk16 1.44 and bcprov-jdk14 1.47 in my project pom.xml file.
java.lang.NoClassDefFoundError with upgrading bcpro-jdk15 to bcpro-jdk18on issue
We have uploaded BouncyCastle jar and getting following error at runtime