@@ -825,20 +825,20 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
825825 */
826826 abstract string getRawEllipticCurveName ( ) ;
827827
828- abstract TEllipticCurveFamilyType getEllipticCurveFamilyType ( ) ;
828+ abstract TEllipticCurveType getEllipticCurveType ( ) ;
829829
830830 abstract int getKeySize ( ) ;
831831
832832 /**
833833 * The 'parsed' curve name, e.g., "P-256" or "secp256r1"
834- * The parsed name is full name of the curve, including the family , key size, and other
834+ * The parsed name is full name of the curve, including the type , key size, and other
835835 * typical parameters found on the name.
836836 *
837837 * In many cases this will be equivalent to `getRawEllipticCurveAlgorithmName()`,
838838 * but not always (e.g., if the curve is specified through a raw NID).
839839 *
840840 * In cases like an NID, we want the standardized name so users can quickly
841- * understand what the curve is, while also parsing out the family and key size
841+ * understand what the curve is, while also parsing out the type and key size
842842 * separately.
843843 */
844844 string getParsedEllipticCurveName ( ) { result = this .getRawEllipticCurveName ( ) }
@@ -854,7 +854,7 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
854854 /**
855855 * Gets the type of this digest algorithm, e.g., "SHA1", "SHA2", "MD5" etc.
856856 */
857- abstract THashType getHashFamily ( ) ;
857+ abstract THashType getHashType ( ) ;
858858
859859 /**
860860 * Gets the isolated name as it appears in source, e.g., "SHA-256" in "SHA-256/PKCS7Padding".
@@ -2293,13 +2293,13 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
22932293 *
22942294 * When modeling a new hashing algorithm, use this predicate to specify the type of the algorithm.
22952295 */
2296- HashType getHashFamily ( ) { result = instance .asAlg ( ) .getHashFamily ( ) }
2296+ HashType getHashType ( ) { result = instance .asAlg ( ) .getHashType ( ) }
22972297
2298- override string getAlgorithmName ( ) { result = this .getHashFamily ( ) .toString ( ) }
2298+ override string getAlgorithmName ( ) { result = this .getHashType ( ) .toString ( ) }
22992299
23002300 int getDigestLength ( ) {
23012301 result = instance .asAlg ( ) .getFixedDigestLength ( ) or
2302- fixedImplicitDigestLength ( instance .asAlg ( ) .getHashFamily ( ) , result )
2302+ fixedImplicitDigestLength ( instance .asAlg ( ) .getHashType ( ) , result )
23032303 }
23042304
23052305 final override predicate properties ( string key , string value , Location location ) {
@@ -2340,9 +2340,7 @@ module CryptographyBase<LocationSig Location, InputSig<Location> Input> {
23402340
23412341 override string getAlgorithmName ( ) { result = this .getRawAlgorithmName ( ) }
23422342
2343- EllipticCurveFamilyType getEllipticCurveFamilyType ( ) {
2344- result = instance .asAlg ( ) .getEllipticCurveFamilyType ( )
2345- }
2343+ EllipticCurveType getEllipticCurveType ( ) { result = instance .asAlg ( ) .getEllipticCurveType ( ) }
23462344
23472345 override predicate properties ( string key , string value , Location location ) {
23482346 super .properties ( key , value , location )
0 commit comments