private static void serializeKeyRecord(ByteBuffer outputBuffer, byte[] key, String keyGenAlgo) {
      outputBuffer.putShort(KEY_RECORD_VERSION_V_1);
      outputBuffer.putInt(key.length);
      outputBuffer.put(key);
      Utils.serializeString(outputBuffer, keyGenAlgo, StandardCharsets.UTF_8);
    }
Serialize {@code key} and {@code keyGenAlgo} to {@link ByteBuffer} in {@link KeyRecord_Format_V1}
@param outputBuffer the {@link ByteBuffer} to which the key and key gen algo needs to be serialized
@param key the key that needs to be serialized
@param keyGenAlgo the key gen algo that needs to be serialized
ambry-router/src/main/java/com/github/ambry/router/GCMCryptoService.java