<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 19: Using wrong encryption algorithm?</title><link href="https://sourceforge.net/p/sharpssh/bugs/19/" rel="alternate"/><link href="https://sourceforge.net/p/sharpssh/bugs/19/feed.atom" rel="self"/><id>https://sourceforge.net/p/sharpssh/bugs/19/</id><updated>2011-06-14T20:24:51Z</updated><subtitle>Recent changes to 19: Using wrong encryption algorithm?</subtitle><entry><title>Using wrong encryption algorithm?</title><link href="https://sourceforge.net/p/sharpssh/bugs/19/" rel="alternate"/><published>2011-06-14T20:24:51Z</published><updated>2011-06-14T20:24:51Z</updated><author><name>ScottS</name><uri>https://sourceforge.net/u/scottsteesy/</uri></author><id>https://sourceforge.netaed8db3912276cb84fff635af2785e77542e643b</id><summary type="html">&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;</summary></entry></feed>