Intermediate progress towards getting hashing upgraded. Still need to handle the final and update mechanics, matching the JCA. Similarly need to update cipher to follow the JCA for update/final as well.

This commit is contained in:
REDMOND\brodes
2025-05-02 16:33:52 -04:00
parent 94632931ba
commit 0a0be41527
11 changed files with 37 additions and 254 deletions

View File

@@ -386,7 +386,7 @@ module JCAModel {
override Crypto::THashType getHashFamily() { result = hash_name_to_type_known(hashName, _) }
override int getDigestLength() { exists(hash_name_to_type_known(hashName, result)) }
override int getFixedDigestLength() { exists(hash_name_to_type_known(hashName, result)) }
}
class OAEPPaddingAlgorithmInstance extends Crypto::OAEPPaddingAlgorithmInstance,
@@ -829,7 +829,7 @@ module JCAModel {
result = hash_name_to_type_known(this.getRawHashAlgorithmName(), _)
}
override int getDigestLength() {
override int getFixedDigestLength() {
exists(hash_name_to_type_known(this.getRawHashAlgorithmName(), result))
}
}
@@ -1237,7 +1237,7 @@ module JCAModel {
result = hash_name_to_type_known(this.getRawHashAlgorithmName(), _)
}
override int getDigestLength() {
override int getFixedDigestLength() {
exists(hash_name_to_type_known(this.getRawHashAlgorithmName(), result))
}