-
Notifications
You must be signed in to change notification settings - Fork 96
Add slot number attribute #201
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
Changes from 1 commit
91e8c33
74f3352
c8000c0
5fe5e27
5a68056
013f547
094dac1
edbed56
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Add infrastructure for internal, external and dual-use flags, with a compile-time check (if static_assert is available) to ensure that the same numerical value doesn't get declared for two different purposes in crypto_struct.h (external or dual-use) and psa_crypto_core.h (internal).
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,11 @@ typedef struct | |
} data; | ||
} psa_key_slot_t; | ||
|
||
/* A mask of key attribute flags used only internally. | ||
* Currently there aren't any. */ | ||
#define MBEDTLS_PSA_KA_MASK_INTERNAL_ONLY ( \ | ||
0 ) | ||
|
||
/** Test whether a key slot is occupied. | ||
* | ||
* A key slot is occupied iff the key type is nonzero. This works because | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. Iff = “if and only if” There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, right - Chris has reminded me of this acronym - if and only if. I really don't have it memorized. |
||
|
Uh oh!
There was an error while loading. Please reload this page.
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.
external-only
->internal-only