From 1512720ff29398941175d1a7cb17c3b54380c7ce Mon Sep 17 00:00:00 2001 From: Tim Balsfulland Date: Mon, 5 Feb 2024 14:28:07 +0100 Subject: [PATCH 1/2] example violation annotation --- .../java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java b/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java index 62f7f9d2..c294c797 100644 --- a/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java +++ b/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java @@ -28,7 +28,7 @@ public static void main(String[] args) throws NoSuchPaddingException, NoSuchAlgo Cipher cipher = Cipher.getInstance("RSA"); KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); - keyGen.initialize(512); + keyGen.initialize(513); KeyPair keyPair = keyGen.generateKeyPair(); cipher.init(Cipher.ENCRYPT_MODE,keyPair.getPublic()); From c95ef93ae6e258afefedf9052a09037494a608e8 Mon Sep 17 00:00:00 2001 From: schlichtig Date: Tue, 20 Feb 2024 14:37:27 +0100 Subject: [PATCH 2/2] Update SmallKeySize2.java Removed change --- .../org/cambench/cap/basic/smallkeysize/SmallKeySize2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java b/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java index c294c797..27ce27ee 100644 --- a/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java +++ b/CamBench_Cap/src/main/java/org/cambench/cap/basic/smallkeysize/SmallKeySize2.java @@ -28,9 +28,9 @@ public static void main(String[] args) throws NoSuchPaddingException, NoSuchAlgo Cipher cipher = Cipher.getInstance("RSA"); KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA"); - keyGen.initialize(513); + keyGen.initialize(512); KeyPair keyPair = keyGen.generateKeyPair(); cipher.init(Cipher.ENCRYPT_MODE,keyPair.getPublic()); } -} \ No newline at end of file +}