bouncycastle

ECDSA Digital Signature Verification on Android P

淺唱寂寞╮ 提交于 2021-01-27 13:19:42
问题 import android.os.Bundle; import android.util.Base64; import android.widget.Toast; import org.bouncycastle.jce.provider.BouncyCastleProvider; // implementation 'org.bouncycastle:bcprov-jdk16:1.46' import java.security.KeyFactory; import java.security.PublicKey; import java.security.Security; import java.security.Signature; import java.security.spec.X509EncodedKeySpec; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { static final String

Certificate has unsupported critical extension

元气小坏坏 提交于 2021-01-07 03:26:03
问题 I am trying to validate a certificate chain using Bouncy Castle library in c# with the following code, but I get the exception: "certificate has an unsupported critical extension". The exception happens in this method: validator.Validate(path, param) My certificate has a critical extention: name: "Extended key usuage" , oid: 2.5.29.37, value: ocsp Stamping (1.3.6.1.5.5.7.3.9) public static bool ValidateKeyChain(X509Certificate client, List<X509Certificate> trustedCerts){ bool found = false;

Certificate has unsupported critical extension

二次信任 提交于 2021-01-07 03:25:44
问题 I am trying to validate a certificate chain using Bouncy Castle library in c# with the following code, but I get the exception: "certificate has an unsupported critical extension". The exception happens in this method: validator.Validate(path, param) My certificate has a critical extention: name: "Extended key usuage" , oid: 2.5.29.37, value: ocsp Stamping (1.3.6.1.5.5.7.3.9) public static bool ValidateKeyChain(X509Certificate client, List<X509Certificate> trustedCerts){ bool found = false;

META-INF/versions/9/module-info.class: broken class file? (This feature requires ASM6)

早过忘川 提交于 2020-12-30 05:34:19
问题 I'm having issues with Bouncycastle, which only arise when running the :lint task. Generally it seems to be a Java 9 byte-code version 53.0 / ASM version conflict. These are the dependencies: // https://mvnrepository.com/artifact/org.bouncycastle implementation "org.bouncycastle:bcprov-jdk15on:1.64" implementation "org.bouncycastle:bcpkix-jdk15on:1.64" Which cause the :lint task to throw processing errors: > Task :mobile:lint Error processing bcpkix-jdk15on-1.64.jar:META-INF/versions/9/module

META-INF/versions/9/module-info.class: broken class file? (This feature requires ASM6)

守給你的承諾、 提交于 2020-12-30 05:34:07
问题 I'm having issues with Bouncycastle, which only arise when running the :lint task. Generally it seems to be a Java 9 byte-code version 53.0 / ASM version conflict. These are the dependencies: // https://mvnrepository.com/artifact/org.bouncycastle implementation "org.bouncycastle:bcprov-jdk15on:1.64" implementation "org.bouncycastle:bcpkix-jdk15on:1.64" Which cause the :lint task to throw processing errors: > Task :mobile:lint Error processing bcpkix-jdk15on-1.64.jar:META-INF/versions/9/module

How I know if I using Bouncy Castle from jar or the one implemented in Android?

廉价感情. 提交于 2020-12-29 08:49:27
问题 How I know if I using Bouncy Castle from jar or the one implemented in Android? I've downloaded from https://www.bouncycastle.org/latest_releases.html and add jar to my Android Studio project. How can I check if I am using it (The one I downloaded)? 回答1: For at least the last several versions Android has fixed the namespace conflict by renaming the bouncycastle classes they use to com.android.**. I'm not exactly sure when this occurred, but looking at the source code repository at https:/

Error including bouncycastle provider

僤鯓⒐⒋嵵緔 提交于 2020-12-05 12:35:55
问题 I need to use bouncycastle provider library in my project. I have included it the gradle project. apply plugin: 'application' sourceCompatibility = '1.6' version = '1.0.0' mainClassName = 'path.to.main.file' dependencies { compile "org.mariadb.jdbc:mariadb-java-client:+" compile "org.bouncycastle:bcprov-jdk16:+" compile "commons-codec:commons-codec:+" testCompile "junit:junit:+" } The project build successfully. But when I try to run the project. It is not able to find the bouncycastle