Package org.conscrypt

Class OpenSSLMac.Hmac

    • Field Detail

      • evpMd

        private final long evpMd
        Holds the EVP_MD for the hashing algorithm, e.g. EVP_get_digestbyname("sha1");
    • Constructor Detail

      • Hmac

        public Hmac​(long evpMd,
                    int size)
    • Method Detail

      • initContext

        protected void initContext​(byte[] keyBytes)
        Description copied from class: OpenSSLMac
        Creates and initializes the relevant BoringSSL *MAC context.
        Specified by:
        initContext in class OpenSSLMac
      • resetContext

        protected void resetContext()
        Description copied from class: OpenSSLMac
        Resets the context for a new operation with the same key.
        Specified by:
        resetContext in class OpenSSLMac
      • engineUpdate

        protected void engineUpdate​(byte[] input,
                                    int offset,
                                    int len)
        Specified by:
        engineUpdate in class javax.crypto.MacSpi
      • updateDirect

        protected void updateDirect​(long ptr,
                                    int len)
        Description copied from class: OpenSSLMac
        Passes the contents of a direct ByteBuffer to the relevant BoringSSL *MAC function.
        Specified by:
        updateDirect in class OpenSSLMac