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

@@ -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 */