GithubHelp home page GithubHelp logo

Comments (7)

peterdettman avatar peterdettman commented on August 17, 2024

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.

ExperimentsAndIdeas avatar ExperimentsAndIdeas commented on August 17, 2024

I can port this myself, but just wanted to be ready for conflicts in case I get them.

from bc-csharp.

ExperimentsAndIdeas avatar ExperimentsAndIdeas commented on August 17, 2024

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.

ExperimentsAndIdeas avatar ExperimentsAndIdeas commented on August 17, 2024

Also it does seem like this class is implemented in the Java BC distro

https://github.com/bcgit/bc-java/blob/ae63147936376e85e068c7b63373d4e930c3fe58/core/src/main/java/org/bouncycastle/asn1/DLSequence.java

from bc-csharp.

jstedfast avatar jstedfast commented on August 17, 2024

Can I see your code? Maybe I can help.

from bc-csharp.

jstedfast avatar jstedfast commented on August 17, 2024

Make sure your override is marked internal

from bc-csharp.

peterdettman avatar peterdettman commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.