Project

General

Profile

Actions

Bug #3914

closed

SignatureInfo incorrectly encodes order of type-specific TLVs

Added by Alex Afanasyev over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
01/10/2017
Due date:
% Done:

100%

Estimated time:

Description

During the encoding, the order is incorrectly reversed.

Effectively, the following snippet fails:

  SignatureInfo info1;
  info1.appendTypeSpecificTlv(makeStringBlock(101, "First"));
  info1.appendTypeSpecificTlv(makeStringBlock(102, "Second"));
  info1.appendTypeSpecificTlv(makeStringBlock(103, "Third"));

  SignatureInfo info2;
  info2.wireDecode(info1.wireEncode());
  BOOST_CHECK_EQUAL(info1, info2);
Actions #2

Updated by Alex Afanasyev over 7 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF