Skip to content

Commit

Permalink
block device -> block storage
Browse files Browse the repository at this point in the history
  • Loading branch information
maximiliankaul committed Jan 21, 2025
1 parent 54288d3 commit bfd7ea9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ import de.fraunhofer.aisec.cpg.graph.Node
import de.fraunhofer.aisec.cpg.graph.concepts.Concept

/** Represents a block device. E.g. a hard disk. */
class BlockDevice(underlyingNode: Node) :
Concept<BlockDeviceOp>(underlyingNode = underlyingNode), IsDiskEncryption
class BlockStorage(underlyingNode: Node) :
Concept<BlockStorageOp>(underlyingNode = underlyingNode), IsDiskEncryption
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ package de.fraunhofer.aisec.cpg.graph.concepts.diskEncryption
import de.fraunhofer.aisec.cpg.graph.Node
import de.fraunhofer.aisec.cpg.graph.concepts.Operation

abstract class BlockDeviceOp(underlyingNode: Node, override val concept: BlockDevice) :
abstract class BlockStorageOp(underlyingNode: Node, override val concept: BlockStorage) :
Operation(underlyingNode = underlyingNode, concept = concept), IsDiskEncryption
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CreateEncryptedDisk(underlyingNode: Node, concept: DiskEncryption) :
// TODO: duplicate of [DiskEncryption] fields

/** The encryption target, i.e. the disk */
var target: BlockDevice? = null
var target: BlockStorage? = null

/** The cipher suite used for disk encryption */
var cipher: Cipher? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import de.fraunhofer.aisec.cpg.graph.concepts.Concept
class DiskEncryption(underlyingNode: Node) :
Concept<DiskEncryptionOP>(underlyingNode = underlyingNode), IsDiskEncryption {
/** The encryption target, i.e. the disk */
var target: BlockDevice? = null
var target: BlockStorage? = null

/** The cipher suite used for disk encryption */
var cipher: Cipher? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ import de.fraunhofer.aisec.cpg.graph.concepts.Concept
/** Represents a "secret key", e.g. used in hard disk encryption. */
class Secret(underlyingNode: Node) :
Concept<SecretOp>(underlyingNode = underlyingNode), IsDiskEncryption

// TODO: size

0 comments on commit bfd7ea9

Please sign in to comment.