X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_apple_csp/lib/aescsp.cpp?ds=inline diff --git a/libsecurity_apple_csp/lib/aescsp.cpp b/libsecurity_apple_csp/lib/aescsp.cpp index 9f068b3a..65d769df 100644 --- a/libsecurity_apple_csp/lib/aescsp.cpp +++ b/libsecurity_apple_csp/lib/aescsp.cpp @@ -162,8 +162,8 @@ void AESContext::init( /* init key only if key size, block size, or key bits have changed */ if(!sameKeyAndBlockSizes || memcmp(mRawKey, keyData, mRawKeySize)) { int artn = makeKey((keyInstance *)mAesKey, - keyLen * 8, - mBlockSize * 8, + (int)keyLen * 8, + mBlockSize * 8, (word8 *)keyData, opt128); if(artn < 0) { @@ -172,7 +172,7 @@ void AESContext::init( /* save this raw key data */ memmove(mRawKey, keyData, mRawKeySize); - mRawKeySize = keyLen; + mRawKeySize = (uint32)keyLen; } #if !GLADMAN_AES_128_ENABLE