Project

General

Profile

Actions

Bug #1021

closed

CCNB ContentObject: SignatureBits too short

Added by Junxiao Shi over 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Low
Category:
model
Target version:
Start date:
07/30/2013
Due date:
% Done:

0%

Estimated time:

Description

CCNx libccn expects SignatureBits BLOB to have at least 16 octets.
ndnSIM writes uint32_t (4 octets) in SignatureBits.

While this does not violate CCNx Signature specs, it is not compatible with libccn.

Actions #1

Updated by Alex Afanasyev over 11 years ago

Junxiao Shi wrote:

CCNx libccn expects SignatureBits BLOB to have at least 16 octets.
ndnSIM writes uint32_t (4 octets) in SignatureBits.

While this does not violate CCNx Signature specs, it is not compatible with libccn.

Yeah. I know this "feature", but not sure what would be the best way to go... Adding real signature to the ndnSIM datastructure or adding fake padding to the signature in CCNb format to play nicely with ccnx implementation? In either case, ndnSIM doesn't calculates (yet?) any real signatures... What do you think would be a better approach to go?

Actions #2

Updated by Junxiao Shi over 11 years ago

If CCNx compatibility is the goal,

put "NOP" in <DigestAlgorithm>

omitting is not correct, because does not contain a valid SHA-256 signature

pad <SignatureBits> to 16 octets
Actions #3

Updated by Alex Afanasyev over 11 years ago

Junxiao Shi wrote:

If CCNx compatibility is the goal,

put "NOP" in <DigestAlgorithm>

omitting is not correct, because does not contain a valid SHA-256 signature

Does ccnd/C-API recognizes NOP? Or it is something that we should eventually add to provide inter-operability support?

pad <SignatureBits> to 16 octets

Sure. I'll do that

Actions #4

Updated by Junxiao Shi over 11 years ago

libccn does not recognize NOP, but A ContentObject with "NOP" in can be parsed by libccn and processed by recent version of ccnd.
Apps and routers may choose to verify the signature. If the is not known, they may decide to drop the ContentObject.

Actions #5

Updated by Alex Afanasyev over 11 years ago

  • Status changed from New to Resolved
Actions #6

Updated by Alex Afanasyev almost 10 years ago

  • Category set to model
  • Status changed from Resolved to Closed
  • Assignee set to Alex Afanasyev
  • Target version set to 0.7
Actions

Also available in: Atom PDF