Jump to content

Archived

This topic is now archived and is closed to further replies.

hackalive

PKCS7

Recommended Posts

Hi guys,

 

I am using phpseclib AES, however I need to eenable PKCS7 padding.

 

How can I do this?

 

Cheers

Share this post


Link to post
Share on other sites

Again, going to their support forum (found by clicking the button marked Get Support on the main SourceForge page) and searching for pkcs7 I find this topic, which appears relevant.

 

Support for specific products is often best sought in forums/mailing lists specific to said products.

Share this post


Link to post
Share on other sites

Thanks for your help boompa - but that says 5/7 - how to I pick 7 specifically or is 7 the default and 5 is a misprint?

 

I need a way to verify it is PKCS7

Share this post


Link to post
Share on other sites

Thanks for your help boompa - but that says 5/7 - how to I pick 7 specifically or is 7 the default and 5 is a misprint?

Padding is enabled by default. Uses PKCS5/7 padding, which are the same thing per wikipedia:

Share this post


Link to post
Share on other sites

PKCS#5 padding is identical to PKCS#7 padding, except that it has only been defined for block ciphers that use a 64 bit (8 byte) block size. In practice the two can be used interchangeably.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.