MCPcopy Index your code

hub / github.com/aws/aws-nitro-enclaves-nsm-api / functions

Functions47 in github.com/aws/aws-nitro-enclaves-nsm-api

↓ 20 callersFunctionnsm_process_request
Create a message with input data and output capacity from a given request, then send it to the NSM driver via `ioctl()` and wait for the driver's resp
src/driver/mod.rs:87
↓ 10 callersFunctionget_status_string
Get a string with the status of an operation
nsm-test/src/main.cc:21
↓ 5 callersFunctioncheck_single_attestation
Perform and validate a single attestation operation.
nsm-test/src/main.cc:117
↓ 5 callersFunctioncheck_single_attestation
Check a single attestation operation. Argument 1 (input)*: Context from `nsm_init()`. Argument 2 (input)*: Optional user data. Argument 3 (input)*: Op
nsm-test/src/bin/nsm-check.rs:338
↓ 4 callersFunctioncheck_single_attestation
Check a single attestation operation. Argument 1 (input)*: Context from `nsm_init()`. Argument 2 (input)*: Optional user data. Argument 3 (input)*: Op
nsm-test/src/bin/nsm-multithread.rs:55
↓ 3 callersFunctionget_byte_buf_from_user_data
Get an optional byte buffer from user data. Argument 1 (input)*: User data. Argument 2 (input)*: Size of the user data buffer. Returns*: The optional
nsm-lib/src/lib.rs:200
↓ 3 callersFunctionnsm_exit
NSM library exit function. Argument 1 (input)*: The descriptor for the opened device file, as obtained from `nsm_init()`.
src/driver/mod.rs:132
↓ 3 callersFunctionnsm_get_raw_from_vec
Fill a raw buffer using the data from a vector. Argument 1 (input)*: The input vector's slice. Argument 2 (output)*: The raw buffer to be filled with
nsm-lib/src/lib.rs:284
↓ 3 callersFunctionnsm_init
NSM library initialization function. Returns*: A descriptor for the opened device file.
src/driver/mod.rs:113
↓ 2 callersFunctionget_pcr_description
Get and validate the description of a PCR.
nsm-test/src/main.cc:166
↓ 2 callersFunctionget_pcr_len
Get the length of a PCR based on the digest type.
nsm-test/src/main.cc:145
↓ 2 callersFunctionget_pcr_len
Get the length of a PCR in bytes, based on digest. Argument 1 (input)*: The NSM description with digest information. Returns*: PCR length in bytes.
nsm-test/src/bin/nsm-check.rs:67
↓ 2 callersFunctionnsm_extend_pcr
( fd: i32, index: u16, data: *const u8, data_len: u32, pcr_data: *mut u8, pcr_data_len
nsm-lib/src/lib.rs:56
↓ 2 callersFunctionnsm_get_vec_from_raw
Obtain a vector from a raw C-style pointer and length. Argument 1 (input)*: The raw input pointer. Argument 2 (input)*: The length of the input buffer
nsm-lib/src/lib.rs:269
↓ 2 callersFunctionnsm_lock_pcr
(fd: i32, index: u16)
nsm-lib/src/lib.rs:118
↓ 2 callersFunctionnsm_lock_pcrs
(fd: i32, range: u16)
nsm-lib/src/lib.rs:133
↓ 2 callersMethodto_binary
Helper function that converts an AttestationDoc structure to its CBOR representation
src/api/mod.rs:291
↓ 1 callersFunctioncheck_attestation
Validate attestation operations
nsm-test/src/main.cc:394
↓ 1 callersFunctioncheck_attestation
Check multiple attestation operations. Argument 1 (input)*: Context from `nsm_init()`.
nsm-test/src/bin/nsm-check.rs:365
↓ 1 callersFunctioncheck_attestation
Check multiple attestation operations. Argument 1 (input)*: Context from `nsm_init()`. Returns Ok(()) in case of success
nsm-test/src/bin/nsm-multithread.rs:90
↓ 1 callersFunctioncheck_initial_pcrs
Check the initial state of the PCRs.
nsm-test/src/main.cc:188
↓ 1 callersFunctioncheck_initial_pcrs
Test the initial state of the PCRs. Argument 1 (input)*: Context from `nsm_init()`. Argument 2 (input)*: The NSM description.
nsm-test/src/bin/nsm-check.rs:78
↓ 1 callersFunctioncheck_pcr_locks
Check PCR locking.
nsm-test/src/main.cc:263
↓ 1 callersFunctioncheck_pcr_locks
Check and modify the lock state of the PCRs. Argument 1 (input)*: Context from `nsm_init()`. Argument 2 (input)*: The NSM description.
nsm-test/src/bin/nsm-check.rs:168
↓ 1 callersFunctioncheck_random
nsm-test/src/main.cc:416
↓ 1 callersFunctioncheck_random
(ctx: i32)
nsm-test/src/bin/nsm-check.rs:401
↓ 1 callersFunctionextend_pcr
Argument 2 (input)*: The NSM description.
nsm-test/src/bin/nsm-multithread.rs:27
↓ 1 callersFunctionget_nsm_description
Get and validate NSM description.
nsm-test/src/main.cc:56
↓ 1 callersFunctionget_nsm_description
Get the description of the NSM. Argument 1 (input)*: Context from `nsm_init()`. Returns*: A description structure.
nsm-test/src/bin/nsm-check.rs:37
↓ 1 callersFunctionnsm_decode_response_from_cbor
Decode an NSM `Response` value from a raw memory buffer. Argument 1 (input)*: The `iovec` holding the memory buffer. Returns*: The decoded NSM respons
src/driver/mod.rs:51
↓ 1 callersFunctionnsm_describe_pcr
( fd: i32, index: u16, lock: &mut bool, data: *mut u8, data_len: &mut u32, )
nsm-lib/src/lib.rs:91
↓ 1 callersFunctionnsm_encode_request_to_cbor
Encode an NSM `Request` value into a vector. Argument 1 (input)*: The NSM request. Returns*: The vector containing the CBOR encoding.
src/driver/mod.rs:44
↓ 1 callersFunctionnsm_get_attestation_doc
( fd: i32, user_data: *const u8, user_data_len: u32, nonce_data: *const u8, nonce_len: u32
nsm-lib/src/lib.rs:218
↓ 1 callersFunctionnsm_get_description
(fd: i32, nsm_description: &mut NsmDescription)
nsm-lib/src/lib.rs:148
↓ 1 callersFunctionnsm_get_random
(fd: i32, buf: *mut u8, buf_len: &mut usize)
nsm-lib/src/lib.rs:250
↓ 1 callersFunctionnsm_ioctl
Do an `ioctl()` of a given type for a given message. Argument 1 (input)*: The descriptor to the device file. Argument 2 (input/output)*: The message t
src/driver/mod.rs:62
↓ 1 callersFunctionnsm_lib_exit
(fd: i32)
nsm-lib/src/lib.rs:42
↓ 1 callersFunctionnsm_lib_init
()
nsm-lib/src/lib.rs:34
↓ 1 callersFunctionoutput_dir
Sets target to target/$PROFILE/
nsm-lib/build.rs:24
Methodfrom
(error: IoError)
src/api/mod.rs:35
Methodfrom_binary
Helper function that parses a CBOR representation of an AttestationDoc and creates the structure from it, if possible.
src/api/mod.rs:298
Functionmain
()
nsm-lib/build.rs:10
Functionmain
nsm-test/src/main.cc:440
Functionmain
()
nsm-test/src/bin/nsm-check.rs:420
Functionmain
()
nsm-test/src/bin/nsm-multithread.rs:139
Methodnew
( module_id: String, digest: Digest, timestamp: u64, pcrs: BTreeMap<usize, Vec
src/api/mod.rs:257
Functiontest_attestationdoc_binary_encode
()
src/api/mod.rs:308