Question

I need to know what are the padding modes applicable to Triple DES algorithm , Is AI_PKCS_PADDING a padding mode applicable to Triple DES ?

Was it helpful?

Solution

According to Java Cipher API:

Every implementation of the Java platform is required to support the following standard Cipher transformations with the keysizes in parentheses: 


    AES/CBC/NoPadding (128)
    AES/CBC/PKCS5Padding (128)
    AES/ECB/NoPadding (128)
    AES/ECB/PKCS5Padding (128)
    DES/CBC/NoPadding (56)
    DES/CBC/PKCS5Padding (56)
    DES/ECB/NoPadding (56)
    DES/ECB/PKCS5Padding (56)
    DESede/CBC/NoPadding (168)
    DESede/CBC/PKCS5Padding (168)
    DESede/ECB/NoPadding (168)
    DESede/ECB/PKCS5Padding (168)
    RSA/ECB/PKCS1Padding (1024, 2048)
    RSA/ECB/OAEPWithSHA-1AndMGF1Padding (1024, 2048)
    RSA/ECB/OAEPWithSHA-256AndMGF1Padding (1024, 2048)

Hence it should support PKCS5Padding

OTHER TIPS

Triple DES algorithm Padding modes (...) I dont know which mode I should use (...)

DES Modes of Operation (Triple DES is based on DES):

  • ECB
  • CBC
  • CFB
  • OFB

what is deference of AES and DES and DESede

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top