How To Install gost-crypto-dkms on Kali Linux

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

Introduction

In this tutorial we learn how to install gost-crypto-dkms on Kali Linux.

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)

There are three methods to install gost-crypto-dkms on Kali Linux. 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 on Kali Linux first since aptitude is usually not installed by default on Kali Linux. 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 Kali Linux

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 Kali Linux, 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 Kali Linux 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

Dependencies

gost-crypto-dkms have the following dependencies:

References

Summary

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