Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358812

Cipher javadoc could describe AEAD reuse better

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • security-libs
    • None
    • minimal
    • Java API
    • SE

      Summary

      Cipher javadoc could describe AEAD reuse better

      Problem

      The class documentation in javax.crypto.Cipher could better describe AEAD and reuse. The current class description example is outdated as GCM encryption does not allow resets.

      Solution

      See Spec

      Specification

      The doc should state that reset() may not be possible with some algorithms or providers and that an IllegalStateException is thrown.

            kthirupattur Koushik Muthukrishnan Thirupattur
            ascarpino Anthony Scarpino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: