Fixed an issue in key decryption

Modified keybuffer size for iOS7