From fb6114ffb91ffa2d119c35d3d1a855254577f930 Mon Sep 17 00:00:00 2001 From: Jack He Date: Tue, 5 May 2020 00:16:03 +0000 Subject: Revert "Remove deprecated BouncyCastle algorithms" Revert "Remove deprecated BouncyCastle algorithms" Revert submission 1299358-remove_bc_algos Reason for revert: broke higkey-userdebug Bug: 155693016 Reverted Changes: I98adb4d2f:Load default KeyFactory instead of BC's implementa... I5256fe1c7:Remove deprecated BouncyCastle algorithms I0437de742:Remove deprecated BouncyCastle algorithms Ie9e0cfa02:Remove deprecated BouncyCastle algorithms Change-Id: I6030fdd2339b62ba51e7322caa3224f18023373e --- .../com/google/security/wycheproof/testcases/EcdsaTest.java | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'java/com/google/security/wycheproof/testcases/EcdsaTest.java') diff --git a/java/com/google/security/wycheproof/testcases/EcdsaTest.java b/java/com/google/security/wycheproof/testcases/EcdsaTest.java index 0d65286..c279aaf 100644 --- a/java/com/google/security/wycheproof/testcases/EcdsaTest.java +++ b/java/com/google/security/wycheproof/testcases/EcdsaTest.java @@ -16,7 +16,6 @@ package com.google.security.wycheproof; -import com.google.security.wycheproof.WycheproofRunner.ExcludedTest; import com.google.security.wycheproof.WycheproofRunner.ProviderType; import com.google.security.wycheproof.WycheproofRunner.SlowTest; // Android-removed: Android doesn't support JMX @@ -641,18 +640,12 @@ public class EcdsaTest extends TestCase { assertEquals(0, errors); } - @ExcludedTest( - providers = {ProviderType.BOUNCY_CASTLE}, - comment = "Signature.SHA256WithECDSA is removed") public void testValidSignatures() throws Exception { testVectors( VALID_SIGNATURES, publicKey1(), "Hello", "SHA256WithECDSA", "Valid ECDSA signature", true, true); } - @ExcludedTest( - providers = {ProviderType.BOUNCY_CASTLE}, - comment = "Signature.SHA256WithECDSA is removed") public void testModifiedSignatures() throws Exception { testVectors( MODIFIED_SIGNATURES, @@ -664,9 +657,6 @@ public class EcdsaTest extends TestCase { true); } - @ExcludedTest( - providers = {ProviderType.BOUNCY_CASTLE}, - comment = "Signature.SHA256WithECDSA is removed") public void testInvalidSignatures() throws Exception { testVectors( INVALID_SIGNATURES, @@ -682,9 +672,6 @@ public class EcdsaTest extends TestCase { * This test checks the basic functionality of ECDSA. It can also be used to generate simple test * vectors. */ - @ExcludedTest( - providers = {ProviderType.BOUNCY_CASTLE}, - comment = "KeyPairGenerator.EC is removed") public void testBasic() throws Exception { String algorithm = "SHA256WithECDSA"; String hashAlgorithm = "SHA-256"; -- cgit v1.2.3