From d243b17ac1194172f5d08106bcd7c95f027b6f3c Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Thu, 27 Oct 2022 16:28:18 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- en/application-dev/security/huks-overview.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/en/application-dev/security/huks-overview.md b/en/application-dev/security/huks-overview.md index cd918d5d3e..b9b0b7a853 100644 --- a/en/application-dev/security/huks-overview.md +++ b/en/application-dev/security/huks-overview.md @@ -12,17 +12,16 @@ OpenHarmony Universal KeyStore (HUKS) provides KeyStore (KS) capabilities for ap ## Working Principles -HUKS manages keys through the following operations: +HUKS manages keys through the following APIs in an Init-Update-Finish model: -- **Init**: reads the key, creates a session ID, and returns the session ID to the caller. +- **InitSession**: reads the key, creates a session ID, and returns the session ID to the caller. -- **Update**: updates data by segment based on the session ID obtained by the **Init** operation. +- **UpdateSession**: updates data by segment based on the session ID obtained by **InitSession()**. -- **Finish**: processes all data transferred to HUKS and then releases resources. +- **FinishSession**: processes all the data transferred to HUKS and then releases resources. > **NOTICE**
-> The **Abort** operation must be invoked to terminate the use of the key when an error occurs in the **Init**, **Update**, or **Finish** operation. - +> **AbortSession()** must be called to terminate the use of the key when an error occurs in any of **InitSession()**, **UpdateSession()**, and **FinishSession()**. ## Constraints N/A -- GitLab