From 50812cac957fd4d293dd4be49eac17dbccb6824b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Wed, 18 Sep 2024 14:57:21 +0200 Subject: [PATCH] add nonce and iv to cbom output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- .../main/java/com/ibm/output/cyclondx/CBOMOutputFile.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/output/src/main/java/com/ibm/output/cyclondx/CBOMOutputFile.java b/output/src/main/java/com/ibm/output/cyclondx/CBOMOutputFile.java index 9b3878fc..77f8b5a9 100644 --- a/output/src/main/java/com/ibm/output/cyclondx/CBOMOutputFile.java +++ b/output/src/main/java/com/ibm/output/cyclondx/CBOMOutputFile.java @@ -28,9 +28,11 @@ import com.ibm.mapper.model.INode; import com.ibm.mapper.model.IPrimitive; import com.ibm.mapper.model.IProperty; +import com.ibm.mapper.model.InitializationVectorLength; import com.ibm.mapper.model.Key; import com.ibm.mapper.model.KeyLength; import com.ibm.mapper.model.Mode; +import com.ibm.mapper.model.NonceLength; import com.ibm.mapper.model.Oid; import com.ibm.mapper.model.Padding; import com.ibm.mapper.model.ParameterSetIdentifier; @@ -119,7 +121,10 @@ private void add(@Nullable final String parentBomRef, @Nonnull List nodes createProtocolComponent(parentBomRef, protocol); } else if (node instanceof CipherSuite cipherSuite) { createCipherSuiteComponent(parentBomRef, cipherSuite); - } else if (node instanceof SaltLength || node instanceof PasswordLength) { + } else if (node instanceof SaltLength + || node instanceof PasswordLength + || node instanceof InitializationVectorLength + || node instanceof NonceLength) { final IProperty property = (IProperty) node; createRelatedCryptoMaterialComponent(parentBomRef, property); } else if (node.hasChildren()) {