From 65b588a45feb07f27716288ff15f784b5bf73812 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 31 Jan 2019 19:26:09 +0700 Subject: Fixes and tidying up for release --- crypto/src/security/DigestUtilities.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/src/security') diff --git a/crypto/src/security/DigestUtilities.cs b/crypto/src/security/DigestUtilities.cs index 7685e3384..a17a9abee 100644 --- a/crypto/src/security/DigestUtilities.cs +++ b/crypto/src/security/DigestUtilities.cs @@ -259,6 +259,11 @@ namespace Org.BouncyCastle.Security return (string) algorithms[oid.Id]; } + public static byte[] CalculateDigest(DerObjectIdentifier id, byte[] input) + { + return CalculateDigest(id.Id, input); + } + public static byte[] CalculateDigest(string algorithm, byte[] input) { IDigest digest = GetDigest(algorithm); -- cgit 1.4.1