From 504c1c8875cfdfd1e4e25ffdb5451bbeece36e26 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 29 Oct 2020 10:28:30 +0100 Subject: added hash function (sha256) in log parameters --- instance.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'instance.go') diff --git a/instance.go b/instance.go index 46fcaa9..12415f0 100644 --- a/instance.go +++ b/instance.go @@ -30,6 +30,7 @@ type LogParameters struct { AnchorPool *x509.CertPool // for chain verification AnchorList []*x509.Certificate // for access to the raw certificates Signer crypto.Signer + HashType crypto.Hash // hash function used by Trillian } // NewInstance returns an initialized Instance @@ -70,6 +71,7 @@ func NewLogParameters(treeId int64, prefix string, anchorPath, keyPath string) ( AnchorPool: anchorPool, AnchorList: anchorList, Signer: key, + HashType: crypto.SHA256, }, nil } -- cgit v1.2.3