Skip to content

Commit

Permalink
Fix offset in digest
Browse files Browse the repository at this point in the history
  • Loading branch information
smeyer198 committed Dec 7, 2023
1 parent a291d81 commit 5c95e47
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
14 changes: 1 addition & 13 deletions BouncyCastle/src/AESFastEngine.crysl
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
//The AESFastEngine class is deprecated and insecure. This crysl rule ensures that a AESFastEngine object is considered insecure.
SPEC org.bouncycastle.crypto.engines.AESFastEngine

OBJECTS
int dummy; //This section can't be empty or else the rule is marked with an error.

FORBIDDEN
AESFastEngine() ;

EVENTS
c1: AESFastEngine();
Con := c1;

ORDER
Con


AESFastEngine();
3 changes: 0 additions & 3 deletions BouncyCastle/src/AESLightEngine.crysl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
SPEC org.bouncycastle.crypto.engines.AESLightEngine

OBJECTS
int dummy; //This section can't be empty or else the rule is marked with an error.

EVENTS
c1: AESLightEngine();
Con := c1;
Expand Down
2 changes: 1 addition & 1 deletion BouncyCastle/src/SHA256Digest.crysl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ CONSTRAINTS
inputBytesOffset >= 0;
inputBytesLen > 0;
length[outputBytes] >= outputBytesOffset;
outputBytesOffset > 0;
outputBytesOffset >= 0;

REQUIRES
generatedSHA256Digest[digest];
Expand Down

0 comments on commit 5c95e47

Please sign in to comment.