<div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 1:25 PM, Ben Langfeld <span dir="ltr"><<a href="mailto:ben@langfeld.me" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=ben@langfeld.me&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">ben@langfeld.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">But how do I know which one of those is which hash, since they're not labelled?</div></blockquote><div>
<br></div><div>The *sum programs can tell by the length.  md5 is 32, sha1 is 40, sha256 is 64, etc.  They ignore with warnings lines that don't match length.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_extra"><br><br><div class="gmail_quote">On 22 December 2013 16:11, George Joseph <span dir="ltr"><<a href="mailto:george.joseph@fairview5.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=george.joseph@fairview5.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">george.joseph@fairview5.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The *sum tools will test all lines in a checksum file and will return 0 if any match or 1 if none match.<div>

<br></div><div>md5sum --quiet -c xxx.asc < xxx.tar.gz</div><div><div>sha1sum --quiet -c xxx.asc < xxx.tar.gz</div>
</div><div><div>sha256sum --quiet -c xxx.asc < xxx.tar.gz</div></div><div><br></div><div>where xxx.asc is </div><div><div>ecb9ac329728d0b2b947d4b2fba85b53b00dbf81737fc6db7e5e343025f98536  xxx.tar.gz</div><div>28f1a190d4b4d03a36744e9ba8518c8ca42e9276  xxx.tar.gz</div>


<div>5feb02a70a357cbbca1458498d5ed655  xxx.tar.gz</div></div><div><br></div><div>will all return 0.</div><div><br></div><div><div>sha512sum --quiet -c xxx.asc < xxx.tar.gz</div></div><div><br></div><div>will return 1 because there's no sha512 line in the text file.</div>


<div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Sun, Dec 22, 2013 at 9:27 AM, Matthew Jordan <span dir="ltr"><<a href="mailto:mjordan@digium.com" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=mjordan@digium.com&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">mjordan@digium.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Dec 22, 2013 at 7:31 AM, Ben Langfeld <span dir="ltr"><<a href="mailto:ben@langfeld.me" target="_blank" onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=ben@langfeld.me&cc=&bcc=&su=&body=','_blank','location=yes,menubar=yes,resizable=yes,width=800,height=600');return false;">ben@langfeld.me</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If everything went in one checksum file, how would one (or shasum) tell each of the checksums apart?<div>



<br></div><div>I'll submit a patch to mkrelease for the extra files.</div></div><div class="gmail_extra">
<br clear="all"></div></blockquote><div><br></div><div>I was thinking a JSON blob, but I'm perfectly happy with multiple files as well. <br></div></div><span><font color="#888888"><br>-- <br><div dir="ltr">
<div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div>
<div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div>
<span class="HOEnZb"><font color="#888888">


</font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></font></span></div></div><span class="HOEnZb"><font color="#888888">
<br></font></span></div></div><span class="HOEnZb"><font color="#888888"><div>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></div></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div></div>