How To Install gost-crypto-dkms on Ubuntu 20.04

In this tutorial we learn how to install gost-crypto-dkms on Ubuntu 20.04. gost-crypto-dkms is Linux kernel modules implementing GOST cryptography Linux kernel modules implementing GOST cryptography

Introduction

In this tutorial we learn how to install gost-crypto-dkms on Ubuntu 20.04.

What is gost-crypto-dkms

gost-crypto-dkms is:

This is a set of Linux kernel modules implementing Russian cryptographic algorithms:

  • GOST 28147 cipher (RFC 5830)
  • GOST 28147 “Imitovstavka” (MAC mode) (RFC 5830)
  • GOST R 34.11-94 digest (RFC 5831)
  • HMAC using GOST R 34.11-94 (RFC 4357)
  • GOST R 34.12-2015 ciphers (Magma and Kuznyechik) (RFC 7801)
  • CMAC using GOST R 34.12-2015 (as required by GOST R 34.13-2015)
  • GOST R 34.11-2012 digest (RFC 6986)

Package: gost-crypto-dkms Architecture: all Version: 0.3.2-2 Priority: optional Section: universe/kernel Source: gost-crypto Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Dmitry Eremin-Solenikov [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1546 Depends: dkms (>= 2.1.0.0) Filename: pool/universe/g/gost-crypto/gost-crypto-dkms_0.3.2-2_all.deb Size: 222792 MD5sum: fe56ceada45052fe6e996f4666d995a8 SHA1: 124e24b7debd00f2f1a5b6eb2703dddad20bf219 SHA256: bb942a8d07c1512b4e848169498dcd700379f12dcfbf1221b0062e6a471ebcac Homepage: https://github.com/GostCrypt/linux-crypto Description-en: Linux kernel modules implementing GOST cryptography This is a set of Linux kernel modules implementing Russian cryptographic algorithms:

  • GOST 28147 cipher (RFC 5830)
  • GOST 28147 “Imitovstavka” (MAC mode) (RFC 5830)
  • GOST R 34.11-94 digest (RFC 5831)
  • HMAC using GOST R 34.11-94 (RFC 4357)
  • GOST R 34.12-2015 ciphers (Magma and Kuznyechik) (RFC 7801)
  • CMAC using GOST R 34.12-2015 (as required by GOST R 34.13-2015)
  • GOST R 34.11-2012 digest (RFC 6986)

There are three methods to install gost-crypto-dkms on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install gost-crypto-dkms Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install gost-crypto-dkms using apt-get by running the following command:

sudo apt-get -y install gost-crypto-dkms

Install gost-crypto-dkms Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gost-crypto-dkms using apt by running the following command:

sudo apt -y install gost-crypto-dkms

Install gost-crypto-dkms Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install gost-crypto-dkms using aptitude by running the following command:

sudo aptitude -y install gost-crypto-dkms

How To Uninstall gost-crypto-dkms on Ubuntu 20.04

To uninstall only the gost-crypto-dkms package we can use the following command:

sudo apt-get remove gost-crypto-dkms

Uninstall gost-crypto-dkms And Its Dependencies

To uninstall gost-crypto-dkms and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove gost-crypto-dkms

Remove gost-crypto-dkms Configurations and Data

To remove gost-crypto-dkms configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge gost-crypto-dkms

Remove gost-crypto-dkms configuration, data, and all of its dependencies

We can use the following command to remove gost-crypto-dkms configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gost-crypto-dkms

References

Summary

In this tutorial we learn how to install gost-crypto-dkms package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.