You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/10/18 16:58:54 UTC
svn commit: r826458 -
/commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c
Author: mturk
Date: Sun Oct 18 14:58:54 2009
New Revision: 826458
URL: http://svn.apache.org/viewvc?rev=826458&view=rev
Log:
Cast 64/32 bit asignment
Modified:
commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c
Modified: commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c?rev=826458&r1=826457&r2=826458&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c Sun Oct 18 14:58:54 2009
@@ -1274,14 +1274,14 @@
void
aes_key_wrap_set_key(aes_key_wrap_ctx *ctx, const u8 *K, size_t K_len)
{
- rijndael_set_key(&ctx->ctx, K, K_len * 8);
+ rijndael_set_key(&ctx->ctx, K, (int)(K_len * 8));
}
void
aes_key_wrap_set_key_wrap_only(aes_key_wrap_ctx *ctx, const u8 *K,
size_t K_len)
{
- rijndael_set_key_enc_only(&ctx->ctx, K, K_len * 8);
+ rijndael_set_key_enc_only(&ctx->ctx, K, (int)(K_len * 8));
}
void