public static void serializeBlobEncryptionKeyRecord(ByteBuffer outputBuffer, ByteBuffer blobEncryptionKey) {
      int startOffset = outputBuffer.position();
      int blobEncryptionKeyRecordSize = getBlobEncryptionKeyRecordSize(blobEncryptionKey);
      outputBuffer.putShort(Blob_Encryption_Key_V1);
      outputBuffer.putInt(blobEncryptionKey.remaining());
      outputBuffer.put(blobEncryptionKey);
      CRC32 crc = new CRC32();
      crc.update(outputBuffer.array(), startOffset, blobEncryptionKeyRecordSize - Crc_Size);
      outputBuffer.putLong(crc.getValue());
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|         |           |                      |            |
| version |   size    |  blob encryption key |     Crc    |
|(2 bytes)| (4 bytes) |  (n bytes)           |  (8 bytes) |
|         |           |                      |            |
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 version                - The version of the blob key

 size                   - The size of the blob key

 blob encryption key    - The blob encryption key in bytes

 crc                    - The crc of the blob key record
ambry-messageformat/src/main/java/com/github/ambry/messageformat/MessageFormatRecord.java