Commit bcce6c23 authored by gates's avatar gates
Browse files

cosmetics

parent 8c81db6b
#ifndef MKB_H_ #ifndef MKB_H_
#define MKB_H_ #define MKB_H_
...@@ -13,15 +12,24 @@ struct mkb { ...@@ -13,15 +12,24 @@ struct mkb {
MKB *mkb_open(const char *path); // init MKB MKB *mkb_open(const char *path); // init MKB
void mkb_close(MKB *mkb); // free MKB void mkb_close(MKB *mkb); // free MKB
uint8_t mkb_type(MKB *mkb); // returns type // returns type
uint32_t mkb_version(MKB *mkb); // returns version uint8_t mkb_type(MKB *mkb);
uint8_t *mkb_host_revokation_entries(MKB *mkb, size_t *len); // returns list of revoked host entries // returns version
uint8_t *mkb_drive_revokation_entries(MKB *mkb, size_t *len); // returns list of revoked drive entries uint32_t mkb_version(MKB *mkb);
uint8_t *mkb_subdiff_records(MKB *mkb, size_t *len); // returns subset-diff records // returns list of revoked host entries
uint8_t *mkb_subdiff_offsets(MKB *mkb, size_t *len); // returns list of subset-diff offsets uint8_t *mkb_host_revokation_entries(MKB *mkb, size_t *len);
uint8_t *mkb_cvalues(MKB *mkb, size_t *len); // returns list of cvalues // returns list of revoked drive entries
uint8_t *mkb_mk_dv(MKB *mkb); // media key verification data return in param (always 16 bytes) uint8_t *mkb_drive_revokation_entries(MKB *mkb, size_t *len);
uint8_t *mkb_signature(MKB *mkb, size_t *len); // returns MKB signature // returns subset-diff records
uint8_t *mkb_subdiff_records(MKB *mkb, size_t *len);
// returns list of subset-diff offsets
uint8_t *mkb_subdiff_offsets(MKB *mkb, size_t *len);
// returns list of cvalues
uint8_t *mkb_cvalues(MKB *mkb, size_t *len);
// media key verification data return in param (always 16 bytes)
uint8_t *mkb_mk_dv(MKB *mkb);
// returns MKB signature
uint8_t *mkb_signature(MKB *mkb, size_t *len);
/* The Media Key block is of variable size but must be a multiple of 4 /* The Media Key block is of variable size but must be a multiple of 4
* MKB Structure: * MKB Structure:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment