]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_apple_csp/lib/wrapKey.cpp
Security-55471.14.18.tar.gz
[apple/security.git] / libsecurity_apple_csp / lib / wrapKey.cpp
index 2d84b2ce0fe1369554968b0575c6e21321f13354..44c3eb94f54428143a3e6cfc4b23747521740d5b 100644 (file)
@@ -698,7 +698,7 @@ void AppleCSPSession::UnwrapKey(
                                                CSSM_KEYBLOB_RAW_FORMAT_OCTET_STRING;
                                        if(unwrappedHdr.LogicalKeySizeInBits == 0) {
                                                unwrappedHdr.LogicalKeySizeInBits =
-                                                       bytesDecrypted * 8;
+                                                       (unsigned)(bytesDecrypted * 8);
                                        }
                                        /* app has to infer/know algorithm */
                                        break;