[prev in list] [next in list] [prev in thread] [next in thread]
List: bouncycastle-crypto-dev
Subject: [dev-crypto] Fwd: Exception in Constructor for PGPSignatureGenerator
From: Bhushan Jain <bhushan1988 () gmail ! com>
Date: 2009-01-25 19:50:25
Message-ID: 62fd3c0a0901251138t1e7de325uffc8aef0eace66f6 () mail ! gmail ! com
[Download RAW message or body]
---------- Forwarded message ----------
From: Bhushan Jain <bhushan1988@gmail.com>
Date: Sun, Jan 25, 2009 at 4:04 PM
Subject: Exception in Constructor for PGPSignatureGenerator
To: dev-crypto@bouncycastle.org, David Hook <dgh@lockboxlabs.com>
Hi,
Constructor for PGPSignatureGenerator gives following exception only for
following HashAlgorithmTags:---
org.bouncycastle.openpgp.PGPException: unknown hash algorithm tag in
getDigestName
PGPSignatureGenerator sGen = new
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.DOUBLE_SHA,
"BC");
PGPSignatureGenerator sGen = new
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.HAVAL_5_160,
"BC");
PGPSignatureGenerator sGen = new
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.TIGER_192,
"BC");
For other HashAlgorithmTags, it works correctly.
Is this a bug which is not yet removed? Are these algorithms not supported?
--
Thanks,
--------------
Bhushan
--
Thanks,
--------------
Bhushan
[Attachment #3 (text/html)]
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b \
class="gmail_sendername">Bhushan Jain</b> <span dir="ltr"><<a \
href="mailto:bhushan1988@gmail.com">bhushan1988@gmail.com</a>></span><br>
Date: Sun, Jan 25, 2009 at 4:04 PM<br>Subject: Exception in Constructor for \
PGPSignatureGenerator<br>To: <a \
href="mailto:dev-crypto@bouncycastle.org">dev-crypto@bouncycastle.org</a>, David Hook \
<<a href="mailto:dgh@lockboxlabs.com">dgh@lockboxlabs.com</a>><br> \
<br><br>Hi,<br><br clear="all">Constructor for PGPSignatureGenerator gives following \
exception only for following \
HashAlgorithmTags:---<br><br>org.bouncycastle.openpgp.PGPException: unknown hash \
algorithm tag in getDigestName<br> <br>
PGPSignatureGenerator sGen = new \
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.DOUBLE_SHA, \
"BC");<br>PGPSignatureGenerator sGen = new \
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.HAVAL_5_160, \
"BC");<br>
PGPSignatureGenerator sGen = new \
PGPSignatureGenerator(pgpSec.getKeyEncryptionAlgorithm(),HashAlgorithmTags.TIGER_192, \
"BC");<br><br><br>For other HashAlgorithmTags, it works correctly.<br>Is \
this a bug which is not yet removed? Are these algorithms not supported?<br>
-- <br> Thanks,<br>--------------<br><font color="#888888"> Bhushan<br><br>
</font></div><br><br clear="all"><br>-- <br> Thanks,<br>--------------<br> \
Bhushan<br><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic