mirrored from https://www.bouncycastle.org/repositories/bc-java
Permalink
Show file tree
Hide file tree
32 changes: 20 additions & 12 deletions
32
core/src/main/java/org/bouncycastle/crypto/engines/IESEngine.java
7 changes: 4 additions & 3 deletions
7
prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/IESCipher.java
10 changes: 5 additions & 5 deletions
10
prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/IESCipher.java
11 changes: 3 additions & 8 deletions
11
prov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/CipherSpi.java
22 changes: 22 additions & 0 deletions
22
prov/src/test/java/org/bouncycastle/jce/provider/test/DHIESTest.java
21 changes: 21 additions & 0 deletions
21
prov/src/test/java/org/bouncycastle/jce/provider/test/ECIESTest.java
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
modified IESEngine so that MAC check is the primary one
added general BadBlockException class for asymmetric ciphers.
- Loading branch information
Showing
7 changed files
with
96 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
prov/src/main/java/org/bouncycastle/jcajce/provider/util/BadBlockException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| package org.bouncycastle.jcajce.provider.util; | ||
|
|
||
| import javax.crypto.BadPaddingException; | ||
|
|
||
| public class BadBlockException | ||
| extends BadPaddingException | ||
| { | ||
| private final Throwable cause; | ||
|
|
||
| public BadBlockException(String msg, Throwable cause) | ||
| { | ||
| super(msg); | ||
|
|
||
| this.cause = cause; | ||
| } | ||
|
|
||
| public Throwable getCause() | ||
| { | ||
| return cause; | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters