Closed
Bug 413015
Opened 17 years ago
Closed 2 years ago
Mozilla-JSS should calculate the same getOutputSize as SunJCE
Categories
(JSS Graveyard :: Library, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: glenbeasley, Unassigned)
References
Details
SunJCE javadoc for getOutputSize /** * Returns the length in bytes that an output buffer would need to be in * order to hold the result of the next <code>update</code> or * <code>doFinal</code> operation, given the input length * <code>inputLen</code> (in bytes). * * <p>This call takes into account any unprocessed (buffered) data from a * previous <code>update</code> call, and padding. * * <p>The actual output length of the next <code>update</code> or * <code>doFinal</code> call may be smaller than the length returned by * this method. * * @param inputLen the input length (in bytes) * * @return the required output buffer size (in bytes) */
Comment 1•17 years ago
|
||
Glen, I see no requirement that the two implementations must produce the same output size estimate. They must each produce an estimate that is not too small, but as the quoted documentation above states, the actual amount subsequently output may be less than the estimated length. What is the problem that you hope to fix? If it is that some user of this method requires that the estimate always be exact, that is not a valid bug. On the other hand, if it is that JSS sometimes outputs a too-small estimate, that is a valid bug.
Reporter | ||
Updated•14 years ago
|
Assignee: gbmozilla → nobody
Comment 2•2 years ago
|
||
JSS development has moved from the Mozilla community to the Dogtag PKI community. Please re-file this bug at https://github.com/dogtagpki/jss if it is still relevant. Thank you!
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•