Changeset 74712 in vbox
- Timestamp:
- Oct 9, 2018 10:02:18 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 125633
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/crypto/rc4.h
r74711 r74712 40 40 typedef union RTCRRC4KEY 41 41 { 42 uint64_t au64Padding[(2 + 256) * sizeof(RC4_INT) / 8];42 uint64_t au64Padding[(2 + 256) / 2]; 43 43 #ifdef HEADER_RC4_H 44 44 RC4_KEY Ossl; -
trunk/src/VBox/Runtime/common/crypto/rc4-openssl.cpp
r74295 r74712 42 42 RTDECL(void) RTCrRc4SetKey(PRTCRRC4KEY pKey, size_t cbData, void const *pvData) 43 43 { 44 AssertCompile(sizeof(pKey->au64Padding) == sizeof(pKey->Ossl)); 44 45 AssertCompile(sizeof(RC4_INT) == 4 ? sizeof(pKey->au64Padding) == sizeof(pKey->Ossl) : sizeof(pKey->au64Padding) >= sizeof(pKey->Ossl)); 45 46 Assert((int)cbData == (ssize_t)cbData); 46 47 AssertPtr(pKey); … … 52 53 RTDECL(void) RTCrRc4(PRTCRRC4KEY pKey, size_t cbData, void const *pvDataIn, void *pvDataOut) 53 54 { 54 AssertCompile(sizeof( pKey->au64Padding) == sizeof(pKey->Ossl));55 AssertCompile(sizeof(RC4_INT) == 4 ? sizeof(pKey->au64Padding) == sizeof(pKey->Ossl) : sizeof(pKey->au64Padding) >= sizeof(pKey->Ossl)); 55 56 Assert((int)cbData == (ssize_t)cbData); 56 57 AssertPtr(pKey);
Note:
See TracChangeset
for help on using the changeset viewer.