From 4fab3eb443554ebc060043ef8972d1b7bc6ee0f8 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 4 Mar 2024 21:09:20 +0700 Subject: Add other dhSinglePass OID entries to registries --- crypto/src/security/GeneratorUtilities.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'crypto/src/security/GeneratorUtilities.cs') diff --git a/crypto/src/security/GeneratorUtilities.cs b/crypto/src/security/GeneratorUtilities.cs index e22fbd139..bed981739 100644 --- a/crypto/src/security/GeneratorUtilities.cs +++ b/crypto/src/security/GeneratorUtilities.cs @@ -227,8 +227,16 @@ namespace Org.BouncyCastle.Security "DIFFIEHELLMAN"); AddKpgAlgorithm("DSA"); AddKpgAlgorithm("EC", - // TODO Should this be an alias for ECDH? - X9ObjectIdentifiers.DHSinglePassStdDHSha1KdfScheme); + X9ObjectIdentifiers.DHSinglePassStdDHSha1KdfScheme, + SecObjectIdentifiers.dhSinglePass_stdDH_sha224kdf_scheme, + SecObjectIdentifiers.dhSinglePass_stdDH_sha256kdf_scheme, + SecObjectIdentifiers.dhSinglePass_stdDH_sha384kdf_scheme, + SecObjectIdentifiers.dhSinglePass_stdDH_sha512kdf_scheme, + X9ObjectIdentifiers.DHSinglePassCofactorDHSha1KdfScheme, + SecObjectIdentifiers.dhSinglePass_cofactorDH_sha224kdf_scheme, + SecObjectIdentifiers.dhSinglePass_cofactorDH_sha256kdf_scheme, + SecObjectIdentifiers.dhSinglePass_cofactorDH_sha384kdf_scheme, + SecObjectIdentifiers.dhSinglePass_cofactorDH_sha512kdf_scheme); AddKpgAlgorithm("ECDH", "ECIES"); AddKpgAlgorithm("ECDHC"); -- cgit 1.5.1