diff options
author | Andy Polyakov <appro@openssl.org> | 2004-09-09 14:54:12 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2004-09-09 14:54:12 +0000 |
commit | 36734b2bab61e47b252ec3be85f8133a0d1c28f7 (patch) | |
tree | b2b6f83b833cef6628ab40b14bb57c27f7732477 /crypto/engine/eng_padlock.c | |
parent | c85c5c408af0996daa5f807c488f921e7e7ad524 (diff) | |
download | openssl-36734b2bab61e47b252ec3be85f8133a0d1c28f7.tar.gz |
Make VIA Padlock engine more platform friendly and eliminate compiler
warning.
Submitted by: Doug Kaufman <dkaufman@rahul.net>
Diffstat (limited to 'crypto/engine/eng_padlock.c')
-rw-r--r-- | crypto/engine/eng_padlock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/engine/eng_padlock.c b/crypto/engine/eng_padlock.c index b2acc78311..5067bc02dd 100644 --- a/crypto/engine/eng_padlock.c +++ b/crypto/engine/eng_padlock.c @@ -153,7 +153,8 @@ padlock_bind_helper(ENGINE *e) #endif /* Generate a nice engine name with available features */ - snprintf(padlock_name, sizeof(padlock_name), "VIA PadLock (%s, %s)", + BIO_snprintf(padlock_name, sizeof(padlock_name), + "VIA PadLock (%s, %s)", padlock_use_rng ? "RNG" : "no-RNG", padlock_use_ace ? "ACE" : "no-ACE"); @@ -646,7 +647,7 @@ static int padlock_cipher_nids_num = (sizeof(padlock_cipher_nids)/ static int padlock_aes_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc); static int padlock_aes_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, - const unsigned char *in, unsigned int nbytes); + const unsigned char *in, size_t nbytes); #define NEAREST_ALIGNED(ptr) ( (unsigned char *)(ptr) + \ ( (0x10 - ((size_t)(ptr) & 0x0F)) & 0x0F ) ) |