question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for KeyFactory Interfaces

See original GitHub issue

We are working on a project to benchmark improvements that can be achieved by using ACCP that currently uses BouncyCastle. However, the KeyFactory algorithm types are not yet supported by ACCP. Specifically, the “RSA” algorithm would be most helpful for our use case. Do you have plans to support that in the future?

For example, BouncyCastle exposes this utility to convert keys. https://www.bouncycastle.org/docs/pkixdocs1.5on/org/bouncycastle/openssl/jcajce/JcaPEMKeyConverter.html

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
huyngo1216commented, Mar 26, 2020

Dropping in the library and running against some benchmarking we have in place, we’re seeing a ~25% latency + throughput improvement!

Following up on your second point:

Creating multiple copies of a provider is an anti-pattern and can cause performance problems

Is there any reference documentation/blog posts you can point me to so I can read up on that?

0reactions
SalusaSeconduscommented, Mar 26, 2020

I don’t have any references from that, just personal experience.

I found some code which kept creating new instances of BouncyCastleProvider. That’s an expensive object to create and resulted in extra GC pressure as the old ones got discarded.

But 25%? That’s great! Things like this are exactly why we released this library in the first place and it’s nice to hear that it is helping out others.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyFactory (Java Platform SE 8 ) - Oracle Help Center
Every implementation of the Java platform is required to support the following standard KeyFactory algorithms: DiffieHellman; DSA; RSA.
Read more >
KeyFactory - Android Developers
android.app.appsearch.observer. Overview. Interfaces. ObserverCallback. Classes. DocumentChangeInfo · ObserverSpec · ObserverSpec.Builder · SchemaChangeInfo.
Read more >
Interface java.security.Key - Washington
The Key interface is the top-level interface for all keys. It defines the functionality shared by all key objects. All keys have three...
Read more >
The KeyFactory Class (Java Security)
Construct a key factory based on the given factory service provider class that is implemented by the given provider and that provides keys...
Read more >
Interface Datastore (2.12.3) | Java client library | Google Cloud
Interface Datastore (2.12.3) ... public interface Datastore extends Service<DatastoreOptions>, ... IncompleteKey incompleteKey1 = keyFactory.newKey();
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found