diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 12:04:57 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 12:04:57 +0700 |
commit | 6ec14b34bcc90f0dba33c5bf5197c67efd4edee4 (patch) | |
tree | 8a7278760362fb5ddd6f3ebd18f679b9651f9852 /crypto/src/security/PublicKeyFactory.cs | |
parent | Refactoring (diff) | |
download | BouncyCastle.NET-ed25519-6ec14b34bcc90f0dba33c5bf5197c67efd4edee4.tar.xz |
Support GOST agreement OIDs
Diffstat (limited to 'crypto/src/security/PublicKeyFactory.cs')
-rw-r--r-- | crypto/src/security/PublicKeyFactory.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/src/security/PublicKeyFactory.cs b/crypto/src/security/PublicKeyFactory.cs index 49ad49dd0..e0c7ce950 100644 --- a/crypto/src/security/PublicKeyFactory.cs +++ b/crypto/src/security/PublicKeyFactory.cs @@ -228,7 +228,9 @@ namespace Org.BouncyCastle.Security return new Ed448PublicKeyParameters(GetRawKey(keyInfo)); } else if (algOid.Equals(RosstandartObjectIdentifiers.id_tc26_gost_3410_12_256) - || algOid.Equals(RosstandartObjectIdentifiers.id_tc26_gost_3410_12_512)) + || algOid.Equals(RosstandartObjectIdentifiers.id_tc26_gost_3410_12_512) + || algOid.Equals(RosstandartObjectIdentifiers.id_tc26_agreement_gost_3410_12_256) + || algOid.Equals(RosstandartObjectIdentifiers.id_tc26_agreement_gost_3410_12_512)) { Gost3410PublicKeyAlgParameters gostParams = Gost3410PublicKeyAlgParameters.GetInstance(algID.Parameters); DerObjectIdentifier publicKeyParamSet = gostParams.PublicKeyParamSet; |