問題タブ [block-cipher]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
171 参照

java - Rijndael 実装での OutputLengthException

BouncyCastle API for Java を使用した Rijndael 暗号化の実装に問題があります。

OutputLengthException実行すると次のようになりcipher.doFinal(inputTextBytes, intOutOff);ます:

org.bouncycastle.crypto.OutputLengthException: 出力バッファが短すぎます

メソッドを実行するためにその整数を生成する方法を完全には理解していませんdoFinal()

これが私が試したことです:

私が間違っていることを理解することで私を助けてくれますか?