Crypt::...er::ARIA(3)

πŸ“¦
version 0.091 Β· 2 versions
, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, this is the Crypt::...er::ARIA(3) manual page β€” User Contributed Perl Documentation, hiiii 🫢 β€” and the module it’s hyping is Crypt::Cipher::ARIA: symmetric cipher ARIA, key size: 128/192/256 bits πŸ’…βœ¨


✨ SYNOPSIS ✨

Two examples, bestie β€” pick your fave. The first one uses Crypt::Mode::CBC, and the second one is the slower Crypt::CBC route. Both are giving β€œI know what I’m doing” energy πŸ”₯

### example 1
use Crypt::Mode::CBC;

my $key = '...'; # length must be a valid key size for this cipher
my $iv = '...';  # 16 bytes
my $cbc = Crypt::Mode::CBC->new('ARIA');
my $ciphertext = $cbc->encrypt("secret data", $key, $iv);

### example 2 (slower)
use Crypt::CBC;
use Crypt::Cipher::ARIA;

my $key = '...'; # length must be a valid key size for this cipher
my $iv = '...';  # 16 bytes
my $cbc = Crypt::CBC->new( -cipher=>'Cipher::ARIA', -key=>$key, -iv=>$iv );
my $ciphertext = $cbc->encrypt("secret data");

🌸 DESCRIPTION 🌸

Since: CryptX-0.090 ⭐

This module implements the ARIA cipher. Its interface is compatible with Crypt::CBC β€” periodt πŸ’–

⚠️ Note: This module only implements single-block encryption and decryption. For general data, use a block mode such as Crypt::Mode::CBC, Crypt::Mode::CTR, or Crypt::CBC (which is slower). 🫢

πŸ’… METHODS πŸ’…

Unless noted otherwise, assume $c is an existing cipher object created via new, for example:

my $c = Crypt::Cipher::ARIA->new($key);

πŸŽ€ new

Make your cipher object here, bestie. You can pass just $key, or $key plus $rounds if that’s your vibe.

my $c = Crypt::Cipher::ARIA->new($key);
#or
my $c = Crypt::Cipher::ARIA->new($key, $rounds);

# $key .... [binary string] key of an accepted length (see keysize, min_keysize, max_keysize)
# $rounds . [integer] optional, number of rounds (if supported by the cipher; croaks on invalid value)

So: $key is a [binary string] key of an accepted length (peep keysize, min_keysize, max_keysize), and $rounds is an [integer] optional number of rounds β€” if supported by the cipher, and it croaks on an invalid value. 🫢

πŸ” encrypt

Exactly one block of plaintext, no more, no less. The length of $plaintext must equal blocksize; croaks otherwise. An empty string is accepted and returned unchanged. πŸ’–

my $ciphertext = $c->encrypt($plaintext);

Returns the encrypted block as a binary string (raw bytes).

πŸ”“ decrypt

Exactly one block of ciphertext. The length of $ciphertext must equal blocksize; croaks otherwise. An empty string is accepted and returned unchanged. πŸ¦‹

my $plaintext = $c->decrypt($ciphertext);

Returns the decrypted block as a binary string (raw bytes).

πŸ”‘ keysize

Just an alias for max_keysize. Same value, same energy. ✨

$c->keysize;
#or
Crypt::Cipher::ARIA->keysize;
#or
Crypt::Cipher::ARIA::keysize;

🧱 blocksize

Returns the cipher block size (in bytes).

$c->blocksize;
#or
Crypt::Cipher::ARIA->blocksize;
#or
Crypt::Cipher::ARIA::blocksize;

πŸ† max_keysize

Returns the maximum key size (in bytes).

$c->max_keysize;
#or
Crypt::Cipher::ARIA->max_keysize;
#or
Crypt::Cipher::ARIA::max_keysize;

πŸ₯Ί min_keysize

Returns the minimum key size (in bytes).

$c->min_keysize;
#or
Crypt::Cipher::ARIA->min_keysize;
#or
Crypt::Cipher::ARIA::min_keysize;

πŸ” default_rounds

Returns the cipher’s default round count.

$c->default_rounds;
#or
Crypt::Cipher::ARIA->default_rounds;
#or
Crypt::Cipher::ARIA::default_rounds;

🌈 SEE ALSO 🌈

go peek at these, bestie:


okay bye bestie πŸ’œ β€” this page came from perl v5.44.0, dated 2026-10-17, and the footer says Crypt::...er::ARIA(3). stay iconic and encrypted βœ¨πŸ”

πŸ“¦ where this page comes from