projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Combat [bogus] relocations in some assember modules.
[openssl.git]
/
crypto
/
aes
/
aes_ctr.c
diff --git
a/crypto/aes/aes_ctr.c
b/crypto/aes/aes_ctr.c
index 2487d83fb15cfd50e24c235306875da9e05c9ec3..f36982be1e26e2c07b3c2116ab598af4a80442f8 100644
(file)
--- a/
crypto/aes/aes_ctr.c
+++ b/
crypto/aes/aes_ctr.c
@@
-68,7
+68,7
@@
static void AES_ctr128_inc(unsigned char *counter) {
/* Grab bottom dword of counter and increment */
c = GETU32(counter + 12);
/* Grab bottom dword of counter and increment */
c = GETU32(counter + 12);
- c++;
+ c++;
c &= 0xFFFFFFFF;
PUTU32(counter + 12, c);
/* if no overflow, we're done */
PUTU32(counter + 12, c);
/* if no overflow, we're done */
@@
-77,7
+77,7
@@
static void AES_ctr128_inc(unsigned char *counter) {
/* Grab 1st dword of counter and increment */
c = GETU32(counter + 8);
/* Grab 1st dword of counter and increment */
c = GETU32(counter + 8);
- c++;
+ c++;
c &= 0xFFFFFFFF;
PUTU32(counter + 8, c);
/* if no overflow, we're done */
PUTU32(counter + 8, c);
/* if no overflow, we're done */
@@
-86,7
+86,7
@@
static void AES_ctr128_inc(unsigned char *counter) {
/* Grab 2nd dword of counter and increment */
c = GETU32(counter + 4);
/* Grab 2nd dword of counter and increment */
c = GETU32(counter + 4);
- c++;
+ c++;
c &= 0xFFFFFFFF;
PUTU32(counter + 4, c);
/* if no overflow, we're done */
PUTU32(counter + 4, c);
/* if no overflow, we're done */
@@
-95,7
+95,7
@@
static void AES_ctr128_inc(unsigned char *counter) {
/* Grab top dword of counter and increment */
c = GETU32(counter + 0);
/* Grab top dword of counter and increment */
c = GETU32(counter + 0);
- c++;
+ c++;
c &= 0xFFFFFFFF;
PUTU32(counter + 0, c);
}
PUTU32(counter + 0, c);
}