getDrmKey static method

List<int> getDrmKey(
  1. String? pid,
  2. MobiData data
)

Implementation

static List<int> getDrmKey(String? pid, MobiData data) {
  if (data.record0header?.encryptionType == mobiEncryptionV1) {
    return getMobiKeyV1(data);
  } else {
    return getMobiKeyV2(pid, data);
  }
}