CryptoSys API  6.22.1
Static Public Member Functions | List of all members
crsysapi::Crc Class Reference

CRC-32 computations. More...

Static Public Member Functions

static int Bytes (const bvec_t &data)
 Compute CRC-32 checksum for byte data. More...
 
static int File (const std::string &fileName)
 Compute CRC-32 checksum for a file. More...
 
static int String (const std::string &s)
 Compute CRC-32 checksum for a string. More...
 

Detailed Description

CRC-32 computations.

Member Function Documentation

◆ Bytes()

static int crsysapi::Crc::Bytes ( const bvec_t data)
static

Compute CRC-32 checksum for byte data.

Parameters
datainput data as a byte array
Returns
Value of CRC-32 checksum

◆ File()

static int crsysapi::Crc::File ( const std::string &  fileName)
static

Compute CRC-32 checksum for a file.

Parameters
fileNameName of input file
Returns
Value of CRC-32 checksum
Remarks
If return value is zero, the file could not be found or read

◆ String()

static int crsysapi::Crc::String ( const std::string &  s)
static

Compute CRC-32 checksum for a string.

Parameters
sinput data
Returns
Value of CRC-32 checksum
Copyright © 2001-24 D.I. Management Services Pty Limited ABN 78 083 210 584 Australia. All rights reserved. <www.di-mgt.com.au> <www.cryptosys.net>. Generated on Sat Jan 6 2024 18:00:07 by Doxygen 1.9.1.