Jump to content


Photo

PKCS7


Best Answer hackalive, 15 July 2013 - 07:32 AM

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.

Go to the full post


  • Please log in to reply
8 replies to this topic

#1 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 12 July 2013 - 01:57 AM

Hi guys,

 

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

 

How can I do this?

 

Cheers



#2 boompa

boompa

    Advanced Member

  • Members
  • PipPipPip
  • 267 posts
  • LocationMassachusetts

Posted 12 July 2013 - 06:01 AM

A quick Google and reading of the docs finds: http://phpseclib.sou...m_crypt_padding



#3 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 12 July 2013 - 08:15 AM

I did that - but it is not PKCS7 only PKCS1 from what I could read.



#4 boompa

boompa

    Advanced Member

  • Members
  • PipPipPip
  • 267 posts
  • LocationMassachusetts

Posted 12 July 2013 - 08:49 AM

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.



#5 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 12 July 2013 - 09:12 AM

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



#6 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 14 July 2013 - 07:26 PM

Anyone?



#7 kicken

kicken

    Wiser? Not exactly.

  • Gurus
  • 2,771 posts
  • LocationBonita, FL

Posted 14 July 2013 - 09:10 PM

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:


Recycle your old CD's, don't trash them!
Did I help you out?  Feeling generous? I accept tips via Paypal or Bitcoin @ 14mDxaob8Jgdg52scDbvf3uaeR61tB2yC7

#8 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 15 July 2013 - 07:25 AM

Where does http://en.wikipedia.org/wiki/PKCS say 5 & 7 are the same?



#9 hackalive

hackalive

    Advanced Member

  • Members
  • PipPipPip
  • 657 posts

Posted 15 July 2013 - 07:32 AM   Best Answer

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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com