Path: blob/master/tools/testing/crypto/chacha20-s390/run-tests.sh
26292 views
#!/bin/bash1# SPDX-License-Identifier: GPL-2.02#3# Copyright (C) 2022 Red Hat, Inc.4# Author: Vladis Dronov <[email protected]>5#6# This script runs (via instmod) test-cipher.ko module which invokes7# generic and s390-native ChaCha20 encryprion algorithms with different8# size of data. Check 'dmesg' for results.9#10# The insmod error is expected:11# insmod: ERROR: could not insert module test_cipher.ko: Operation not permitted1213lsmod | grep chacha | cut -f1 -d' ' | xargs rmmod14modprobe chacha_generic15modprobe chacha_s3901617# run encryption for different data size, including whole block(s) +/- 118insmod test_cipher.ko size=6319insmod test_cipher.ko size=6420insmod test_cipher.ko size=6521insmod test_cipher.ko size=12722insmod test_cipher.ko size=12823insmod test_cipher.ko size=12924insmod test_cipher.ko size=51125insmod test_cipher.ko size=51226insmod test_cipher.ko size=51327insmod test_cipher.ko size=409628insmod test_cipher.ko size=6561129insmod test_cipher.ko size=629145630insmod test_cipher.ko size=629145603132# print test logs33dmesg | tail -170343536