|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/Cipher.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/Cipher.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/Cipher.java 2012-03-20 16:30:26.570338000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/Cipher.java 2012-03-20 16:39:59.083196000 -0700
|
|
|
b93447 |
@@ -49,7 +49,6 @@ import org.mozilla.jss.util.Assert;
|
|
|
b93447 |
* it is not necessary to call update if all of the data is
|
|
|
b93447 |
* available at once. In this case, all of the input can be processed with one
|
|
|
b93447 |
* call to doFinal .
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.Cipher})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract class Cipher {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/CryptoToken.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/CryptoToken.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/CryptoToken.java 2012-03-20 16:30:26.587338000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/CryptoToken.java 2012-03-20 16:41:54.792964000 -0700
|
|
|
b93447 |
@@ -60,7 +60,6 @@ public interface CryptoToken {
|
|
|
b93447 |
* @param algorithm The algorithm used for the signing/verification.
|
|
|
b93447 |
* @exception java.security.NoSuchAlgorithmException If the given
|
|
|
b93447 |
* algorithm is not supported by this provider.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.Signature})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract org.mozilla.jss.crypto.Signature
|
|
|
b93447 |
getSignatureContext(SignatureAlgorithm algorithm)
|
|
|
b93447 |
@@ -73,7 +72,6 @@ public interface CryptoToken {
|
|
|
b93447 |
* @param algorithm The algorithm used for digesting.
|
|
|
b93447 |
* @exception java.security.NoSuchAlgorithmException If this provider
|
|
|
b93447 |
* does not support the given algorithm.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.MessageDigest})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract JSSMessageDigest
|
|
|
b93447 |
getDigestContext(DigestAlgorithm algorithm)
|
|
|
b93447 |
@@ -89,15 +87,11 @@ public interface CryptoToken {
|
|
|
b93447 |
* @param algorithm The algorithm used for encryption/decryption.
|
|
|
b93447 |
* @exception java.security.NoSuchAlgorithmException If this provider
|
|
|
b93447 |
* does not support the given algorithm.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.Cipher})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract Cipher
|
|
|
b93447 |
getCipherContext(EncryptionAlgorithm algorithm)
|
|
|
b93447 |
throws java.security.NoSuchAlgorithmException, TokenException;
|
|
|
b93447 |
|
|
|
b93447 |
- /**
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.Cipher})
|
|
|
b93447 |
- */
|
|
|
b93447 |
public abstract KeyWrapper
|
|
|
b93447 |
getKeyWrapper(KeyWrapAlgorithm algorithm)
|
|
|
b93447 |
throws java.security.NoSuchAlgorithmException, TokenException;
|
|
|
b93447 |
@@ -123,7 +117,6 @@ public interface CryptoToken {
|
|
|
b93447 |
* @param algorithm The algorithm that the keys will be used with.
|
|
|
b93447 |
* @exception java.security.NoSuchAlgorithmException If this token does not
|
|
|
b93447 |
* support the given algorithm.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.KeyGenerator})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract KeyGenerator
|
|
|
b93447 |
getKeyGenerator(KeyGenAlgorithm algorithm)
|
|
|
b93447 |
@@ -136,7 +129,6 @@ public interface CryptoToken {
|
|
|
b93447 |
* cannot be extracted from the current token.
|
|
|
b93447 |
* @exception InvalidKeyException If the owning token cannot process
|
|
|
b93447 |
* the key to be cloned.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.SecretKeyFactory})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public SymmetricKey cloneKey(SymmetricKey key)
|
|
|
b93447 |
throws SymmetricKey.NotExtractableException,
|
|
|
b93447 |
@@ -151,7 +143,6 @@ public interface CryptoToken {
|
|
|
b93447 |
* DSA, EC, etc.)
|
|
|
b93447 |
* @exception java.security.NoSuchAlgorithmException If this token does
|
|
|
b93447 |
* not support the given algorithm.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.KeyPairGenerator})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract KeyPairGenerator
|
|
|
b93447 |
getKeyPairGenerator(KeyPairAlgorithm algorithm)
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/JSSMessageDigest.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/JSSMessageDigest.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/JSSMessageDigest.java 2012-03-20 16:30:26.595338000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/JSSMessageDigest.java 2012-03-20 16:38:31.987370000 -0700
|
|
|
b93447 |
@@ -41,7 +41,6 @@ import java.security.InvalidKeyException
|
|
|
b93447 |
|
|
|
b93447 |
/**
|
|
|
b93447 |
* A class for performing message digesting (hashing) and MAC operations.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.MessageDigest})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public abstract class JSSMessageDigest {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/JSSSecureRandom.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/JSSSecureRandom.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/JSSSecureRandom.java 2004-04-25 08:02:21.000000000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/JSSSecureRandom.java 2012-03-20 16:39:02.938308000 -0700
|
|
|
b93447 |
@@ -38,7 +38,6 @@ package org.mozilla.jss.crypto;
|
|
|
b93447 |
|
|
|
b93447 |
/**
|
|
|
b93447 |
* An interface for secure random numbers.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.SecureRandom})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public interface JSSSecureRandom {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyGenerator.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyGenerator.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyGenerator.java 2005-11-14 14:15:06.000000000 -0800
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyGenerator.java 2012-03-20 16:39:19.687274000 -0700
|
|
|
b93447 |
@@ -43,7 +43,6 @@ import java.io.CharConversionException;
|
|
|
b93447 |
|
|
|
b93447 |
/**
|
|
|
b93447 |
* Generates symmetric keys for encryption and decryption.
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.KeyGenerator})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public interface KeyGenerator {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyPairGenerator.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyPairGenerator.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyPairGenerator.java 2012-03-20 16:30:25.755340000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyPairGenerator.java 2012-03-20 16:38:03.635426000 -0700
|
|
|
b93447 |
@@ -49,7 +49,6 @@ import java.security.spec.AlgorithmParam
|
|
|
b93447 |
* keygenOnInternalToken to find out if this is happening.
|
|
|
b93447 |
*
|
|
|
b93447 |
* @see org.mozilla.jss.crypto.CryptoToken#getKeyPairGenerator
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.KeyPairGenerator})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public class KeyPairGenerator {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyWrapper.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyWrapper.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/KeyWrapper.java 2004-04-25 08:02:21.000000000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/KeyWrapper.java 2012-03-20 16:39:40.551232000 -0700
|
|
|
b93447 |
@@ -40,9 +40,6 @@ import java.security.InvalidAlgorithmPar
|
|
|
b93447 |
import java.security.PublicKey;
|
|
|
b93447 |
import java.security.InvalidKeyException;
|
|
|
b93447 |
|
|
|
b93447 |
-/**
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link javax.crypto.Cipher})
|
|
|
b93447 |
- */
|
|
|
b93447 |
public interface KeyWrapper {
|
|
|
b93447 |
|
|
|
b93447 |
public void initWrap(SymmetricKey wrappingKey,
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/Signature.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/Signature.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/crypto/Signature.java 2004-04-25 08:02:21.000000000 -0700
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/crypto/Signature.java 2012-03-20 16:38:46.468340000 -0700
|
|
|
b93447 |
@@ -44,7 +44,6 @@ import java.security.spec.AlgorithmParam
|
|
|
b93447 |
* Instances of this class can be obtain from CryptoToken s.
|
|
|
b93447 |
*
|
|
|
b93447 |
* @see org.mozilla.jss.crypto.CryptoToken#getSignatureContext
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead ({@link java.security.Signature})
|
|
|
b93447 |
*/
|
|
|
b93447 |
public class Signature {
|
|
|
b93447 |
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/tests/SigTest.java jss-4.2.6/mozilla/security/jss/org/mozilla/jss/tests/SigTest.java
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/tests/SigTest.java 2005-11-23 15:40:26.000000000 -0800
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/tests/SigTest.java 2012-03-20 16:35:13.653766000 -0700
|
|
|
b93447 |
@@ -37,15 +37,10 @@
|
|
|
b93447 |
|
|
|
b93447 |
/* This program demonstrates how to sign data with keys from JSS
|
|
|
b93447 |
*
|
|
|
b93447 |
- * Most of this code is deprecated look at JCASigTest.java
|
|
|
b93447 |
- *
|
|
|
b93447 |
* The token name can be either the name of a hardware token, or
|
|
|
b93447 |
* one of the internal tokens:
|
|
|
b93447 |
* Internal Crypto Services Token
|
|
|
b93447 |
* Internal Key Storage Token (keys stored in key3.db)
|
|
|
b93447 |
- *
|
|
|
b93447 |
- * @see org.mozilla.jss.tests.JCASigTest
|
|
|
b93447 |
- * @deprecated Use the JCA interface instead
|
|
|
b93447 |
*/
|
|
|
b93447 |
|
|
|
b93447 |
package org.mozilla.jss.tests;
|
|
|
b93447 |
diff -rupN jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/tests/all.pl jss-4.2.6/mozilla/security/jss/org/mozilla/jss/tests/all.pl
|
|
|
b93447 |
--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/tests/all.pl 2007-12-20 10:38:44.000000000 -0800
|
|
|
b93447 |
+++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/tests/all.pl 2012-03-20 16:36:37.711598000 -0700
|
|
|
b93447 |
@@ -534,6 +534,10 @@ $testname = "Mozilla-JSS JCA Signature "
|
|
|
b93447 |
$command = "$java -cp $jss_classpath org.mozilla.jss.tests.JCASigTest $testdir $pwfile";
|
|
|
b93447 |
run_test($testname, $command);
|
|
|
b93447 |
|
|
|
b93447 |
+$testname = "Mozilla-JSS NSS Signature ";
|
|
|
b93447 |
+$command = "$java -cp $jss_classpath org.mozilla.jss.tests.SigTest $testdir $pwfile";
|
|
|
b93447 |
+run_test($testname, $command);
|
|
|
b93447 |
+
|
|
|
b93447 |
$testname = "Secret Decoder Ring";
|
|
|
b93447 |
$command = "$java -cp $jss_classpath org.mozilla.jss.tests.TestSDR $testdir $pwfile";
|
|
|
b93447 |
run_test($testname, $command);
|