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)

4.2.5
x86
macOS
defect
Not set
normal

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)
     */
Depends on: 404286
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.
Assignee: gbmozilla → nobody
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.