@ -45,23 +45,9 @@ u32 module_salt_type (MAYBE_UNUSED const hashconfig_t *hashconfig,
const char * module_st_hash ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED const user_options_t * user_options , MAYBE_UNUSED const user_options_extra_t * user_options_extra ) { return ST_HASH ; }
const char * module_st_pass ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED const user_options_t * user_options , MAYBE_UNUSED const user_options_extra_t * user_options_extra ) { return ST_PASS ; }
int module_build_plain_postprocess ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED const hashes_t * hashes , MAYBE_UNUSED const void * tmps , const u32 * src_buf , MAYBE_UNUSED const size_t src_sz , MAYBE_UNUSED const int src_len , u32 * dst_buf , MAYBE_UNUSED const size_t dst_sz )
{
return base32_encode ( int_to_base32 , ( const u8 * ) src_buf , src_len , ( u8 * ) dst_buf ) ;
}
bool module_unstable_warning ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED const user_options_t * user_options , MAYBE_UNUSED const user_options_extra_t * user_options_extra , MAYBE_UNUSED const hc_device_param_t * device_param )
{
// AMD on Apple not affected
if ( device_param - > opencl_platform_vendor_id = = VENDOR_ID_APPLE )
{
if ( ( device_param - > opencl_device_vendor_id = = VENDOR_ID_AMD ) & & ( device_param - > opencl_device_type & CL_DEVICE_TYPE_GPU ) )
{
return false ;
}
}
// amdgpu-pro-18.50-708488-ubuntu-18.04: Segmentation fault
// amdgpu-pro-20.50-1234664-ubuntu-20.04 (legacy): unhandled return code 255
if ( ( device_param - > opencl_device_vendor_id = = VENDOR_ID_AMD ) & & ( device_param - > has_vperm = = false ) )
{
return true ;
@ -70,6 +56,11 @@ bool module_unstable_warning (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE
return false ;
}
int module_build_plain_postprocess ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED const hashes_t * hashes , MAYBE_UNUSED const void * tmps , const u32 * src_buf , MAYBE_UNUSED const size_t src_sz , MAYBE_UNUSED const int src_len , u32 * dst_buf , MAYBE_UNUSED const size_t dst_sz )
{
return base32_encode ( int_to_base32 , ( const u8 * ) src_buf , src_len , ( u8 * ) dst_buf ) ;
}
int module_hash_decode ( MAYBE_UNUSED const hashconfig_t * hashconfig , MAYBE_UNUSED void * digest_buf , MAYBE_UNUSED salt_t * salt , MAYBE_UNUSED void * esalt_buf , MAYBE_UNUSED void * hook_salt_buf , MAYBE_UNUSED hashinfo_t * hash_info , const char * line_buf , MAYBE_UNUSED const int line_len )
{
u32 * digest = ( u32 * ) digest_buf ;