@@ -33,30 +33,20 @@ class KnownOpenSSLCipherAlgorithmConstant extends KnownOpenSSLAlgorithmConstant
33
33
}
34
34
35
35
class KnownOpenSSLPaddingAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
36
- string algType ;
37
-
38
36
KnownOpenSSLPaddingAlgorithmConstant ( ) {
39
- resolveAlgorithmFromExpr ( this , _, algType ) and
40
- algType .matches ( "%PADDING" )
37
+ exists ( string algType |
38
+ resolveAlgorithmFromExpr ( this , _, algType ) and
39
+ algType .matches ( "%PADDING" )
40
+ )
41
41
}
42
42
}
43
43
44
44
class KnownOpenSSLBlockModeAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
45
- string algType ;
46
-
47
- KnownOpenSSLBlockModeAlgorithmConstant ( ) {
48
- resolveAlgorithmFromExpr ( this , _, algType ) and
49
- algType .matches ( "%BLOCK_MODE" )
50
- }
45
+ KnownOpenSSLBlockModeAlgorithmConstant ( ) { resolveAlgorithmFromExpr ( this , _, "BLOCK_MODE" ) }
51
46
}
52
47
53
48
class KnownOpenSSLHashAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
54
- string algType ;
55
-
56
- KnownOpenSSLHashAlgorithmConstant ( ) {
57
- resolveAlgorithmFromExpr ( this , _, algType ) and
58
- algType .matches ( "%HASH" )
59
- }
49
+ KnownOpenSSLHashAlgorithmConstant ( ) { resolveAlgorithmFromExpr ( this , _, "HASH" ) }
60
50
61
51
int getExplicitDigestLength ( ) {
62
52
exists ( string name |
@@ -69,20 +59,12 @@ class KnownOpenSSLHashAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
69
59
70
60
class KnownOpenSSLEllipticCurveAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
71
61
KnownOpenSSLEllipticCurveAlgorithmConstant ( ) {
72
- exists ( string algType |
73
- resolveAlgorithmFromExpr ( this , _, algType ) and
74
- algType .matches ( "ELLIPTIC_CURVE" )
75
- )
62
+ resolveAlgorithmFromExpr ( this , _, "ELLIPTIC_CURVE" )
76
63
}
77
64
}
78
65
79
66
class KnownOpenSSLSignatureAlgorithmConstant extends KnownOpenSSLAlgorithmConstant {
80
- string algType ;
81
-
82
- KnownOpenSSLSignatureAlgorithmConstant ( ) {
83
- resolveAlgorithmFromExpr ( this , _, algType ) and
84
- algType .matches ( "SIGNATURE" )
85
- }
67
+ KnownOpenSSLSignatureAlgorithmConstant ( ) { resolveAlgorithmFromExpr ( this , _, "SIGNATURE" ) }
86
68
}
87
69
88
70
/**
0 commit comments