From 2770d419ca1365ada024e65cabde33628f006053 Mon Sep 17 00:00:00 2001 From: Rajeev Ranjan Date: Thu, 11 Mar 2021 08:55:02 +0530 Subject: [PATCH] Minor issues in Graphene setup Reinstate graphene-sgx compose file. Signed-off-by: Rajeev Ranjan --- .../avalon_crypto_utils/worker_encryption.py | 1 - .../fibonacci/compose/graphene-sgx.yaml | 24 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 examples/graphene_apps/python_workloads/fibonacci/compose/graphene-sgx.yaml diff --git a/common/crypto_utils/avalon_crypto_utils/worker_encryption.py b/common/crypto_utils/avalon_crypto_utils/worker_encryption.py index 4d97e35ca..417e5a1ee 100644 --- a/common/crypto_utils/avalon_crypto_utils/worker_encryption.py +++ b/common/crypto_utils/avalon_crypto_utils/worker_encryption.py @@ -16,7 +16,6 @@ import sys import logging from Cryptodome.PublicKey import RSA -from Cryptodome.Random import get_random_bytes from Cryptodome.Cipher import AES, PKCS1_OAEP from Cryptodome.Random import get_random_bytes diff --git a/examples/graphene_apps/python_workloads/fibonacci/compose/graphene-sgx.yaml b/examples/graphene_apps/python_workloads/fibonacci/compose/graphene-sgx.yaml new file mode 100644 index 000000000..01ec16856 --- /dev/null +++ b/examples/graphene_apps/python_workloads/fibonacci/compose/graphene-sgx.yaml @@ -0,0 +1,24 @@ +# Copyright 2021 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +version: '3.5' + +services: + process-work-order: + image: gsc-avalon-fibonacci-workload-dev + devices: + - "/dev/gsgx:/dev/gsgx" + - "/dev/isgx:/dev/isgx" + volumes: + - /var/run/aesmd/aesm.socket:/var/run/aesmd/aesm.socket +