Project

General

Profile

Bug #11614

libzfs_crypto.c doesn't need to use pkcs11_getrandom

Added by Jason King over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

While investigating #11613, it was also noticed that libzfs_crypto is using pkcs11_get_random(). There is no reason to do this when we have getrandom(2). Note we still need to use PKCS#11 for the PBKDF2 support (though perhaps it would be useful to move that to libsoftcrypto, but that should be a separate ticket).

Also available in: Atom PDF