@@ -23,8 +23,8 @@ namespace interpreter::detail::vdv
2323
2424 Signature Signature::consumeFromEnvelope (common::Context &context)
2525 {
26- auto value = consumeExpectedTagValue (context, {0x9e , 0x00 });
27- auto remainder = consumeExpectedTagValue (context, {0x9a , 0x00 });
26+ auto value = consumeExpectedTagValue (context, {0x9e });
27+ auto remainder = consumeExpectedTagValue (context, {0x9a });
2828 return Signature{std::move (value), std::move (remainder)};
2929 }
3030
@@ -38,11 +38,11 @@ namespace interpreter::detail::vdv
3838 Certificate Certificate::consumeFromEnvelope (common::Context &context)
3939 {
4040 auto const signatureData = consumeExpectedTagValue (context, {0x7f , 0x21 });
41- auto authority = common::bytesToHexString (consumeExpectedTagValue (context, {0x42 , 0x00 }));
41+ auto authority = common::bytesToHexString (consumeExpectedTagValue (context, {0x42 }));
4242
4343 auto signatureContext = common::Context (signatureData);
4444 auto signature = Signature::consumeFrom (signatureContext);
45- ensureEmpty (signatureContext );
45+ context. ensureEmpty ();
4646
4747 return Certificate{std::move (authority), " envelope" , std::move (signature), {}};
4848 }
@@ -233,7 +233,7 @@ namespace interpreter::detail::vdv
233233 auto context = common::Context (content);
234234 auto identity = CertificateIdentity::consumeFrom (context, 9 );
235235 auto publicKey = PublicKey::consumeFrom (context);
236- ensureEmpty (context );
236+ context. ensureEmpty ();
237237 return DecodedCertificate{std::nullopt , std::move (identity), std::move (publicKey)};
238238 }
239239
@@ -242,7 +242,7 @@ namespace interpreter::detail::vdv
242242 auto context = common::Context (content);
243243 auto identity = CertificateIdentity::consumeFrom (context, 7 ); // TODO OID length is probably not always 7 for all sub-certificates
244244 auto publicKey = PublicKey::consumeFrom (context);
245- ensureEmpty (context );
245+ context. ensureEmpty ();
246246 return DecodedCertificate{std::make_optional (std::move (content)), std::move (identity), std::move (publicKey)};
247247 }
248248}
0 commit comments