aes: Advanced Encryption Standard.

Description Usage Arguments Value Examples

View source: R/aes.R

Description

Implemented following the guide https://nvlpubs.nist.gov/nistpubs/fips/nist.fips.197.pdf

Usage

1
aes(msg, key)

Arguments

msg

Block of 16 bytes to be encrypted. Represented as a numerical vector of length 16 whose values go from 0 to 255.

key

Key to encrypt the block. Represented as a numerical vector of length 16/24/32 whose values go from 0 to 255.

Value

Encrypted block with the same representation as input.

Examples

1
aes(seq(0,255,17),0:15)

JorgeRiescoDavila/somecrypto documentation built on Jan. 10, 2022, 1:49 a.m.