liboqs
Loading...
Searching...
No Matches
sha2_ops.h File Reference

Header defining the callback API for OQS SHA2. More...

#include <stddef.h>
#include <stdint.h>
#include <oqs/common.h>

Go to the source code of this file.

Data Structures

struct  OQS_SHA2_sha224_ctx
 
struct  OQS_SHA2_sha256_ctx
 
struct  OQS_SHA2_sha384_ctx
 
struct  OQS_SHA2_sha512_ctx
 
struct  OQS_SHA2_callbacks
 

Functions

OQS_API void OQS_SHA2_set_callbacks (struct OQS_SHA2_callbacks *new_callbacks)
 

Detailed Description

Header defining the callback API for OQS SHA2.

Author
Douglas Stebila

SPDX-License-Identifier: MIT

Function Documentation

◆ OQS_SHA2_set_callbacks()

OQS_API void OQS_SHA2_set_callbacks ( struct OQS_SHA2_callbacks * new_callbacks)

Set callback functions for SHA2 operations.

This function may be called before OQS_init to switch the cryptographic provider for SHA2 operations. If it is not called, the default provider determined at build time will be used.

Parameters
[in]new_callbacksCallback functions defined in OQS_SHA2_callbacks