Implement crypt RNG wrapper (for FIPS mode), use it for SALT and KEY RNG levels.

This commit is contained in:
Milan Broz
2012-05-21 14:32:39 +02:00
parent 45e0942755
commit cf1e6fb847
8 changed files with 52 additions and 1 deletions

View File

@@ -274,3 +274,9 @@ int crypt_hmac_destroy(struct crypt_hmac *ctx)
free(ctx);
return 0;
}
/* RNG - N/A */
int crypt_backend_fips_rng(char *buffer, size_t length, int quality)
{
return -EINVAL;
}