Package org.conscrypt

Class OpenSSLAeadCipherChaCha20

    • Constructor Detail

      • OpenSSLAeadCipherChaCha20

        public OpenSSLAeadCipherChaCha20()
    • 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
      • checkSupportedMode

        void checkSupportedMode​(OpenSSLCipher.Mode mode)
                         throws java.security.NoSuchAlgorithmException
        Description copied from class: OpenSSLCipher
        Checks whether the cipher supports this particular cipher mode and throws NoSuchAlgorithmException if it doesn't.
        Specified by:
        checkSupportedMode in class OpenSSLCipher
        Throws:
        java.security.NoSuchAlgorithmException
      • getEVP_AEAD

        long getEVP_AEAD​(int keyLength)
                  throws java.security.InvalidKeyException
        Specified by:
        getEVP_AEAD in class OpenSSLAeadCipher
        Throws:
        java.security.InvalidKeyException
      • 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