From e049cab36e9e68adff298acc24acdaa2551f72ef Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 29 Jun 2022 20:55:57 +0700 Subject: Refactoring around Stream signers --- crypto/src/cmp/ProtectedPkiMessageBuilder.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'crypto/src/cmp') diff --git a/crypto/src/cmp/ProtectedPkiMessageBuilder.cs b/crypto/src/cmp/ProtectedPkiMessageBuilder.cs index 269910cc6..6440c3f4e 100644 --- a/crypto/src/cmp/ProtectedPkiMessageBuilder.cs +++ b/crypto/src/cmp/ProtectedPkiMessageBuilder.cs @@ -145,11 +145,7 @@ namespace Org.BouncyCastle.Cmp private byte[] CalculateSignature(IStreamCalculator signer, PkiHeader header, PkiBody body) { - Asn1EncodableVector avec = new Asn1EncodableVector(2); - avec.Add(header); - avec.Add(body); - - new DerSequence(avec).EncodeTo(signer.Stream); + new DerSequence(header, body).EncodeTo(signer.Stream); object result = signer.GetResult(); if (result is DefaultSignatureResult sigResult) -- cgit 1.4.1