@Override
    protected void engineSetPadding(String paddingStr) throws NoSuchPaddingException {
        final Padding padding;
        try {
            padding = Padding.getNormalized(paddingStr);
        } catch (IllegalArgumentException e) {
            NoSuchPaddingException newE = new NoSuchPaddingException("No such padding: "
                    + paddingStr);
            newE.initCause(e);
            throw newE;
        }
        checkSupportedPadding(padding);
        this.padding = padding;
    }
Checks whether the cipher supports this particular cipher {@code padding}
and throws {@code NoSuchPaddingException} if it doesn't.
common/src/main/java/org/conscrypt/OpenSSLCipher.java