mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-08 01:10:03 +01:00
Implement crypt RNG wrapper (for FIPS mode), use it for SALT and KEY RNG levels.
This commit is contained in:
@@ -46,4 +46,7 @@ int crypt_hmac_write(struct crypt_hmac *ctx, const char *buffer, size_t length);
|
||||
int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length);
|
||||
int crypt_hmac_destroy(struct crypt_hmac *ctx);
|
||||
|
||||
/* RNG (must be usable in FIPS mode) */
|
||||
int crypt_backend_fips_rng(char *buffer, size_t length, int quality);
|
||||
|
||||
#endif /* _CRYPTO_BACKEND_H */
|
||||
|
||||
Reference in New Issue
Block a user