Skip to content

Commit

Permalink
add nonce and iv to cbom output
Browse files Browse the repository at this point in the history
Signed-off-by: Nicklas Körtge <nicklas.koertge1@ibm.com>
  • Loading branch information
n1ckl0sk0rtge committed Sep 18, 2024
1 parent 8cab570 commit 50812ca
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -119,7 +121,10 @@ private void add(@Nullable final String parentBomRef, @Nonnull List<INode> 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()) {
Expand Down

0 comments on commit 50812ca

Please sign in to comment.