Replace first occurance of keyBuffer with a 0 to replicate iOS6