This is an automated email from the ASF dual-hosted git repository.
mssun pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-teaclave.git
The following commit(s) were added to refs/heads/develop by this push:
new da6768a [attestation] Close SgxEccHandle after use it
da6768a is described below
commit da6768a2baf319aa7e9a86653df9f1546cd6897b
Author: Mingshen Sun <[email protected]>
AuthorDate: Sat Jan 18 11:12:36 2020 -0800
[attestation] Close SgxEccHandle after use it
---
attestation/src/key.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/attestation/src/key.rs b/attestation/src/key.rs
index 4171d54..8696fba 100644
--- a/attestation/src/key.rs
+++ b/attestation/src/key.rs
@@ -146,6 +146,8 @@ impl Secp256k1KeyPair {
.ecdsa_sign_slice(&tbs_cert_der.as_slice(), &self.prv_k)
.unwrap();
+ ecc_handle.close().unwrap();
+
let sig_der = yasna::construct_der(|writer| {
writer.write_sequence(|writer| {
let mut sig_x = sig.x;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]