I'm pretty confident computeKeyHash shouldn't throw that kind of exception. If anything it would throw a DigestException.