@@ -300,6 +300,49 @@ H_HTM supports setup, configuration, control and dumping of Hardware Trace
300300Macro (HTM) function and its data. HTM buffer stores tracing data for functions
301301like core instruction, core LLAT and nest.
302302
303+ **H_PKS_GEN_KEY **
304+
305+ | Input: authorization, objectlabel, objectlabellen, policy, out, outlen
306+ | Out: *Hypervisor Generated Key, or None when the wrapping key policy is set*
307+ | Return Value: *H_SUCCESS, H_Function, H_State, H_R_State, H_Parameter, H_P2,
308+ H_P3, H_P4, H_P5, H_P6, H_Authority, H_Nomem, H_Busy, H_Resource,
309+ H_Aborted*
310+
311+ H_PKS_GEN_KEY is used to have the hypervisor generate a new random key.
312+ This key is stored as an object in the Power LPAR Platform KeyStore with
313+ the provided object label. With the wrapping key policy set the key is only
314+ visible to the hypervisor, while the key's label would still be visible to
315+ the user. Generation of wrapping keys is supported only for a key size of
316+ 32 bytes.
317+
318+ **H_PKS_WRAP_OBJECT **
319+
320+ | Input: authorization, wrapkeylabel, wrapkeylabellen, objectwrapflags, in,
321+ | inlen, out, outlen, continue-token
322+ | Out: *continue-token, byte size of wrapped object, wrapped object*
323+ | Return Value: *H_SUCCESS, H_Function, H_State, H_R_State, H_Parameter, H_P2,
324+ H_P3, H_P4, H_P5, H_P6, H_P7, H_P8, H_P9, H_Authority, H_Invalid_Key,
325+ H_NOT_FOUND, H_Busy, H_LongBusy, H_Aborted*
326+
327+ H_PKS_WRAP_OBJECT is used to wrap an object using a wrapping key stored in the
328+ Power LPAR Platform KeyStore and return the wrapped object to the caller. The
329+ caller provides a label to a wrapping key with the 'wrapping key' policy set,
330+ which must have been previously created with H_PKS_GEN_KEY. The provided object
331+ is then encrypted with the wrapping key and additional metadata and the result
332+ is returned to the caller.
333+
334+
335+ **H_PKS_UNWRAP_OBJECT **
336+
337+ | Input: authorization, objectwrapflags, in, inlen, out, outlen, continue-token
338+ | Out: *continue-token, byte size of unwrapped object, unwrapped object*
339+ | Return Value: *H_SUCCESS, H_Function, H_State, H_R_State, H_Parameter, H_P2,
340+ H_P3, H_P4, H_P5, H_P6, H_P7, H_Authority, H_Unsupported, H_Bad_Data,
341+ H_NOT_FOUND, H_Invalid_Key, H_Busy, H_LongBusy, H_Aborted*
342+
343+ H_PKS_UNWRAP_OBJECT is used to unwrap an object that was previously warapped with
344+ H_PKS_WRAP_OBJECT.
345+
303346References
304347==========
305348.. [1 ] "Power Architecture Platform Reference"
0 commit comments