huluwateam / icloud

iCloudMe, the cross-platform SDK and tools, will facilitate the users to develop their own Apps to store content in iCloud, keeping contacts, photos, calendars, bookmarks, notes, pages, numbers, keynote up to date automatically.
http://www.huluwa.org/
29 stars 11 forks source link

Decryption Error #2

Open mjwretina opened 10 years ago

mjwretina commented 10 years ago

get keyData from iCloud • wrappedOffset = keyDataSize - (ECP_LEN + WRAPPED_KEY_LEN) • get wrappedKey (at wrappedOffset) • get CLASSKEY • iOS 5/6: ((UINT32)(keyData + wrappedOffset))[-1] • iOS 7: ((UINT32_)(keyData + wrappedOffset))[-3] • decrypt wrappedKey using CLASS_KEY • get AES_KEY from wrappedKey • file decryption: by 0x1000 blocks (unique IV for every block)

i have key data and file. can you guide me in decryption. in Objective c language