teaclave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject [incubator-teaclave-sgx-sdk] branch master updated: Update app.c
Date Fri, 13 Nov 2020 03:54:37 GMT
This is an automated email from the ASF dual-hosted git repository.

dingyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git


The following commit(s) were added to refs/heads/master by this push:
     new f923581  Update app.c
     new 81955bf  Merge pull request #286 from lengyijun/patch-1
f923581 is described below

commit f92358107dff2b5dde21c3032b62303c085ae5a6
Author: lyj <sjtu5140809011@gmail.com>
AuthorDate: Fri Nov 13 11:44:36 2020 +0800

    Update app.c
    
    fix https://github.com/apache/incubator-teaclave-sgx-sdk/issues/285
---
 samplecode/crypto/app/app.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/samplecode/crypto/app/app.c b/samplecode/crypto/app/app.c
index b1619a2..5016638 100644
--- a/samplecode/crypto/app/app.c
+++ b/samplecode/crypto/app/app.c
@@ -224,6 +224,7 @@ int sha_256(){
     }
     printf("\n");
     printf("[+] calc_sha256 success ...\n");
+    return 0;
 }
 
 int aes_gcm_128(){
@@ -311,6 +312,7 @@ int aes_gcm_128(){
     printf("\n");
 
     printf("[+] aes-gcm-128 decrypt complete \n");
+    return 0;
 }
 
 
@@ -366,7 +368,7 @@ int aes_cmac(){
         printf("%02x", cmac_result[i]);
     }
     printf("\n");
-
+    return 0;
 }
 
 int rsa(){
@@ -406,4 +408,5 @@ int rsa(){
         return -1;
     }
     printf("rsa_key success. \n");
+    return 0;
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@teaclave.apache.org
For additional commands, e-mail: commits-help@teaclave.apache.org


Mime
View raw message