'Check if this NID_pkcs7_enveloped object
:returns: True if the PKCS7 is of type enveloped'

def type_is_enveloped(self):

    if _lib.PKCS7_type_is_enveloped(self._pkcs7):
        return True
    return False
