<commit_before>﻿using System.IO;

namespace SikkerDigitalPost.Net.KlientApi.Xml
{
    /// <summary>
    /// Represents the &lt;reference&gt; element of an Xml Signature with http://www.w3.org/2001/04/xmlenc#sha256 as the digest method.
    /// </summary>
    internal class Sha256Reference : System.Security.Cryptography.Xml.Reference
    {
        public Sha256Reference()
        {
            DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
        }

        public Sha256Reference(Stream stream): base(stream)
        {
            DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
        }

        public Sha256Reference(string uri): base(uri)
        {
            DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
        }

        public Sha256Reference(byte[] bytes): base(new MemoryStream(bytes))
        {
            DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
        }
    }
}<commit_msg>Liten overlastfiks i SHA256Reference<commit_after>﻿using System.IO;

namespace SikkerDigitalPost.Net.KlientApi.Xml
{
    /// <summary>
    /// Represents the &lt;reference&gt; element of an Xml Signature with http://www.w3.org/2001/04/xmlenc#sha256 as the digest method.
    /// </summary>
    internal class Sha256Reference : System.Security.Cryptography.Xml.Reference
    {
        public Sha256Reference()
        {
            SetDigest();
        }

        public Sha256Reference(Stream stream): base(stream)
        {
            SetDigest();
        }

        public Sha256Reference(string uri): base(uri)
        {
            SetDigest();
        }

        public Sha256Reference(byte[] bytes): base(new MemoryStream(bytes))
        {
           SetDigest();
        }

        private void SetDigest()
        {
            DigestMethod = "http://www.w3.org/2001/04/xmlenc#sha256";
        }
    }
}
{'fraction_non_alphanumeric': 0.12432723358449946, 'fraction_numerical': 0.05543595263724435, 'mean_word_length': 2.0829187396351574, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 7, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1457564', 'n_tokens_mistral': 640, 'n_tokens_neox': 556, 'n_words': 98}