Find the answer to your Linux question:
Results 1 to 2 of 2
i have a program which have to encrypt data by using a symmetric block cipher with cbc encryption mode . it seems, that the IN data length must be a ...
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    1

    libgrypt and symmetric block cipher

    i have a program which have to encrypt data by using a symmetric block cipher with cbc encryption mode . it seems, that the IN data length must be a multiple of the cipher block length. is there a possibility to advice libgrypt to do the padding of the IN buffer automatically or must i do this manually?

    in case of manual padding: what is the recommended strategy to perform high security? fill with zeros or random numbers or ...?

    language: c
    library: libgcrypt

  2. #2
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    717
    *hm*

    Since the previous cyphers are propagated to the latter, I would doubt if it would significantly degrade the algorithm by using zeros. And this doesn't mean I would encourage someone to use this encryption method.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...