Ejemplo n.º 1
0
        /// <summary>
        ///     Extend signature to publication.
        /// </summary>
        /// <param name="signature">KSI signature</param>
        /// <param name="publicationRecord">publication</param>
        /// <returns>extended KSI signature</returns>
        public IKsiSignature Extend(IKsiSignature signature, PublicationRecordInPublicationFile publicationRecord)
        {
            if (publicationRecord == null)
            {
                throw new ArgumentNullException(nameof(publicationRecord));
            }

            return(Extend(signature, publicationRecord.ConvertToPublicationRecordInSignature()));
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Extend signature to publication.
 /// </summary>
 /// <param name="calendarHashChain">extended calendar hash chain</param>
 /// <param name="publicationRecord">extended publication record</param>
 /// <param name="signatureFactory">signature factory to be used when creating extended signature</param>
 /// <returns>extended KSI signature</returns>
 public IKsiSignature Extend(CalendarHashChain calendarHashChain, PublicationRecordInPublicationFile publicationRecord, IKsiSignatureFactory signatureFactory = null)
 {
     return(Extend(calendarHashChain, publicationRecord?.ConvertToPublicationRecordInSignature(), signatureFactory));
 }