-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tools/orc: Add support for ephemeral signer key #2168
Conversation
✅ Deploy Preview for oasisprotocol-oasis-sdk canceled.
|
// | ||
// The code below is adopted from the Go standard library as it is otherwise not possible to | ||
// customize the exponent. | ||
func sgxGenerateKey(random io.Reader) (*rsa.PrivateKey, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add some kind of test, e.g. to test that e == 3
, bits == 3072
, two primes, ...?
@@ -531,6 +556,84 @@ func showTdxComponent(indent string, bnd *bundle.Bundle, comp *bundle.Component) | |||
fmt.Printf("%s Memory: %d MiB\n", indent, comp.TDX.Resources.Memory) | |||
} | |||
|
|||
// sgxGenerateKey generates a 3072-bit RSA key with public exponent 3 as required for SGX. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that small exponents should be avoided. But if they required 3, then what can you do? 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't really matter as MRSIGNER is not used anywhere in our system (we just compare against a reference value in the policy). So it doesn't really matter even if this key is compromised. Which is why we are adding these ephemeral keys here.
…ostko/feature/orc-sgx-setsig-rngkey fc4b55e
…/kostko/feature/orc-sgx-setsig-rngkey fc4b55e
…sisprotocol/kostko/feature/orc-sgx-setsig-rngkey fc4b55e
…oasisprotocol/kostko/feature/orc-sgx-setsig-rngkey fc4b55e
Fixes #2167