Security Advisories (3)
CVE-2018-25099 (2018-10-26)

A user can pass anything as the tag into gcm_decrypt_verify() and it will return decrypted plaintext.

CVE-2025-40912 (2025-06-11)

CryptX for Perl before version 0.065 contains a dependency that may be susceptible to malformed unicode. CryptX embeds the tomcrypt library. The versions of that library in CryptX before 0.065 may be susceptible to CVE-2019-17362.

CVE-2025-40914 (2025-06-11)

Perl CryptX before version 0.087 contains a dependency that may be susceptible to an integer overflow. CryptX embeds a version of the libtommath library that is susceptible to an integer overflow associated with CVE-2023-36328.

NAME

Crypt::Checksum::CRC32 - Compute CRC32 checksum

SYNOPSIS

use Crypt::Checksum::CRC32;

$d = Crypt::Checksum::CRC32->new;
$d->add('any data');
$d->addfile('filename.dat');
$d->addfile(*FILEHANDLE);
$checksum_raw = $d->digest;     # raw bytes
$checksum_hex = $d->hexdigest;  # hexadecimal form

DESCRIPTION

Calculating CRC32 checksums (OO interface);

Since: CryptX-0.032

METHODS

new

Constructor, returns a reference to the checksum object.

$d = Crypt::Checksum::CRC32->new;

clone

Creates a copy of the checksum object state and returns a reference to the copy.

$d->clone();

reset

Reinitialize the checksum object state and returns a reference to the checksum object.

$d->reset();

add

All arguments are appended to the message we calculate checksum for. The return value is the checksum object itself.

$d->add('any data');
#or
$d->add('any data', 'more data', 'even more data');

addfile

The content of the file (or filehandle) is appended to the message we calculate checksum for. The return value is the checksum object itself.

$d->addfile('filename.dat');
#or
$d->addfile(*FILEHANDLE);

BEWARE: You have to make sure that the filehandle is in binary mode before you pass it as argument to the addfile() method.

digest

Returns the binary checksum (raw bytes).

$result_raw = $d->digest();

hexdigest

Returns the checksum encoded as a hexadecimal string.

$result_hex = $d->hexdigest();

SEE ALSO