Comments (7)
The BC Java ASN.1 API was revamped a few years ago, but those changes weren't carried over to BC C#, which still uses the older style. So unfortunately, a literal translation will not be possible, but it's usually pretty simple to convert nonetheless.
Is the code you want to port a part of the Java BC distribution?
from bc-csharp.
I can port this myself, but just wanted to be ready for conflicts in case I get them.
from bc-csharp.
When I inherit from : Org.BouncyCastle.Asn1.Asn1Sequence, IEnumerable
the compiler acts really strange. It says that I'm not implementing the member/method, but I am. I even let intellisense create it for me.
Is there something special/unusual about the base class to confuse VS2017?
CS0534 'DLSequence' does not implement inherited abstract member 'Asn1Object.Encode(DerOutputStream)'
CS0115 'DLSequence.Encode(DerOutputStream)': no suitable method found to override
from bc-csharp.
Also it does seem like this class is implemented in the Java BC distro
from bc-csharp.
Can I see your code? Maybe I can help.
from bc-csharp.
Make sure your override is marked internal
from bc-csharp.
To be clear, I would guess porting the ASN.1 classes (DLSequence etc.) is not the way to go. By "usually pretty simple to convert" I meant to convert the java code you're actually porting (that uses the ASN.1 API) to use the existing C# API instead.
from bc-csharp.
Related Issues (20)
- itext7 - 'Pkcs12Store' exists in BouncyCastle.Crypto and BouncyCastle.Cryptography in c# HOT 1
- DefaultTlsServer TLS 1.2 Async Handshake Problems. HOT 1
- Support for ParamSets: TS26-B, TS26-C, TS26-D for GOST34.10-2012-256 HOT 2
- Convert Ed25519PrivateKeyParameters to X25519PrivateKeyParameters HOT 5
- DTLS fragmentation error? HOT 4
- Issues with ECC, S/MIME and BouncyCastle HOT 3
- Warning using Bouncy Castle v.2.3.0 HOT 3
- Release notes for v2.3.0 HOT 2
- SPHINCS+ key info encoding fails HOT 2
- SECG Key Agreement / Key Derivation functions not supported? HOT 4
- RSA/ECB/OAEPWithSHA-256AndMGF1Padding HOT 3
- Set Licence type expression on package info HOT 1
- Problem reading nested Octet Strings HOT 22
- Allow removal of "Version" header in PGP encryption HOT 6
- Where is IESCipher.ECIESwithAESCBC?
- I need SM9
- `NullReferenceException` error when trying to get a recipient based on `SubjectKeyIdentifier` HOT 1
- Broken space handling in Common Name since version 2.3.0 HOT 1
- CmsEnvelope decryption ECCP256 / AES128CBC failed HOT 2
- PgpPublicKey.RemoveCert can delete wrong items.
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-csharp.