Package org.conscrypt

Class OpenSSLAeadCipherAES

    • Method Detail

      • checkSupportedKeySize

        void checkSupportedKeySize​(int keyLength)
                            throws java.security.InvalidKeyException
        Description copied from class: OpenSSLCipher
        Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
        Specified by:
        checkSupportedKeySize in class OpenSSLCipher
        Throws:
        java.security.InvalidKeyException
      • getBaseCipherName

        java.lang.String getBaseCipherName()
        Description copied from class: OpenSSLCipher
        Returns the standard name for the particular algorithm.
        Specified by:
        getBaseCipherName in class OpenSSLCipher
      • getParameterSpec

        protected java.security.spec.AlgorithmParameterSpec getParameterSpec​(java.security.AlgorithmParameters params)
                                                                      throws java.security.InvalidAlgorithmParameterException
        Overrides:
        getParameterSpec in class OpenSSLCipher
        Throws:
        java.security.InvalidAlgorithmParameterException
      • getOutputSizeForFinal

        int getOutputSizeForFinal​(int inputLen)
        Description copied from class: OpenSSLCipher
        The size of output if doFinal() is called with this inputLen. If padding is enabled and the size of the input puts it right at the block size, it will add another block for the padding.
        Overrides:
        getOutputSizeForFinal in class OpenSSLAeadCipher