le_iks_rsa_interface.h
Go to the documentation of this file.
49 //--------------------------------------------------------------------------------------------------53 //--------------------------------------------------------------------------------------------------56 //--------------------------------------------------------------------------------------------------59 * Connect the current client thread to the service providing this API. Block until the service is63 * called before any other functions in this API. Normally, ConnectService is automatically called68 //--------------------------------------------------------------------------------------------------74 //--------------------------------------------------------------------------------------------------77 * Try to connect the current client thread to the service providing this API. Return with an error81 * called before any other functions in this API. Normally, ConnectService is automatically called90 * - LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).93 //--------------------------------------------------------------------------------------------------99 //--------------------------------------------------------------------------------------------------103 * When a server connection is lost, call this handler then exit with LE_FATAL. If a program wants106 //--------------------------------------------------------------------------------------------------113 //--------------------------------------------------------------------------------------------------119 * longer a connection to the service, and the functions in this API can't be used. For details, see124 //--------------------------------------------------------------------------------------------------131 //--------------------------------------------------------------------------------------------------136 * The maximum plaintext size (pLen bytes) depends on the key size (kLen bytes) and the hash digest140 * An optional label associated with the message can be added. The label is restricted to less than143 * The ciphertext size is always kLen bytes (key size) and the ciphertextPtr buffer should be large155 //--------------------------------------------------------------------------------------------------174 //--------------------------------------------------------------------------------------------------179 * The maximum plaintext size (pLen bytes) depends on the key size (kLen bytes) and the hash digest200 //--------------------------------------------------------------------------------------------------219 //--------------------------------------------------------------------------------------------------221 * Generates a signature on the hash digest of a message with RSASSA-PSS (RSA Signature Scheme with224 * Signatures are generally only created on a hash of a message rather than directly on the message225 * itself this function follows this paradigm. However, the same hash function used to create the230 * The salt size should generally be small between 8 and 16 bytes. Strictly, it must be less than234 * The signature size is always the size of the key. The signature buffer should be large enough to246 //--------------------------------------------------------------------------------------------------263 //--------------------------------------------------------------------------------------------------265 * Verifies a signature of the hash digest of a message with RSASSA-PSS (RSA Signature Scheme with268 * Signatures are generally only created on a hash of a message rather than directly on the message269 * itself this function follows this paradigm. However, the same hash function used to create the274 * The salt size should generally be small between 8 and 16 bytes. Strictly, it must be less than289 //--------------------------------------------------------------------------------------------------le_result_t le_iks_rsa_TryConnectService(void)le_result_t le_iks_rsa_Oaep_Decrypt(uint64_t keyRef, const uint8_t *labelPtr, size_t labelSize, const uint8_t *ciphertextPtr, size_t ciphertextSize, uint8_t *plaintextPtr, size_t *plaintextSizePtr)le_result_t le_iks_rsa_Pss_GenSig(uint64_t keyRef, uint32_t saltSize, const uint8_t *digestPtr, size_t digestSize, uint8_t *signaturePtr, size_t *signatureSizePtr)LE_FULL_API void le_iks_rsa_SetServerDisconnectHandler(le_iks_rsa_DisconnectHandler_t disconnectHandler, void *contextPtr)void le_iks_rsa_ConnectService(void)le_result_t le_iks_rsa_Oaep_Encrypt(uint64_t keyRef, const uint8_t *labelPtr, size_t labelSize, const uint8_t *plaintextPtr, size_t plaintextSize, uint8_t *ciphertextPtr, size_t *ciphertextSizePtr)void(* le_iks_rsa_DisconnectHandler_t)(void *)Definition: le_iks_rsa_interface.h:54void le_iks_rsa_DisconnectService(void)le_result_t le_iks_rsa_Pss_VerifySig(uint64_t keyRef, uint32_t saltSize, const uint8_t *digestPtr, size_t digestSize, const uint8_t *signaturePtr, size_t signatureSize)