[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/54057] New: call to javax.crypto.Mac.init() with 5 charac
From: |
patrick.melo at gmail dot com |
Subject: |
[Bug classpath/54057] New: call to javax.crypto.Mac.init() with 5 character password produces java.security.InvalidKeyException: Key too short |
Date: |
Fri, 20 Jul 2012 21:07:21 +0000 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54057
Bug #: 54057
Summary: call to javax.crypto.Mac.init() with 5 character
password produces java.security.InvalidKeyException:
Key too short
Classification: Unclassified
Product: classpath
Version: 0.98
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: address@hidden
ReportedBy: address@hidden
On my Mac, running the Oracle JRE, when I call javax.crypto.Mac.init() with a 5
character password I get no complaints. With classpath on my embedded device it
throws a java.security.InvalidKeyException: Key too short.
I'm including the sample code along with output below.
==Oracle JRE==
$ java KeySample
Done
$ java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
$
==classpath==
# jamvm KeySample
Exception in thread "main" java.security.InvalidKeyException: Key too short
at gnu.javax.crypto.mac.HMac.init(HMac.java:148)
at gnu.javax.crypto.jce.mac.MacAdapter.engineInit(MacAdapter.java:119)
at javax.crypto.Mac.init(Mac.java:349)
at javax.crypto.Mac.init(Mac.java:328)
at KeySample.<init>(KeySample.java:14)
at KeySample.main(KeySample.java:8)
# jamvm -version
java version "1.5.0"
JamVM version 1.5.4
Copyright (C) 2003-2010 Robert Lougher <address@hidden>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Build information:
Execution Engine: direct-threaded interpreter with stack-caching
Compiled with: gcc 4.4.6
Boot Library Path: /usr/lib/classpath
Boot Class Path: /usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip
#
- [Bug classpath/54057] New: call to javax.crypto.Mac.init() with 5 character password produces java.security.InvalidKeyException: Key too short,
patrick.melo at gmail dot com <=