forked from DMTF/libspdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Wenxing Hou <[email protected]>
- Loading branch information
1 parent
21d720c
commit 49a70b8
Showing
12 changed files
with
315 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright Notice: | ||
* Copyright 2024 DMTF. All rights reserved. | ||
* License: BSD 3-Clause License. For full text see link: https://github.com/DMTF/libspdm/blob/main/LICENSE.md | ||
**/ | ||
|
||
#ifndef RESPONDER_KEY_PAIR_INFO_H | ||
#define RESPONDER_KEY_PAIR_INFO_H | ||
|
||
#include "hal/base.h" | ||
#include "internal/libspdm_lib_config.h" | ||
#include "library/spdm_return_status.h" | ||
#include "industry_standard/spdm.h" | ||
|
||
#if LIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP | ||
|
||
/** | ||
* read the key pair info of the key_pair_id. | ||
* | ||
* @param spdm_context A pointer to the SPDM context. | ||
* @param key_pair_id Indicate which key pair ID's information to retrieve. | ||
* | ||
* @param total_key_pairs Indicate the total number of key pairs on the responder. | ||
* @param capabilities Indicate the capabilities of the requested key pairs. | ||
* @param key_usage_capabilities Indicate the key usages the responder allows. | ||
* @param current_key_usage Indicate the currently configured key usage for the requested key pairs ID. | ||
* @param asym_algo_capabilities Indicate the asymmetric algorithms the Responder supports for this key pair ID. | ||
* @param current_asym_algo Indicate the currently configured asymmetric algorithm for this key pair ID.. | ||
* @param public_key_info_len On input, indicate the size in bytes of the destination buffer to store. | ||
* On output, indicate the size in bytes of the public_key_info. | ||
* @param assoc_cert_slot_mask This field is a bit mask representing the currently associated certificate slots. | ||
* @param public_key_info A pointer to a destination buffer to store the public_key_info. | ||
* | ||
* @retval true get key pair info successfully. | ||
* @retval false get key pair info failed. | ||
**/ | ||
extern bool libspdm_read_key_pair_info( | ||
void *spdm_context, | ||
uint8_t key_pair_id, | ||
uint8_t *total_key_pairs, | ||
uint16_t *capabilities, | ||
uint16_t *key_usage_capabilities, | ||
uint16_t *current_key_usage, | ||
uint32_t *asym_algo_capabilities, | ||
uint32_t *current_asym_algo, | ||
uint16_t *public_key_info_len, | ||
uint8_t *assoc_cert_slot_mask); | ||
#endif /* LIBSPDM_ENABLE_CAPABILITY_GET_KEY_PAIR_INFO_CAP */ | ||
|
||
#endif /* RESPONDER_KEY_PAIR_INFO_H */ |
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
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
Oops, something went wrong.