@@ -884,15 +884,15 @@ int wh_Client_KeyExportDma(whClientContext* c, uint16_t keyId,
884884 * @param[in] keySz The size in bytes of the key material to wrap.
885885 * @param[in] metadataIn Pointer to the metadata for the wrapped key.
886886 * @param[out] wrappedKeyOut Pointer to store the wrapped key.
887- * @param[in/out] wrappedKeySz IN: Size of wrappedKeyOut in bytes.
888- * OUT: Size of the total wrapped key object.
889- * OUT may be less than IN.
887+ * @param[in/out] wrappedKeyInOutSz IN: Size of wrappedKeyOut in bytes.
888+ * OUT: Size of the total wrapped key object
889+ * returned by the server. OUT may be less than IN.
890890 * @return int Returns 0 on success, or a negative error code on failure.
891891 */
892892int wh_Client_KeyWrap (whClientContext * ctx , enum wc_CipherType cipherType ,
893893 uint16_t serverKeyId , void * keyIn , uint16_t keySz ,
894894 whNvmMetadata * metadataIn , void * wrappedKeyOut ,
895- uint16_t * wrappedKeySz );
895+ uint16_t * wrappedKeyInOutSz );
896896
897897/**
898898 * @brief Sends a key wrap request to the server
@@ -926,14 +926,14 @@ int wh_Client_KeyWrapRequest(whClientContext* ctx,
926926 * @param[in] ctx Pointer to the client context.
927927 * @param[in] cipherType Cipher used to wrap the key.
928928 * @param[out] wrappedKeyOut Pointer to store the wrapped key.
929- * @param[in/out] wrappedKeySz IN: Size of the wrappedKeyOut buffer.
930- * OUT: Size of the wrapped key object.
931- * OUT may be less than IN
929+ * @param[in/out] wrappedKeyInOutSz IN: Size of the wrappedKeyOut buffer.
930+ * OUT: Size of the wrapped key object.
931+ * OUT may be less than IN
932932 * @return int Returns 0 on success, or a negative error code on failure.
933933 */
934934int wh_Client_KeyWrapResponse (whClientContext * ctx ,
935935 enum wc_CipherType cipherType ,
936- void * wrappedKeyOut , uint16_t * wrappedKeySz );
936+ void * wrappedKeyOut , uint16_t * wrappedKeyInOutSz );
937937
938938/**
939939 * @brief Requests the server to unwrap and export a wrapped key and receives
@@ -952,17 +952,17 @@ int wh_Client_KeyWrapResponse(whClientContext* ctx,
952952 * @param[in] wrappedKeySz The size in bytes of the wrapped key data.
953953 * @param[out] metadataOut Pointer to store the unwrapped key metadata.
954954 * @param[out] keyOut Pointer to store the unwrapped key.
955- * @param[in/out] keySz IN: Size of the keyOut buffer.
956- * OUT: Size of the exported key.
957- * OUT may be less than IN.
955+ * @param[in/out] keyInOutSz IN: Size of the keyOut buffer.
956+ * OUT: Size of the exported key returned by the
957+ * server. OUT may be less than IN.
958958 * @return int Returns 0 on success, or a negative error code on failure.
959959 */
960960int wh_Client_KeyUnwrapAndExport (whClientContext * ctx ,
961961 enum wc_CipherType cipherType ,
962962 uint16_t serverKeyId , void * wrappedKeyIn ,
963963 uint16_t wrappedKeySz ,
964964 whNvmMetadata * metadataOut , void * keyOut ,
965- uint16_t * keySz );
965+ uint16_t * keyInOutSz );
966966
967967/**
968968 * @brief Requests the server to unwrap-and-export a wrapped key
@@ -998,15 +998,15 @@ int wh_Client_KeyUnwrapAndExportRequest(whClientContext* ctx,
998998 * @param[in] cipherType Cipher used when for unwrapping the key.
999999 * @param[out] metadataOut Pointer to store the unwrapped key metadata.
10001000 * @param[out] keyOut Pointer to store the unwrapped key.
1001- * @param[in/out] keySz IN: Size of the keyOut buffer.
1002- * OUT: Size of the exported key.
1003- * OUT may be less than IN.
1001+ * @param[in/out] keyInOutSz IN: Size of the keyOut buffer.
1002+ * OUT: Size of the exported key returned by the
1003+ * server. OUT may be less than IN.
10041004 * @return int Returns 0 on success, or a negative error code on failure.
10051005 */
10061006int wh_Client_KeyUnwrapAndExportResponse (whClientContext * ctx ,
10071007 enum wc_CipherType cipherType ,
10081008 whNvmMetadata * metadataOut ,
1009- void * keyOut , uint16_t * keySz );
1009+ void * keyOut , uint16_t * keyInOutSz );
10101010
10111011/**
10121012 * @brief Requests the server to unwrap and cache a wrapped key and receives the
@@ -1081,13 +1081,14 @@ int wh_Client_KeyUnwrapAndCacheResponse(whClientContext* ctx,
10811081 * @param[in] dataInSz The size in bytes of the plaintext data.
10821082 * @param[out] wrappedDataOut The pointer to the buffer that stores the
10831083 * resulting wrapped data.
1084- * @param[in/out] wrappedDataOutSz IN: The size in bytes of the wrapped data
1085- * buffer. OUT: The size of the wrapped data object. OUT may be less than IN.
1084+ * @param[in/out] wrappedDataInOutSz IN: The size in bytes of wrappedDataOut
1085+ * buffer. OUT: The size of the wrapped data object returned from the server.
1086+ * OUT may be less than IN.
10861087 * @return int Returns 0 on success, or a negative error code on failure.
10871088 */
10881089int wh_Client_DataWrap (whClientContext * ctx , enum wc_CipherType cipherType ,
10891090 uint16_t serverKeyId , void * dataIn , uint32_t dataInSz ,
1090- void * wrappedDataOut , uint32_t * wrappedDataOutSz );
1091+ void * wrappedDataOut , uint32_t * wrappedDataInOutSz );
10911092
10921093/**
10931094 * @brief Helper function to unwrap a wrapped data object using a specified key
@@ -1103,15 +1104,15 @@ int wh_Client_DataWrap(whClientContext* ctx, enum wc_CipherType cipherType,
11031104 * @param[in] wrappedDataInSz The size in bytes of the wrapped data object.
11041105 * @param[out] dataOut The pointer to the buffer that stores the
11051106 * resulting unwrapped data.
1106- * @param[in/out] dataOutSz IN: The size in bytes of the unwrapped data buffer .
1107- * OUT: The size of the unwrapped data object.
1108- * OUT may be less than IN.
1107+ * @param[in/out] dataInOutSz IN: The size in bytes of dataOut .
1108+ * OUT: The size of the unwrapped data object return
1109+ * by the server. OUT may be less than IN.
11091110 * @return int Returns 0 on success, or a negative error code on failure.
11101111 */
11111112int wh_Client_DataUnwrap (whClientContext * ctx , enum wc_CipherType cipherType ,
11121113 uint16_t serverKeyId , void * wrappedDataIn ,
11131114 uint32_t wrappedDataInSz , void * dataOut ,
1114- uint32_t * dataOutSz );
1115+ uint32_t * dataInOutSz );
11151116
11161117/* Counter functions */
11171118int wh_Client_CounterInitRequest (whClientContext * c , whNvmId counterId ,
0 commit comments