<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 19: Using wrong encryption algorithm?</title><link>https://sourceforge.net/p/sharpssh/bugs/19/</link><description>Recent changes to 19: Using wrong encryption algorithm?</description><atom:link href="https://sourceforge.net/p/sharpssh/bugs/19/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 14 Jun 2011 20:24:51 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/sharpssh/bugs/19/feed.rss" rel="self" type="application/rss+xml"/><item><title>Using wrong encryption algorithm?</title><link>https://sourceforge.net/p/sharpssh/bugs/19/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I download the SharpSSH v1.1.1.13 source code last week.  I use DotNet Framework 4.0 and was following coments on the CodeProject site for removing the dependency on the Mentalis Security library written for DotNet 1.x.  I found 2 "new" places to make changes, in the HMACMD596 and HMACSHA196 classes, but one of them seems wrong.  I couldn't find anything in previous bug reports to say anyone had questioned this before, so here goes.&lt;/p&gt;
&lt;p&gt;In Tamir.SharpSsh.jsch.jce.HMACSHA196.init(byte[] key) method, the method name, constant name, and the comments all reference using SHA1-96 algorithm, but the code has:&lt;br /&gt;
mentalis_mac = new Org.Mentalis.Security.Cryptography.HMAC(new System.Security.Cryptography.MD5CryptoServiceProvider(),  key);&lt;br /&gt;
which is using the MD5 algorithm.&lt;br /&gt;
Is that correct?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">ScottS</dc:creator><pubDate>Tue, 14 Jun 2011 20:24:51 -0000</pubDate><guid>https://sourceforge.netaed8db3912276cb84fff635af2785e77542e643b</guid></item></channel></rss>