GithubHelp home page GithubHelp logo

CFB mode padding error about spongycastle-old HOT 2 CLOSED

rtyley avatar rtyley commented on June 26, 2024
CFB mode padding error

from spongycastle-old.

Comments (2)

sbheinric avatar sbheinric commented on June 26, 2024

From Wikipedia, "CFB, OFB and CTR modes do not require any special measures to handle messages whose lengths are not multiples of the block size, since the modes work by XORing the plaintext with the output of the block cipher. The last partial block of plaintext is XORed with the first few bytes of the last keystream block, producing a final ciphertext block that is the same size as the final partial plaintext block. This characteristic of stream ciphers makes them suitable for applications that require the encrypted ciphertext data to be the same size as the original plaintext data, and for applications that transmit data in streaming form where it is inconvenient to add padding bytes."
http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation

from spongycastle-old.

rtyley avatar rtyley commented on June 26, 2024

Hi @sbheinric - Spongy Castle is a repackage of the Bouncy Castle libraries intended specifically for Android, which ships with a crippled version of Bouncy Castle. This means it's best if you submit this issue to the upstream project, using the dev-crypto mailing list:

http://www.bouncycastle.org/mailing_lists.html

Once the issue's been resolved, I can release an updated version of Spongy Castle based on the fixed version of Bouncy Castle.

from spongycastle-old.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.