@@ -26,7 +26,8 @@ module JCAModel {
2626 algo .toUpperCase ( )
2727 .matches ( [
2828 "AES" , "AESWrap" , "AESWrapPad" , "ARCFOUR" , "Blowfish" , "ChaCha20" , "ChaCha20-Poly1305" ,
29- "DES" , "DESede" , "DESedeWrap" , "ECIES" , "PBEWith%" , "RC2" , "RC4" , "RC5" , "RSA"
29+ "DES" , "DESede" , "DESedeWrap" , "ECIES" , "PBEWith%" , "RC2" , "RC4" , "RC5" , "RSA" ,
30+ "Skipjack" , "Idea"
3031 ] .toUpperCase ( ) )
3132 }
3233
@@ -190,7 +191,8 @@ module JCAModel {
190191 upper .matches ( "AES%" ) and
191192 type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: AES ( ) )
192193 or
193- upper = "DES" and
194+ // NOTE: there is DES and DESede
195+ upper .matches ( "DES%" ) and
194196 type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: DES ( ) )
195197 or
196198 upper = "TRIPLEDES" and
@@ -205,6 +207,9 @@ module JCAModel {
205207 upper = "CHACHA20" and
206208 type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: CHACHA20 ( ) )
207209 or
210+ upper = "RC2" and
211+ type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: RC2 ( ) )
212+ or
208213 upper = "RC4" and
209214 type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: RC4 ( ) )
210215 or
@@ -213,6 +218,12 @@ module JCAModel {
213218 or
214219 upper = "RSA" and
215220 type = KeyOpAlg:: TAsymmetricCipher ( KeyOpAlg:: RSA ( ) )
221+ or
222+ upper = "SKIPJACK" and
223+ type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: SKIPJACK ( ) )
224+ or
225+ upper = "BLOWFISH" and
226+ type = KeyOpAlg:: TSymmetricCipher ( KeyOpAlg:: BLOWFISH ( ) )
216227 )
217228 }
218229
0 commit comments