Esempio n. 1
0
        public FoxmlContentDigest(FoxmlChecksumTypes type, string digest)
        {
            switch (type)
            {
            case FoxmlChecksumTypes.DEFAULT: this.type = "MD5"; break;

            case FoxmlChecksumTypes.DISABLED: this.type = "DISABLED"; break;

            case FoxmlChecksumTypes.MD5: this.type = "MD5"; break;

            case FoxmlChecksumTypes.SHA1: this.type = "SHA-1"; break;

            case FoxmlChecksumTypes.SHA256: this.type = "SHA-256"; break;

            case FoxmlChecksumTypes.SHA384: this.type = "SHA-384"; break;

            case FoxmlChecksumTypes.SHA512: this.type = "SHA-512"; break;

            default: this.type = "DISABLED"; break;
            }
            this.digest = digest;
        }
Esempio n. 2
0
 public FoxmlContentDigest(FoxmlChecksumTypes type, string digest)
 {
     switch (type)
     {
         case FoxmlChecksumTypes.DEFAULT: this.type = "MD5"; break;
         case FoxmlChecksumTypes.DISABLED: this.type = "DISABLED"; break;
         case FoxmlChecksumTypes.MD5: this.type = "MD5"; break;
         case FoxmlChecksumTypes.SHA1: this.type = "SHA-1"; break;
         case FoxmlChecksumTypes.SHA256: this.type = "SHA-256"; break;
         case FoxmlChecksumTypes.SHA384: this.type = "SHA-384"; break;
         case FoxmlChecksumTypes.SHA512: this.type = "SHA-512"; break;
         default: this.type = "DISABLED"; break;
     }
     this.digest = digest;
 }