-
Notifications
You must be signed in to change notification settings - Fork 0
feat(rtc_types): add enclave_messages, with set_access_key #98
Conversation
cce761b
to
a5fbec2
Compare
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.
Looks good!
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.
@PiDelport I see you refactored the set_access_key
enclave_mesages code into the ffi_set_access_key
module and renamed REQUEST_SIZE
to SET_ACCESS_KEY_REQUEST_SIZE
. Will all other enclave messages be defined this way? Also does this allow us now to define request sizes without conflicts?
@Nghondzweni: Yeah, for now, it looks like we'll have to use this approach to have both generic and non-generic versions of the types, for FFI purposes. If / when cbindgen gets better support for creating bindings for const generic types, we'll hopefully be able to drop these, but we'll have to follow the upstream issues for that. |
Non-generic version of [`set_access_key`], with conversions. This is a workaround for cbindgen not supporting const generics in structs yet, and should be removed once cbindgen implements that. Tracking issue: <mozilla/cbindgen#687>
…andling issues Issues: * mozilla/cbindgen#7 * mozilla/cbindgen#286 * mozilla/cbindgen#573
…EncryptedRequest as AAD
a5fbec2
to
9c50c82
Compare
(Rebased to refresh.) |
Supporting functionality for issue #37
Precedes PR #87