*/
boolean verify(ByteBuffer data, ByteBuffer hidden,
ByteBuffer signature) throws KeyczarException {
LOG.debug(Messages.getString("Verifier.Verifying", data.remaining()));
if (signature.remaining() < HEADER_SIZE) {
throw new ShortSignatureException(signature.remaining());
}
byte version = signature.get();
if (version != FORMAT_VERSION) {
throw new BadVersionException(version);