View Issue Details

IDProjectCategoryView StatusLast Update
000289710000-006: MappingsSpecpublic2020-04-21 15:09
Reporternode-opcua Assigned Torandyarmstrong  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.02 
Summary0002897: MaxBodySize formula revisited
Description

Release 1.02 part 6 page 40

The text says:
<p>
<blockquote>
The formula to calculate the amount of padding depends on the amount of data that needs to be sent (called BytesToWrite). The sender shall first calculate the maximum amount of space available in the MessageChunk (called MaxBodySize) using the following formula:

<pre>
MaxBodySize = PlainTextBlockSize * Floor((MessageChunkSize –

HeaderSize – SignatureSize - 1)/CipherTextBlockSize) –

SequenceHeaderSize;
</pre>

</blockquote>

In fact, this maxBodySize might be underestimated , a better formula would be :

<pre>

    this.maxBlock     =  Math.floor( ( this.chunkSize - this.headerSize ) / this.cipherBlockSize);
    this.maxBodySize  = this.plainBlockSize * this.maxBlock - this.sequenceHeaderSize - this.signatureLength - 1 ;

</pre>

TagsNo tags attached.
Commit Version
Fix Due Date

Activities

randyarmstrong

2015-01-15 17:15

administrator   ~0005743

Fixed in DRAFT 8

randyarmstrong

2015-02-17 16:24

administrator   ~0005803

Decided that we need to investigate the ramifications in stack code before we change the specification.

randyarmstrong

2017-01-17 06:02

administrator   ~0007744

Not convinced the new formula is correct since it the signature is encrypted.

randyarmstrong

2017-01-17 16:49

administrator   ~0007753

I am concerned that the new formula assumes the signature size is always a multiple of the cipher text block length.

Given the fact that nothing is broken I think we should leave the formula as is. Note that the consequence are only some extra chunks for some messages.

Jim Luth

2017-01-17 16:50

administrator   ~0007754

agreed to no fix in telecon.

randyarmstrong

2017-11-21 08:16

administrator   ~0008723

Received confirmation that the new formula works.

Jim Luth

2017-11-21 16:51

administrator   ~0008727

Needs Errata for 1.03

randyarmstrong

2018-06-19 15:07

administrator   ~0009180

Create errata.

randyarmstrong

2019-03-01 22:03

administrator   ~0009997

Errata already published. Issue can be closed.

randyarmstrong

2020-04-21 15:09

administrator   ~0011950

Closed Apr 21th WG Calls.

Issue History

Date Modified Username Field Change
2014-11-20 07:49 node-opcua New Issue
2015-01-15 17:16 randyarmstrong Note Added: 0005743
2015-01-15 17:16 randyarmstrong Status new => resolved
2015-01-15 17:16 randyarmstrong Resolution open => fixed
2015-01-15 17:16 randyarmstrong Assigned To => randyarmstrong
2015-02-17 16:24 randyarmstrong Note Added: 0005803
2015-02-17 16:24 randyarmstrong Status resolved => feedback
2015-02-17 16:24 randyarmstrong Resolution fixed => reopened
2015-07-09 20:01 Jim Luth Target Version => 1.04
2017-01-17 06:02 randyarmstrong Note Added: 0007744
2017-01-17 06:02 randyarmstrong Status feedback => resolved
2017-01-17 06:02 randyarmstrong Resolution reopened => won't fix
2017-01-17 16:49 randyarmstrong Status resolved => feedback
2017-01-17 16:49 randyarmstrong Resolution won't fix => reopened
2017-01-17 16:49 randyarmstrong Note Added: 0007753
2017-01-17 16:49 randyarmstrong Status feedback => resolved
2017-01-17 16:49 randyarmstrong Resolution reopened => won't fix
2017-01-17 16:50 Jim Luth Note Added: 0007754
2017-01-17 16:50 Jim Luth Status resolved => closed
2017-11-21 08:16 randyarmstrong Note Added: 0008723
2017-11-21 08:16 randyarmstrong Status closed => resolved
2017-11-21 08:16 randyarmstrong Resolution won't fix => fixed
2017-11-21 16:51 Jim Luth Note Added: 0008727
2018-06-19 15:07 randyarmstrong Note Added: 0009180
2018-06-19 15:07 randyarmstrong Status resolved => assigned
2019-03-01 22:03 randyarmstrong Status assigned => resolved
2019-03-01 22:03 randyarmstrong Fixed in Version => 1.05
2019-03-01 22:03 randyarmstrong Note Added: 0009997
2020-04-21 15:09 randyarmstrong Status resolved => closed
2020-04-21 15:09 randyarmstrong Note Added: 0011950