Skip to content

Commit c6e1090

Browse files
authored
[KeyManager] Rerun cbindgen for decap and seal ffi (#679)
1 parent 28c6275 commit c6e1090

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

keymanager/key_protection_service/key_custody_core/include/kps_key_custody_core.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ int32_t key_manager_generate_kem_keypair(const uint8_t *algo_ptr,
2121

2222
int32_t key_manager_destroy_kem_key(const uint8_t *uuid_bytes);
2323

24+
int32_t key_manager_decap_and_seal(const uint8_t *uuid_bytes,
25+
const uint8_t *encapsulated_key,
26+
size_t encapsulated_key_len,
27+
const uint8_t *aad,
28+
size_t aad_len,
29+
uint8_t *out_encapsulated_key,
30+
size_t out_encapsulated_key_len,
31+
uint8_t *out_ciphertext,
32+
size_t out_ciphertext_len);
33+
2434
#ifdef __cplusplus
2535
} // extern "C"
2636
#endif // __cplusplus

keymanager/workload_service/key_custody_core/include/ws_key_custody_core.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ int32_t key_manager_generate_binding_keypair(const uint8_t *algo_ptr,
1919

2020
int32_t key_manager_destroy_binding_key(const uint8_t *uuid_bytes);
2121

22+
int32_t key_manager_open(const uint8_t *uuid_bytes,
23+
const uint8_t *enc,
24+
size_t enc_len,
25+
const uint8_t *ciphertext,
26+
size_t ciphertext_len,
27+
const uint8_t *aad,
28+
size_t aad_len,
29+
uint8_t *out_plaintext,
30+
size_t out_plaintext_len);
31+
2232
#ifdef __cplusplus
2333
} // extern "C"
2434
#endif // __cplusplus

0 commit comments

Comments
 (0)