parseDO8EFromRAPDU method

  1. @visibleForTesting
DecodedTV parseDO8EFromRAPDU(
  1. ResponseAPDU rapdu,
  2. int offset
)

Implementation

@visibleForTesting
DecodedTV parseDO8EFromRAPDU(final ResponseAPDU rapdu, int offset) {
  if (rapdu.data == null ||
      rapdu.data!.isEmpty ||
      rapdu.data![offset] != SecureMessaging.tagDO8E) {
    throw SMError("Missing DO'8E' in response APDU or invalid offset");
  }
  return TLV.decode(rapdu.data!.sublist(offset));
}