NAME
Crypt::Bear::EAX - EAX implementation for BearSSL
VERSION
version 0.002
SYNOPSIS
my $aead = Crypt::Bear::EAX->new(Crypt::Bear::AES_CTRCBC->new($key));
$aead->reset($iv);
$aead->aad_inject($aad);
$aead->flip;
my $ciphertext = $aead->run($plaintext, 1);
my $tag = $aead->get_tag;
$aead->reset($iv);
$aead->aad_inject($aad);
$aead->flip;
my $decoded = $aead->run($ciphertext, 0);
$aead->check_tag($tag)
DESCRIPTION
This is a subclass of Crypt::Bear::AEAD that implements EAX mode. It needs a Crypt::Bear::CTRCBC such as Crypt::Bear::AES_CTRCBC for this.
METHODS
new($ctrcbc)
Creates a new EAX mode object with the given CTRCBC
object.
AUTHOR
Leon Timmermans <fawaka@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2024 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.