diff options
author | jmc <> | 2022-12-26 07:18:53 +0000 |
---|---|---|
committer | jmc <> | 2022-12-26 07:18:53 +0000 |
commit | 8144b51086b3c46594192ccbec62762e58d61200 (patch) | |
tree | 26f3d93398833b7449b8a97e9fe4af9904382dbf /src/lib/libcrypto/engine/eng_padlock.c | |
parent | 54da696f897367a85e20e97a53d29b18b44cf8b7 (diff) | |
download | openbsd-8144b51086b3c46594192ccbec62762e58d61200.tar.gz openbsd-8144b51086b3c46594192ccbec62762e58d61200.tar.bz2 openbsd-8144b51086b3c46594192ccbec62762e58d61200.zip |
spelling fixes; from paul tagliamonte
i removed the arithmetics -> arithmetic changes, as i felt they
were not clearly correct
ok tb
Diffstat (limited to 'src/lib/libcrypto/engine/eng_padlock.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_padlock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/engine/eng_padlock.c b/src/lib/libcrypto/engine/eng_padlock.c index 0281ab810c..50b5fb780d 100644 --- a/src/lib/libcrypto/engine/eng_padlock.c +++ b/src/lib/libcrypto/engine/eng_padlock.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: eng_padlock.c,v 1.16 2018/04/14 07:18:37 tb Exp $ */ | 1 | /* $OpenBSD: eng_padlock.c,v 1.17 2022/12/26 07:18:51 jmc Exp $ */ |
2 | /* | 2 | /* |
3 | * Support for VIA PadLock Advanced Cryptography Engine (ACE) | 3 | * Support for VIA PadLock Advanced Cryptography Engine (ACE) |
4 | * Written by Michal Ludvig <michal@logix.cz> | 4 | * Written by Michal Ludvig <michal@logix.cz> |
@@ -285,7 +285,7 @@ struct padlock_cipher_data { | |||
285 | * Essentially this variable belongs in thread local storage. | 285 | * Essentially this variable belongs in thread local storage. |
286 | * Having this variable global on the other hand can only cause | 286 | * Having this variable global on the other hand can only cause |
287 | * few bogus key reloads [if any at all on single-CPU system], | 287 | * few bogus key reloads [if any at all on single-CPU system], |
288 | * so we accept the penatly... | 288 | * so we accept the penalty... |
289 | */ | 289 | */ |
290 | static volatile struct padlock_cipher_data *padlock_saved_context; | 290 | static volatile struct padlock_cipher_data *padlock_saved_context; |
291 | #endif | 291 | #endif |
@@ -872,7 +872,7 @@ padlock_aes_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out_arg, | |||
872 | chunk = PADLOCK_CHUNK; | 872 | chunk = PADLOCK_CHUNK; |
873 | 873 | ||
874 | if (out_misaligned) { | 874 | if (out_misaligned) { |
875 | /* optmize for small input */ | 875 | /* optimize for small input */ |
876 | allocated = (chunk < nbytes ? PADLOCK_CHUNK : nbytes); | 876 | allocated = (chunk < nbytes ? PADLOCK_CHUNK : nbytes); |
877 | out = alloca(0x10 + allocated); | 877 | out = alloca(0x10 + allocated); |
878 | out = NEAREST_ALIGNED(out); | 878 | out = NEAREST_ALIGNED(out); |