Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-30-2008, 01:16 PM
Member
 
Join Date: May 2008
Posts: 25
nanaji is on a distinguished road
Send a message via MSN to nanaji Send a message via Yahoo to nanaji
padding informaiton for PKCS#5
Hi

How to know ,how many padding bytes added to encrypt the block. I believe that pkcs5# add the padding bytes to encrypt.
I just want to check , is there methods to check how many padding bytes added ?


Regards
Nanaji

Last edited by nanaji : 07-30-2008 at 01:22 PM.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-31-2008, 02:55 AM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 710
Nicholas Jordan is on a distinguished road
padding is padding
Quote:
Originally Posted by nanaji View Post
How to know ,how many padding bytes added to encrypt the block. I believe that pkcs5# add the padding bytes to encrypt.
I read up on it not too long ago, the cipher always gets padded out to a predictable number. How much depends on the cipher. You have to read up on each cipher, but if the padding comes in as zero then the full padding amount is tacked on. That way the receiver can always expect at least one padding byte, which is defined for each cipher.

I found Jason Weiss book to be telling.

Quote:
Originally Posted by nanaji View Post
I just want to check , is there methods to check how many padding bytes added ?
Read the docs for the cipher class you are using .
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-31-2008, 05:54 AM
Member
 
Join Date: May 2008
Posts: 25
nanaji is on a distinguished road
Send a message via MSN to nanaji Send a message via Yahoo to nanaji
cipher info
Thanks Nicholas. appreciate.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 07-31-2008, 07:36 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 462
fishtoprecords is on a distinguished road
There is an RFC that specifies it, RFC 3852 section 6.3
RFC 3852 - Cryptographic Message Syntax (CMS)

This is also sometimes refered to as PKCS7

If you want real overkill, google for OAEP
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +3. The time now is 04:36 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org