WhisperSystems/TextSecure-iOS — pull request #78 by dcestari (2014-02-25 00:48:38+00:00)
Title: Fix invalid argument exception when sending a message

The PreKey contains both a publicKey and an identityKey base64 encoded
32 byte array with a leading byte of 0x05 to indicate it's type. The
problem is it was not being trimmed before invoking the cryptographic
functions. Now the keys are correctly extracted from the array by taking
the later 32 bytes of it