You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@teaclave.apache.org by di...@apache.org on 2020/12/14 20:11:23 UTC

[incubator-teaclave-sgx-sdk] branch fix-crypto-comment created (now 5e4fdd7)

This is an automated email from the ASF dual-hosted git repository.

dingyu pushed a change to branch fix-crypto-comment
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave-sgx-sdk.git.


      at 5e4fdd7  fix key comment

This branch includes the following new commits:

     new 5e4fdd7  fix key comment

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-teaclave-sgx-sdk] 01/01: fix key comment

Posted by di...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 5e4fdd7fb079a7f43666f4479f2b49dd987d06a9
Author: Yu Ding <di...@gmail.com>
AuthorDate: Mon Dec 14 12:11:01 2020 -0800

    fix key comment
---
 sgx_crypto_helper/src/rsa2048.rs | 2 +-
 sgx_crypto_helper/src/rsa3072.rs | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sgx_crypto_helper/src/rsa2048.rs b/sgx_crypto_helper/src/rsa2048.rs
index e054554..738bbc1 100644
--- a/sgx_crypto_helper/src/rsa2048.rs
+++ b/sgx_crypto_helper/src/rsa2048.rs
@@ -5,7 +5,7 @@ use sgx_types::{sgx_status_t, size_t, SgxResult};
 pub const SGX_RSA2048_KEY_SIZE: size_t     = 256;
 pub const SGX_RSA2048_PRI_EXP_SIZE: size_t = 256;
 pub const SGX_RSA2048_PUB_EXP_SIZE: size_t = 4;
-pub const SGX_RSA2048_DEFAULT_E: [u8;SGX_RSA2048_PUB_EXP_SIZE]    = [0x01, 0x00, 0x00, 0x01]; // 65537
+pub const SGX_RSA2048_DEFAULT_E: [u8;SGX_RSA2048_PUB_EXP_SIZE]    = [0x01, 0x00, 0x00, 0x01]; // 16777217
 use std::fmt;
 
 use std::prelude::v1::*;
diff --git a/sgx_crypto_helper/src/rsa3072.rs b/sgx_crypto_helper/src/rsa3072.rs
index d9cff53..381a4f2 100644
--- a/sgx_crypto_helper/src/rsa3072.rs
+++ b/sgx_crypto_helper/src/rsa3072.rs
@@ -4,7 +4,7 @@ use itertools::Itertools;
 use sgx_types::sgx_status_t;
 use sgx_types::SgxResult;
 use sgx_types::{SGX_RSA3072_KEY_SIZE, SGX_RSA3072_PRI_EXP_SIZE, SGX_RSA3072_PUB_EXP_SIZE};
-pub const SGX_RSA3072_DEFAULT_E: [u8;SGX_RSA3072_PUB_EXP_SIZE]    = [0x01, 0x00, 0x00, 0x01]; // 65537
+pub const SGX_RSA3072_DEFAULT_E: [u8;SGX_RSA3072_PUB_EXP_SIZE]    = [0x01, 0x00, 0x00, 0x01]; // 16777217
 use std::fmt;
 
 use std::prelude::v1::*;


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