commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r826458 - /commons/sandbox/runtime/trunk/src/main/native/port/rijndael.c
Date Sun, 18 Oct 2009 14:58:54 GMT
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



Mime
View raw message