-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
131 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* \file rand_nist_internal.h | ||
* \brief Functions for manipulating the state of the NIST DRBG; not part of the OQS public API | ||
* | ||
* Contains definitions for functions for manipulating the NIST DRBG state, intended to be used | ||
* by the kat_kem and kat_sig test programs. | ||
* | ||
* <b>Note this is not part of the OQS public API: implementations within liboqs can use these | ||
* functions, but external consumers of liboqs should not use these functions.</b> | ||
* | ||
* \author Spencer Wilson | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#ifndef OQS_RAND_NIST_INTERNAL_H | ||
#define OQS_RAND_NIST_INTERNAL_H | ||
|
||
/** | ||
* Writes the current state of the NIST DRBG into the provided memory. | ||
*/ | ||
void OQS_randombytes_nist_kat_get_state(void *out); | ||
|
||
/** | ||
* Overwrites the current state of the NIST DRBG from the provided memory. | ||
*/ | ||
void OQS_randombytes_nist_kat_set_state(const void *in); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters