Package org.conscrypt

Class OpenSSLAeadCipherAES.GCM_SIV

    • Constructor Detail

      • GCM_SIV

        public GCM_SIV()
    • Method Detail

      • 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
      • allowsNonceReuse

        boolean allowsNonceReuse()
        Description copied from class: OpenSSLAeadCipher
        Returns whether reusing nonces is allowed (aka, whether this is nonce misuse-resistant). Most AEAD ciphers are not, but some are specially constructed so that reusing a key/nonce pair is safe.
        Overrides:
        allowsNonceReuse in class OpenSSLAeadCipher
      • checkSupportedTagLength

        void checkSupportedTagLength​(int tagLengthInBits)
                              throws java.security.InvalidAlgorithmParameterException
        Overrides:
        checkSupportedTagLength in class OpenSSLAeadCipher
        Throws:
        java.security.InvalidAlgorithmParameterException
      • getEVP_AEAD

        long getEVP_AEAD​(int keyLength)
                  throws java.security.InvalidKeyException
        Specified by:
        getEVP_AEAD in class OpenSSLAeadCipher
        Throws:
        java.security.InvalidKeyException