brintos

brintos / linux-shallow public Read only

0
0
Text · 1.0 KiB · 4310879 Raw
35 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.03#4# Copyright (C) 2022 Red Hat, Inc.5# Author: Vladis Dronov <vdronoff@gmail.com>6#7# This script runs (via instmod) test-cipher.ko module which invokes8# generic and s390-native ChaCha20 encryprion algorithms with different9# size of data. Check 'dmesg' for results.10#11# The insmod error is expected:12# insmod: ERROR: could not insert module test_cipher.ko: Operation not permitted13 14lsmod | grep chacha | cut -f1 -d' ' | xargs rmmod15modprobe chacha_generic16modprobe chacha_s39017 18# run encryption for different data size, including whole block(s) +/- 119insmod test_cipher.ko size=6320insmod test_cipher.ko size=6421insmod test_cipher.ko size=6522insmod test_cipher.ko size=12723insmod test_cipher.ko size=12824insmod test_cipher.ko size=12925insmod test_cipher.ko size=51126insmod test_cipher.ko size=51227insmod test_cipher.ko size=51328insmod test_cipher.ko size=409629insmod test_cipher.ko size=6561130insmod test_cipher.ko size=629145631insmod test_cipher.ko size=6291456032 33# print test logs34dmesg | tail -17035