You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
597 B
28 lines
597 B
using System;
|
|
using System.IO;
|
|
|
|
using Org.BouncyCastle.Crypto.IO;
|
|
|
|
namespace Org.BouncyCastle.Crypto.Operators
|
|
{
|
|
public class DefaultSignatureCalculator
|
|
: IStreamCalculator
|
|
{
|
|
private readonly SignerSink mSignerSink;
|
|
|
|
public DefaultSignatureCalculator(ISigner signer)
|
|
{
|
|
this.mSignerSink = new SignerSink(signer);
|
|
}
|
|
|
|
public Stream Stream
|
|
{
|
|
get { return mSignerSink; }
|
|
}
|
|
|
|
public object GetResult()
|
|
{
|
|
return new DefaultSignatureResult(mSignerSink.Signer);
|
|
}
|
|
}
|
|
}
|
|
|