Crypto: Add support to trace keys, add support to find prior key gen properties that configure downstream operations. Add key size tests

This commit is contained in:
REDMOND\brodes
2025-06-11 13:58:56 -04:00
parent 7d479940e5
commit d3cff2dff1
5 changed files with 72 additions and 7 deletions

View File

@@ -1051,7 +1051,11 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
digestLength = 512 // TODO: verify
}
abstract private class KeyCreationOperationInstance extends OperationInstance {
/**
* Users should not extend this class directly, but instead use
* `KeyCreationOperationInstance` or `KeyDerivationOperationInstance`.
*/
abstract class KeyCreationOperationInstance extends OperationInstance {
abstract string getKeyCreationTypeDescription();
/**
@@ -1732,6 +1736,12 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
override string getInternalType() { result = instance.getKeyCreationTypeDescription() }
NodeBase getAKeySizeSource() {
result = instance.getKeySizeConsumer().getConsumer().getAGenericSourceNode()
or
result = instance.getKeySizeConsumer().getConsumer().getAKnownSourceNode()
}
/**
* Gets the key artifact produced by this operation.
*/