hackalive Posted July 12, 2013 Share Posted July 12, 2013 Hi guys, I am using phpseclib AES, however I need to eenable PKCS7 padding. How can I do this? Cheers Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/ Share on other sites More sharing options...
boompa Posted July 12, 2013 Share Posted July 12, 2013 A quick Google and reading of the docs finds: http://phpseclib.sourceforge.net/documentation/sym_crypt.html#sym_crypt_padding Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440440 Share on other sites More sharing options...
hackalive Posted July 12, 2013 Author Share Posted July 12, 2013 I did that - but it is not PKCS7 only PKCS1 from what I could read. Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440451 Share on other sites More sharing options...
boompa Posted July 12, 2013 Share Posted July 12, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440454 Share on other sites More sharing options...
hackalive Posted July 12, 2013 Author Share Posted July 12, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440463 Share on other sites More sharing options...
hackalive Posted July 15, 2013 Author Share Posted July 15, 2013 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440727 Share on other sites More sharing options...
kicken Posted July 15, 2013 Share Posted July 15, 2013 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: Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440730 Share on other sites More sharing options...
hackalive Posted July 15, 2013 Author Share Posted July 15, 2013 Where does http://en.wikipedia.org/wiki/PKCS say 5 & 7 are the same? Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440762 Share on other sites More sharing options...
hackalive Posted July 15, 2013 Author Share Posted July 15, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/280092-pkcs7/#findComment-1440765 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.