Comments (4)
Whats the workaround for this ?
from bc-java.
You can create DERApplicationSpecific with tag number - 64
example
ByteArrayInputStream asnPrivateTag = new ByteArrayInputStream(Hex.decode("C00474657374"));
DERApplicationSpecific asn1Primitive = new ASN1InputStream(asnPrivateTag).readObject();
ByteArrayOutputStream outputAsn = new ByteArrayOutputStream();
DERApplicationSpecific privateTag = new DERApplicationSpecific(asn1Primitive.isConstructed(), asn1Primitive.getApplicationTag() - 64, asn1Primitive.getContents());
new ASN1OutputStream(outputAsn).writeObject(asn1Primitive);
from bc-java.
Yes I was curious why the library was missing this class. The "workaround" seems to work for writing, but it would be better to have an explicit class for private tags coming in.
from bc-java.
I've merged 959 with a few corrections. Marking this one as now resolved.
from bc-java.
Related Issues (20)
- TLS fatal alert bad_certificate(42) - empty extension sequence found HOT 2
- JcaPGPKeyConverter cannot properly convert EC keys HOT 7
- Strange check in org.bouncycastle.asn1.cms.KEMRecipientInfo.KEMRecipientInfo(ASN1Sequence) HOT 2
- Handshake timeouts with BC TLS/PSK implementation
- org.bouncycastle.asn1.ASN1TaggedObject#getObject removed, How can i solve it? HOT 1
- App compilation issue after upgrading bouncycastle from 1.76 to 1.78.1 HOT 5
- bcprov-jdk18on (1.77) is incompitible with Openjdk17 HOT 2
- bc-jmail Bundle does not import jakarta.mail packages where bc-mail imports javax.mail packages HOT 6
- getExternalPSK throwing a checked exception
- Potential performance issues in ByteUtils.toHexString(byte[] input) HOT 3
- PGP: Remove support for legacy X448, legacy Ed448? HOT 2
- RSA DigestSignatureSpi returns true from supportsParameter for PKCS#8 encoded ECPrivateKey
- SPHINCSPlus sha2_128f and sha2_128s constants are swapped
- IllegalArgumentException when Building Certificate with Delta Certificate Extension if Subject and Issuer are the Same
- bcpkix-jdk18on 1.78.1: 3 files found with path 'META-INF/versions/9/OSGI-INF/MANIFEST.MF' HOT 7
- Problem with pgp decryption and HSM based ECC key
- bc-fips 1.0.2.5 not documented on www.bouncycastle.org HOT 3
- maven install with maven-shade-plugin failed. HOT 1
- Converting Ed25519, Ed448 keys fails if encoding has leading 0 HOT 1
- When gradle `plugin` transitive dependency: Unsupported class file major version 65 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bc-java.