# HG changeset patch # User vinnie # Date 1329220061 0 # Node ID 861c6a6c78dec66737f638a2e2a4c0682b9d3c2f # Parent 95aeecf515eb78f777ee7b293ecedc7007425492 7142888: sun/security/tools/jarsigner/ec.sh fail on sparc Reviewed-by: xuelei diff -r 95aeecf515eb -r 861c6a6c78de jdk/test/sun/security/tools/jarsigner/ec.sh --- a/jdk/test/sun/security/tools/jarsigner/ec.sh Mon Feb 13 14:31:32 2012 +0000 +++ b/jdk/test/sun/security/tools/jarsigner/ec.sh Tue Feb 14 11:47:41 2012 +0000 @@ -1,5 +1,5 @@ # -# Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it @@ -55,7 +55,8 @@ $KT -alias a -dname CN=a -keyalg ec -genkey -validity 300 || exit 11 $KT -alias b -dname CN=b -keyalg ec -genkey -validity 300 || exit 12 -$KT -alias c -dname CN=c -keyalg ec -genkey -validity 300 || exit 13 +# Ensure that key length is sufficient for the intended hash (SHA512withECDSA) +$KT -alias c -dname CN=c -keyalg ec -genkey -validity 300 -keysize 521 || exit 13 $KT -alias x -dname CN=x -keyalg ec -genkey -validity 300 || exit 14 $JARSIGNER -keystore $KS -storepass changeit $JFILE a -debug -strict || exit 21