-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SECG Key Agreement / Key Derivation functions not supported? #523
Comments
I see that this OID and other similar ones are not mapped (bc-csharp usually lags bc-java on what features are supported). However I think we already have the underlying implementation so it may be a reasonably simple fix. |
I've added |
Sorry for the late response. Built the BC-Sharp code from the latest commit.
I still cannot figure out why it fails, because the code finds the corresponding private key from the supplied keystore. |
Any update on this thread? I am facing the same problem, I updated to the latest version of BouncyCastle and getting the same error as in the latest comment. Is there any solution to this? |
Any news on this? I am facing the same issue. |
One of my workmates made an XML encryption / decryption process with certificates and CMS in Java using latest Bouncy Castle version.
Our customers want to implement those methods in .NET, so I'm trying to re-create it in C# using BC-CSharp. First, I have an encrypted XML in a stream and trying to decrypt it. The certificates / private keys used for encryption has 256-bit EC keys. The code what I've made so far:
The line
CmsTypedStream recData = recipient.GetContentStream(privateKey);
throws an exception:Debugging through BC-CSharp source code, I've checked the algorithms.
The
wrapAlgOid
isaes128-wrap (2.16.840.1.101.3.4.1.5)
, which may not be a problem, but theagreeAlgOid
isdhSinglePass-stdDH-sha256kdf-scheme (1.3.132.1.11.1)
, which exists inSecObjectIdentifiers
class, but not mapped inAgreementUtilities
class.Is it possible, that
dhSinglePass-stdDH-sha256kdf-scheme
key agreement algorithm is not supported in C# yet and was implemented only in BC-Java? Or I should use other way to decrypt that kind of data?The text was updated successfully, but these errors were encountered: