3.4.5.4 Meter Response Creation

Once the metering challenge message has been verified, the MAS builds a metering response message.

The TID MUST be copied from the challenge, base64-encoded as documented in [MS-DRM] section 2.2.1.1, and placed in the TID element.

The MID MUST be copied from the challenge, base64-encoded as documented in [MS-DRM] section 2.2.1.1, and placed in the MID element.

The COMMAND element MUST be set to "RESET".

The MESSAGETYPE MUST be set to "RESPONSE".

The decrypted and decoded RECORDS element from the metering challenge message MUST be encrypted with the public key from the CERTIFICATE element of the metering challenge message. The encrypted data MUST be base64-encoded as documented in [MS-DRM] section 2.2.1.1 and placed in the RECORDS element of the metering response message.

The MAS's [MSDN-MAS]  preconfigured metering certificate is placed in the METERCERT element. The metering certificate's private key is then used to sign the entire DATA element as described in section 2.2.1.6. The resultant signature MUST be base64-encoded as documented in [MS-DRM] section 2.2.1.1, and placed into the MSDRM_SIGNATURE_VALUE element.

Finally, the completed metering response message is sent to the device for processing. Device processing is specified in section 3.2.5.6.3.