diff --git a/Makefile b/Makefile index 632bccd4..06b71d3d 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,7 @@ all: dssp.go \ dtyp.go \ eerr.go \ + efsr.go \ epm.go \ even.go \ even6.go \ @@ -117,8 +118,8 @@ all: lrec.go \ lsad.go \ lsat.go \ - mimicom.go \ mgmt.go \ + mimicom.go \ mqds.go \ mqmp.go \ mqmq.go \ diff --git a/README.md b/README.md index 02e240b7..49f0bc2e 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,7 @@ Based on the [hirochachacha/go-smb2 fork](https://github.com/oiweiwei/go-smb2.fo | Spec | Description | Package | |------|-------------|---------| -| [MIMICOM](https://gist.github.com/gentilkiwi/e3d9c92b93ed4bb48f7956492c1d335a) | Mimikatz COM Interface | [msrpc/mimicom](./msrpc/mimicom) | +| [MIMICOM](https://gist.github.com/gentilkiwi/e3d9c92b93ed4bb48f7956492c1d335a) | Mimikatz Command Interface | [msrpc/mimicom](./msrpc/mimicom) | ### Documentation diff --git a/msdn/.cache/windows_protocols/ms-efsr/00933615-c9cf-4d51-9d9a-bb3fb33a3560 b/msdn/.cache/windows_protocols/ms-efsr/00933615-c9cf-4d51-9d9a-bb3fb33a3560 new file mode 100644 index 00000000..3b05b789 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/00933615-c9cf-4d51-9d9a-bb3fb33a3560 @@ -0,0 +1,66 @@ +

 The Encrypted FEK field in the DDF and DRF key list entries MUST consist +of the following structure, encrypted as specified in the description of the Flags +field for the key list entry.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Key Length
Entropy
Algorithm
Reserved
Key (variable)
...

Key Length (4 bytes): The length, in bytes, of +the Key field. It MUST be a 32-bit unsigned integer in little-endian +format. Possible values depend on the algorithm ID (ALG_ID) as specified in +section 2.2.13.<11>

Entropy (4 bytes): The number of bits of true +randomness in the key contained in this structure. It MUST be a 32-bit unsigned +integer in little-endian format. Possible values depend on the Algorithm +as specified in section 2.2.13.

Algorithm (4 bytes): The symmetric +cryptographic algorithm associated with this key. It MUST be a 32-bit unsigned +integer in little-endian format. Possible values are specified in section +2.2.13. The possible values for this field are constrained by the value of the EFS version field in the EFSRPC Metadata.

Reserved (4 bytes): MUST be set to zero and +ignored.

Key (variable): The FEK for the file.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/043715de-caee-402a-a61b-921743337e78 b/msdn/.cache/windows_protocols/ms-efsr/043715de-caee-402a-a61b-921743337e78 new file mode 100644 index 00000000..893fad6e --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/043715de-caee-402a-a61b-921743337e78 @@ -0,0 +1,36 @@ +

The EfsRpcDecryptFileSrv method is used to convert an +existing encrypted object to the unencrypted state in the server's data store.

+
+
 long EfsRpcDecryptFileSrv(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* FileName,
+   [in] unsigned long OpenFlag
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier as specified in +section 2.2.1.

OpenFlag: This parameter is unused and MUST be +ignored by the server. It MUST be set to zero by the client.

Return Values: The server MUST return zero if +it successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

If no object exists on the server with the specified name, +the server MUST return a nonzero value. If the object exists and is not +encrypted, the server MUST return success.

Otherwise, the server performs the following actions to +convert the object in its data store to an unencrypted state:

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/053f87fb-4896-4307-8ece-f23dc8e9762d b/msdn/.cache/windows_protocols/ms-efsr/053f87fb-4896-4307-8ece-f23dc8e9762d new file mode 100644 index 00000000..3081fb31 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/053f87fb-4896-4307-8ece-f23dc8e9762d @@ -0,0 +1,131 @@ +

 A Marshaled Stream (including the EFSRPC Metadata stream) +MUST be formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
0x4e0x000x540x00
0x460x000x530x00
Flag
Reserved
...
Name Length
Stream Name (variable)
...
Stream Data Segment 1 (variable)
...
Stream Data Segment n (variable)
...

Length (4 bytes): The length, in bytes, of +this stream header from +the start of this field to the end of the Stream Name field. It MUST be +a 32-bit unsigned integer in little-endian format.

Flag (4 bytes):  This MUST be a 32-bit +unsigned integer in little-endian format. It MUST be set to 0x00000000 if the +stream data is encrypted with the FEK. Otherwise, it MUST be +set to 0x00000001. It MUST always be set to zero in the case of the EFSRPC Metadata stream, and +ignored by the server in that case.

+
+ + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x00000000FEK encryption present
0x00000001FEK encryption not present
+

Reserved (8 bytes): This field MUST be set to +zero and ignored.

Name Length (4 bytes):  The length, in bytes, +of the Stream Name field. It MUST be a 32-bit unsigned integer in +little-endian format. This field MUST be set to 0x00000002 for the EFSRPC Metadata stream.

Stream Name (variable):  The name of the +stream. This is set to either a null-terminated Unicode string in UTF-16 +encoding, or an integer value stored in binary form. For the EFSRPC Metadata +stream, this is always set to 0x1910.

+
+ + + + + + + + +
+

Value

+
+

Meaning

+
0x1910EFSRPC Metadata stream
+

Stream Data Segment 1 ... n: These segments MUST contain the +contents of the stream as well as some metadata for reassembling the segments. +For encrypted streams, these segments MUST also contain some metadata to aid in +decryption. They MUST be formatted as specified in section 2.2.3.2.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/066d0c3d-182c-4730-a005-dbf8990c9fbb b/msdn/.cache/windows_protocols/ms-efsr/066d0c3d-182c-4730-a005-dbf8990c9fbb new file mode 100644 index 00000000..19ec1336 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/066d0c3d-182c-4730-a005-dbf8990c9fbb @@ -0,0 +1,167 @@ +

 The Certificate Data structure MUST be formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Offset to Certificate Thumbprint
Length of Certificate Thumbprint
Offset of Container Name
Offset of Provider Name
Offset of Display Name
Data Fields (variable)
...

Offset to Certificate Thumbprint (4 bytes): Offset +of the Certificate Thumbprint field from the start of this structure. It +MUST be a 32-bit unsigned integer in little-endian format.

Length of Certificate Thumbprint (4 bytes): The +length of the Certificate Thumbprint field. It MUST be a 32-bit unsigned +integer in little-endian format.

Offset of Container Name (4 bytes): Offset of +the Container Name field (in bytes) from the start of this structure. It +MUST be a 32-bit unsigned integer in little-endian format. If this field is set +to zero, then the Container Name field MUST be absent.

Offset of Provider Name (4 bytes): Offset of +the Provider Name field (in bytes) from the start of this structure. It +MUST be a 32-bit unsigned integer in little-endian format. If this field is set +to zero, the Provider Name field MUST be absent. If a Provider Name +field is present, a Container Name field MUST also be present.

Offset of Display Name (4 bytes): Offset of +the Display Name field, (in bytes) from the start of this structure. It +MUST be a 32-bit unsigned integer in little-endian format. If this field is set +to zero, then the Display Name field MUST be absent.

Data Fields (variable): This field MUST +contain the following items, in any order, and at the locations indicated by +the respective Offset fields previously listed. These items MUST be +completely contained inside this field and MUST NOT overlap each other. There +MUST NOT be any unused areas within this field that span more than 8 contiguous +bytes.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Certificate Thumbprint (variable)
...
Container Name (variable)
...
Provider Name (variable)
...
Display Name (variable)
...
+
+
+

Certificate Thumbprint +(variable): The SHA-1 hash of the DER-encoded form of the certificate. For +more information on SHA-1, see [FIPS180-4]. For more +information on DER encoding, see [X690].

+
+
+

Container Name +(variable): A null-terminated Unicode string in UTF-16 encoding that +provides a hint as to the public key container in which the key is stored. This +field MUST always be present if the Provider Name is present. When the Container +Name field is present, the Offset of Container Name field MUST be +nonzero; otherwise, this field is ignored by the server and does not affect +protocol behavior.

+
+
+

Provider Name (variable): +A null-terminated Unicode string in UTF-16 encoding. This field MUST always +be present if the Container Name is present. It MUST be omitted if the Offset +of Provider Name field is 0; otherwise, this field is ignored by the server +and does not affect protocol behavior.

+
+
+

Display Name (variable): A +null-terminated Unicode string in UTF-16 encoding that provides a hint as to +the friendly name that can be used to identify this certificate for display +purposes. This field MUST be omitted if the Offset of Display Name field +is 0.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/08ad49d7-29e4-4c50-b2c1-8c21df94f947 b/msdn/.cache/windows_protocols/ms-efsr/08ad49d7-29e4-4c50-b2c1-8c21df94f947 new file mode 100644 index 00000000..aa26568a --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/08ad49d7-29e4-4c50-b2c1-8c21df94f947 @@ -0,0 +1,11 @@ +

 

The EFS_COMPATIBILITY_INFO type is used to represent +information about the compatibility restrictions of an encrypted file.

+
+
 typedef struct {
+   DWORD EfsVersion;
+ } EFS_COMPATIBILITY_INFO;
+
+

EfsVersion: The EfsVersion +associated with the EFSRPC Metadata. Valid values for the EfsVersion +field are described in sections 2.2.2.1, 2.2.2.2, +and 2.2.2.3.<29>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/0b9b7b7e-9491-47eb-b057-c94bd0193a13 b/msdn/.cache/windows_protocols/ms-efsr/0b9b7b7e-9491-47eb-b057-c94bd0193a13 new file mode 100644 index 00000000..434bb1de --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/0b9b7b7e-9491-47eb-b057-c94bd0193a13 @@ -0,0 +1,12 @@ +

The EFS_RPC_BLOB type is used to represent a generic binary large object (BLOB) +(that is, an opaque data type).

+
+
 typedef struct _EFS_RPC_BLOB {
+   [range(0,266240)] DWORD cbData;
+   [size_is(cbData)] unsigned char* bData;
+ } EFS_RPC_BLOB,
+  *PEFS_RPC_BLOB;
+
+

cbData: The length, in bytes, of +the data object in the bData field.

bData: The contents of the data +object.<25>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/0e9d5482-59c7-4cd3-a439-603f9d154963 b/msdn/.cache/windows_protocols/ms-efsr/0e9d5482-59c7-4cd3-a439-603f9d154963 new file mode 100644 index 00000000..6da86a32 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/0e9d5482-59c7-4cd3-a439-603f9d154963 @@ -0,0 +1,57 @@ +

The DDF +and Key List structure in the EFSRPC Metadata MUST be +formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
Key_List_1 (variable)
...
Key_List_n (variable)
...

Length (4 bytes): The number of entries in +this key list. It MUST +be a 32-bit unsigned integer in little-endian format.

Key List entries 1 ... n: A number of entries +equal to the value in the length of key list field. The individual +entries MUST be formatted as specified in section 2.2.2.1.2.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/1d2fa232-d557-43fe-95e3-2d4ced7f7934 b/msdn/.cache/windows_protocols/ms-efsr/1d2fa232-d557-43fe-95e3-2d4ced7f7934 new file mode 100644 index 00000000..2d94a0d1 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/1d2fa232-d557-43fe-95e3-2d4ced7f7934 @@ -0,0 +1,156 @@ +

The EFSX Datum represents the base type for every datum +within the Version 4 and Version 5 EFSRPC Metadata and MUST be formatted as +follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

StructureSizeRole
TypeFlags

StructureSize (2 bytes): The size in bytes of +the EFSX Datum. It MUST be a 16-bit unsigned integer in little-endian format.

Role (2 bytes): Specifies the EFSX Datum role. +It MUST be a 16-bit unsigned integer in little-endian format.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x0000The EFSX Datum has no defined role.
0x0001The EFSX Datum contains a reference to a user's certificate store. This reference could be, for example, a certificate hash or the public key from a certificate.
0x0002The EFSX Datum contains data specific to a protector type. See section 2.2.2.2.5 for valid protector types and their associated protector data format.
0x0003The EFSX Datum contains information that is suitable for user display. For example, this could be the user name associated with a protector.
0x0004The EFSX Datum contains information that identifies a private key container.
0x0005The EFSX Datum contains information that identifies the provider name of a CSP or KSP.
0x0006The EFSX Datum contains a user SID.
0x0007The EFSX Datum contains the encrypted File Master Key (FMK).
0x0008The EFSX Datum contains a user's public key.
0x0009The EFSX Datum contains an ephemeral public key.
0x000aThe EFSX Datum contains the encrypted File Encryption Key (FEK).
0x000bThe EFSX Datum contains the file Initialization Vector (IV).
0x000cThe EFSX Datum contains a protector descriptor string.<15> This datum role MUST only be used when EFS_VERSION is 5.
+

Type (2 bytes): Specifies the EFSX Datum type. +It MUST be a 16-bit unsigned integer in little-endian format.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
Reserved 0x0000Reserved. Local use only.
EFSX_TYPE_BLOB 0x0001The EFSX Datum MUST be formatted as specified in section 2.2.2.2.3.
EFSX_TYPE_DESCRIPTOR 0x0002The EFSX Datum MUST be formatted as specified in section 2.2.2.2.4.
EFSX_TYPE_KEY_PROTECTOR 0x0003The EFSX Datum MUST be formatted as specified in section 2.2.2.2.5.
EFSX_TYPE_PROTECTOR_INFO 0x0004The EFSX Datum MUST be formatted as specified in section 2.2.2.2.6.
EFSX_TYPE_KEY_AGMT_DATA 0x0005The EFSX Datum MUST be formatted as specified in section 2.2.2.2.7.
EFSX_TYPE_FEK_INFO 0x0006The EFSX Datum MUST be formatted as specified in section 2.2.2.2.8.
EFSX_TYPE_DPAPI_NG_DATA 0x0007The EFSX Datum MUST be formatted as specified in section 2.2.2.2.9. This type MUST only be used when EFS_VERSION is 5.<16>
+

Flags (2 bytes): Specifies datum flags. It +MUST be a 16-bit unsigned integer in little-endian format. The value of this +field MUST be zero (0x0000) or a union of one or more of the following values.

+
+ + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x0001The EFSX Datum is nested inside a parent structure.
0x0002The EFSX Datum is a complex datum containing nested datum structures.
+

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/242d857f-ac8e-4cc8-b5e4-9314a942f45e b/msdn/.cache/windows_protocols/ms-efsr/242d857f-ac8e-4cc8-b5e4-9314a942f45e new file mode 100644 index 00000000..35f6c3fc --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/242d857f-ac8e-4cc8-b5e4-9314a942f45e @@ -0,0 +1,10 @@ +

The EFS_HASH_BLOB type is used to represent an X.509 certificate hash.

+
+
 typedef struct _EFS_HASH_BLOB {
+   [range(0, 100)] DWORD cbData;
+   [size_is(cbData)] unsigned char* bData;
+ } EFS_HASH_BLOB;
+
+

cbData: The number of bytes in the +bData buffer.

bData: The SHA-1 hash of an X.509 +certificate. For more information on SHA-1, see [FIPS180-4].<22>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/2527501c-7230-4d4c-a0b3-2a1841634a86 b/msdn/.cache/windows_protocols/ms-efsr/2527501c-7230-4d4c-a0b3-2a1841634a86 new file mode 100644 index 00000000..b57c0174 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/2527501c-7230-4d4c-a0b3-2a1841634a86 @@ -0,0 +1,56 @@ +

 The Descriptor Datum encapsulates a Unicode string in +UTF-16 encoding. It MUST be formatted as below.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

EFSX_Datum
...
Descriptor_Text (variable)
...

EFSX_Datum (8 bytes):  MUST be formatted as +specified in section 2.2.2.2.2. +The datum Type MUST be EFSX_TYPE_DESCRIPTOR (0x0002). The datum Flags +MUST NOT include 0x0002.

Descriptor_Text (variable): Contains a +null-terminated, variable-sized Unicode string in UTF-16 encoding. The Descriptor_Text +MUST be entirely contained within the Descriptor Datum. The length of +the Descriptor_Text MUST be at least 2 bytes to include the null +terminator (0x0000).

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/2718804c-6ab9-45fd-98cf-541bc3b6bc75 b/msdn/.cache/windows_protocols/ms-efsr/2718804c-6ab9-45fd-98cf-541bc3b6bc75 new file mode 100644 index 00000000..ad2750e8 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/2718804c-6ab9-45fd-98cf-541bc3b6bc75 @@ -0,0 +1,13 @@ +

The ENCRYPTION_CERTIFICATE_HASH_LIST type is used to +represent a set of certificate +hashes.

+
+
 typedef struct _ENCRYPTION_CERTIFICATE_HASH_LIST {
+   [range(0,500)] DWORD nCert_Hash;
+   [size_is(nCert_Hash,)] ENCRYPTION_CERTIFICATE_HASH** Users;
+ } ENCRYPTION_CERTIFICATE_HASH_LIST;
+
+

nCert_Hash: The number of +certificate hashes in the list.

Users: A pointer to an array of +pointers to ENCRYPTION_CERTIFICATE_HASH +(2.2.10) structures. This array is of size nCert_Hash.<24>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/28609dad-5fa5-4af9-9382-18d40e3e9dec b/msdn/.cache/windows_protocols/ms-efsr/28609dad-5fa5-4af9-9382-18d40e3e9dec new file mode 100644 index 00000000..eb9131d9 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/28609dad-5fa5-4af9-9382-18d40e3e9dec @@ -0,0 +1,33 @@ +

The EfsRpcRemoveUsersFromFile method is used to revoke a user's +access to an encrypted object. This method revokes the ability of the private key corresponding +to a given X.509 certificate to decrypt the +object.

+
+
 DWORD EfsRpcRemoveUsersFromFile(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* FileName,
+   [in] ENCRYPTION_CERTIFICATE_HASH_LIST* Users
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier as specified in +section 2.2.1.

Users: A list of certificate hashes, +represented by an ENCRYPTION_CERTIFICATE_HASH_LIST +structure, whose access is to be removed.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

+
+

If no object exists on the server with the specified +name, or if the object exists and is not encrypted, the server MUST return a +nonzero value. The server SHOULD verify that the calling user is authorized to +access the object, SHOULD verify that the calling user possesses a private key corresponding to a user +certificate present in the EFSRPC +Metadata for the object, and MUST return a nonzero value if this +verification fails. If the calling user is authorized to access the object and +the set of user certificates on the object contains only one entry, the server +MUST return a nonzero value.

+

If none of the preceding errors occur, the server MUST +remove the parts of the object's EFSRPC Metadata that refer to the user +certificates listed in the Users structure.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/38a5a7d3-4d47-4075-b830-b657805f2e94 b/msdn/.cache/windows_protocols/ms-efsr/38a5a7d3-4d47-4075-b830-b657805f2e94 new file mode 100644 index 00000000..335e441c --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/38a5a7d3-4d47-4075-b830-b657805f2e94 @@ -0,0 +1,23 @@ +

On receiving the EfsRpcSetEncryptedFileMetadata method call, +an EFSRPC server SHOULD ignore the input parameters and return a nonzero value. +The server MAY choose to act on this method in an implementation-specific +manner.<58>

+
+
 DWORD EfsRpcSetEncryptedFileMetadata(
+   [in] handle_t binding_h,
+   [in, string, ref] wchar_t* FileName,
+   [in, unique] EFS_RPC_BLOB* OldEfsStreamBlob,
+   [in, ref] EFS_RPC_BLOB* NewEfsStreamBlob,
+   [in, unique] ENCRYPTED_FILE_METADATA_SIGNATURE* NewEfsSignature
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier as specified in +section 2.2.1.

OldEfsStreamBlob: This parameter SHOULD be set +to NULL by the client and ignored by the server.<59>

NewEfsStreamBlob: This parameter SHOULD be set +to a zero-length EFS_RPC_BLOB +by the client and ignored by the server.<60>

NewEfsSignature:  This parameter SHOULD be set +to NULL by the client and ignored by the server.<61>

Return Values: The server SHOULD return a +nonzero value.<62>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/3a7e7151-edcb-4b32-a119-35cdce1584c0 b/msdn/.cache/windows_protocols/ms-efsr/3a7e7151-edcb-4b32-a119-35cdce1584c0 new file mode 100644 index 00000000..60ad5f7f --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/3a7e7151-edcb-4b32-a119-35cdce1584c0 @@ -0,0 +1,21 @@ +

The ENCRYPTION_CERTIFICATE_HASH type is used to represent a +single certificate hash. +For more information on certificates, see [X509].

+
+
 typedef struct _ENCRYPTION_CERTIFICATE_HASH {
+   DWORD cbTotalLength;
+   RPC_SID* UserSid;
+   EFS_HASH_BLOB* Hash;
+   [string] wchar_t* lpDisplayInformation;
+ } ENCRYPTION_CERTIFICATE_HASH;
+
+

cbTotalLength: The length, in +bytes, of the structure.

UserSid: The SID of the user who owns +the certificate. This is intended only as a hint. It MAY be set to zero if no +such hint is available. The structure of an RPC SID is specified in [MS-DTYP], +section 2.4.2.3.

Hash: A pointer to an EFS_HASH_BLOB (2.2.7) +structure.

lpDisplayInformation: A string that +contains the subject or principal name of the account the certification is +assigned to. The subject name and the principal name can be the same. This is +only intended as a hint for display purposes, and is implementation-dependent. +This field MAY be set to NULL if no such information is available.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/473813b6-8290-430c-8124-3ee31c7c9ec5 b/msdn/.cache/windows_protocols/ms-efsr/473813b6-8290-430c-8124-3ee31c7c9ec5 new file mode 100644 index 00000000..04ab2f94 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/473813b6-8290-430c-8124-3ee31c7c9ec5 @@ -0,0 +1,28 @@ +

On receiving the EfsRpcNotSupported method call, an EFSRPC +server SHOULD implement the EfsRpcNotSupported method as specified in this +section and return a nonzero value. However, a server MAY<44> choose to interpret and respond +to the arguments as specified in section 3.1.4.2.13.

+
+
 DWORD EfsRpcNotSupported(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* Reserved1,
+   [in, string] wchar_t* Reserved2,
+   [in] DWORD dwReserved1,
+   [in] DWORD dwReserved2,
+   [in, unique] EFS_RPC_BLOB* Reserved,
+   [in] BOOL bReserved
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified, in [C706] +and in [MS-RPCE] +section 2. +

Reserved1: This parameter is not used. It MUST +be set to an empty string by the client and ignored by the server.

Reserved2: This parameter is not used. It MUST +be set to an empty string by the client and ignored by the server.

dwReserved1: This parameter is not used. It +MUST be set to zero by the client and ignored by the server.

dwReserved2: This parameter is not used. It +MUST be set to zero by the client and ignored by the server.

Reserved: This parameter is not used. It MUST +be set to NULL by the client and ignored by the server.

bReserved: This parameter is not used. It MUST +be set to FALSE by the client and ignored by the server.

Return Values: The EFSRPC server SHOULD return +a nonzero value. However, the server MAY<45> process +this as described in section 3.1.4.2.13.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/4892c610-4595-4fba-a67f-a2d26b9b6dcd b/msdn/.cache/windows_protocols/ms-efsr/4892c610-4595-4fba-a67f-a2d26b9b6dcd new file mode 100644 index 00000000..82cf3f2a --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/4892c610-4595-4fba-a67f-a2d26b9b6dcd @@ -0,0 +1,106 @@ +

The Encrypting File System Remote Protocol (hereafter +referred to as EFSRPC) is a Remote +Procedure Call (RPC) interface that is used to manage data objects stored +in an encrypted form. The objective of encrypting data in this fashion is to +enforce access control policies and to provide confidentiality from +unauthorized users.

EFSRPC is implemented in Windows to provide remote +management for files +encrypted by the Encrypting +File System (EFS). EFS is the ability of the New Technology File System +(NTFS) file system to encrypt files on disk in a manner that is transparent +to the user. For more information on EFS, see [MSFT-EFS]. For more +information about NTFS, +see [MSFT-NTFS].

EFSRPC does not address how data is encrypted, how the +encrypted data is stored, or how it is accessed for routine operations such as +reading, writing, creating, and deleting. All these actions are specific to the +server implementation. On Windows, NTFS provides the storage mechanism (the +file is the unit of storage) and the Server Message Block (SMB) Protocol +provides remote access to such files. For more information about SMB, see [MS-SMB] +and [MS-SMB2].

EFSRPC models the underlying data encryption architecture +using two basic constructs:

EFSRPC also assumes that each encrypted object is associated +with some security-related metadata, which contains information required for +authorized users and DRAs to access the plaintext of the object. +This specification refers to this security-related metadata as the EFSRPC Metadata.

EFSRPC does not specify how data is encrypted, stored, or +accessed. It is possible to build a compliant EFSRPC implementation that uses a +mechanism, such as access +control lists (ACLs), instead of encryption to control access to data +objects. For the purposes of this specification, the term encrypted is used to +indicate that a data object and its metadata can be successfully manipulated +through the EFSRPC methods, with the exception of the EfsRpcEncryptFileSrv +method, which converts data objects from an unencrypted state to an encrypted +state.

Within the preceding model, EFSRPC provides various +categories of management routines. The syntax of the individual methods and +rules for how these methods are processed on the server are specified in +section 3.1.4.2. The +categories of management routines that EFSRPC provides are as follows:

Most of the EFSRPC routines are stateless and can be called +in any order. When one of these routines is called, the message exchange is as +follows.

Message exchange for stateless routines

Figure 1: Message exchange for stateless routines

There are two routines in EFSRPC that are an exception to +the stateless nature of the protocol. Several methods, collectively known as +the EFSRPC raw methods, are an exception and need to be called in a specific +order. This includes the EfsRpcOpenFileRaw, EfsRpcReadFileRaw, +EfsRpcWriteFileRaw, and EfsRpcCloseRaw methods. The following two sequences are +permissible.

Message sequence for opening a file

Figure 2: Message sequence for opening a file

Message sequence for importing a file

Figure 3: Message sequence for importing a file

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/49a8335f-3136-4059-9deb-9574d5ed5c86 b/msdn/.cache/windows_protocols/ms-efsr/49a8335f-3136-4059-9deb-9574d5ed5c86 new file mode 100644 index 00000000..e24b20ac --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/49a8335f-3136-4059-9deb-9574d5ed5c86 @@ -0,0 +1,19 @@ +

The EFS_KEY_INFO type is used to represent information about +a key of a symmetric +cryptosystem.

+
+
 typedef struct {
+   DWORD dwVersion;
+   unsigned long Entropy;
+   ALG_ID Algorithm;
+   unsigned long KeyLength;
+ } EFS_KEY_INFO;
+
+

dwVersion: The version of this data +structure. It MUST be equal to 0x00000001.

Entropy: The actual number of bits +of entropy or true randomness in the key. This value, divided by 8, MUST be +less than or equal to the value of the KeyLength member.

Algorithm: The cryptographic +algorithm with which the key is intended to be used.

KeyLength: The total length, in +bytes, of the key. This value, multiplied by 8, MUST be greater than or equal +to the value of the Entropy member. Valid combinations of Entropy, +Algorithm, and KeyLength are specified in section 2.2.13.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/4aae68f5-a2c0-4c6f-90fd-a268d52ef5f3 b/msdn/.cache/windows_protocols/ms-efsr/4aae68f5-a2c0-4c6f-90fd-a268d52ef5f3 new file mode 100644 index 00000000..f785624d --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/4aae68f5-a2c0-4c6f-90fd-a268d52ef5f3 @@ -0,0 +1,54 @@ +

 The Protector Info Datum encapsulates information +describing the origin of a protector. It MUST be formatted as below.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

EFSX_Datum
...
Data_Fields (variable)
...

EFSX_Datum (8 bytes): MUST be formatted as +specified in section 2.2.2.2.2. +The datum Type MUST be EFSX_TYPE_PROTECTOR_INFO (0x0004). The datum Flags +SHOULD include 0x0002 indicating a complex datum.

Data_Fields (variable): This field contains +any number of nested EFSX_Datum structures. The nested datum structures MUST +NOT overlap, and MUST be entirely contained within the protector info datum.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/4c2748b2-7e16-4e9f-9bac-311902d2c0cb b/msdn/.cache/windows_protocols/ms-efsr/4c2748b2-7e16-4e9f-9bac-311902d2c0cb new file mode 100644 index 00000000..38fd2ca7 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/4c2748b2-7e16-4e9f-9bac-311902d2c0cb @@ -0,0 +1,43 @@ +

The ENCRYPTED_FILE_METADATA_SIGNATURE structure is used by +the client to prove to the server that it possesses a private key that is +authorized to decrypt a given object.

+
+
 typedef struct _ENCRYPTED_FILE_METADATA_SIGNATURE {
+   DWORD dwEfsAccessType;
+   ENCRYPTION_CERTIFICATE_HASH_LIST* CertificatesAdded;
+   ENCRYPTION_CERTIFICATE* EncryptionCertificate;
+   EFS_RPC_BLOB* EfsStreamSignature;
+ } ENCRYPTED_FILE_METADATA_SIGNATURE;
+
+

dwEfsAccessType: The operation +being performed. It MUST be set to one of the following values.

+
+ + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
EFS_METADATA_ADD_USER 0x00000001One or more additional user certificates are being granted access to the object.
EFS_METADATA_REMOVE_USER 0x00000002One or more user certificates are having their access to the object revoked.
EFS_METADATA_REPLACE_USER 0x00000004One or more user certificates with access to the object are being replaced.
EFS_METADATA_GENERAL_OP 0x00000008A change is being made to the metadata that is not fully described by exactly one of the previous options.
+

CertificatesAdded: The X.509 certificates whose +corresponding private keys are to be granted or denied the ability to decrypt +the object.

EncryptionCertificate: The X.509 +certificates whose corresponding private key the caller claims to possess.

EfsStreamSignature: The signature +obtained by signing the SHA-1 hash of the new EFSRPC Metadata with the +private RSA key +corresponding to EncryptionCertificate.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/5464320a-f822-4cf8-9fa2-a8bd11bcc4e1 b/msdn/.cache/windows_protocols/ms-efsr/5464320a-f822-4cf8-9fa2-a8bd11bcc4e1 new file mode 100644 index 00000000..a3c51e9b --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/5464320a-f822-4cf8-9fa2-a8bd11bcc4e1 @@ -0,0 +1,80 @@ +

 Each stream data segment MUST be formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
0x470x000x550x00
0x520x000x450x00
Reserved
Data Segment Encryption Header (variable)
...
Stream Data (variable)
...

Length (4 bytes): The length, in bytes, of +this segment. It MUST be a 32-bit unsigned integer in little-endian format. The +length MUST be measured from the start of this field to the end of the Stream +Data field.

Reserved (4 bytes): This field is set to zero +and is ignored by the server.

Data Segment Encryption Header (variable): This +header MUST be present only if the stream is encrypted (that +is, if the Flag field in the stream header is set to zero and this is +not the EFSRPC Metadata stream). It MUST be formatted as specified in section 2.2.3.3.

Stream Data (variable): This field MUST +contain part or all of the stream data. If the Data Segment Encryption +Header field is present, Stream Data MUST be consistent with it. Stream +Data MUST consist of contiguous bytes taken from the stream except for zero +bytes that are omitted in accordance with the Data Segment Encryption Header. +If the stream is encrypted, its data MUST be encrypted with the FEK, using the algorithm +indicated by the Algorithm field in the EFSRPC Metadata (specified +in section 2.2.2) in the Cipher Block Chaining (CBC) mode.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/5cb4e26d-5632-4048-8b2d-f661f8e8ee6b b/msdn/.cache/windows_protocols/ms-efsr/5cb4e26d-5632-4048-8b2d-f661f8e8ee6b new file mode 100644 index 00000000..f127c67d --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/5cb4e26d-5632-4048-8b2d-f661f8e8ee6b @@ -0,0 +1,18 @@ +

On receiving the EfsRpcGetEncryptedFileMetadata method call, +an EFSRPC server SHOULD ignore the input parameters and return a nonzero value. +The server MAY choose to act on this method in an implementation-specific +manner.<55>

+
+
 DWORD EfsRpcGetEncryptedFileMetadata(
+   [in] handle_t binding_h,
+   [in, string, ref] wchar_t* FileName,
+   [out, ref] EFS_RPC_BLOB** EfsStreamBlob
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier, as specified +in section 2.2.1.

EfsStreamBlob: The server SHOULD ignore this +parameter.<56>

Return Values: The server SHOULD return a +nonzero value.<57>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/625335e5-a423-4d1c-be51-c696c32aa2eb b/msdn/.cache/windows_protocols/ms-efsr/625335e5-a423-4d1c-be51-c696c32aa2eb new file mode 100644 index 00000000..da0baf1e --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/625335e5-a423-4d1c-be51-c696c32aa2eb @@ -0,0 +1,219 @@ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
Reserved1
EFS_Version
Reserved2
EFS_ID (16 bytes)
...
...
...
EFS_Hash (16 bytes)
...
...
...
Reserved3 (16 bytes)
...
...
...
DDF_Offset
DRF_Offset
Reserved4
...
...
Data_Fields (variable)
...

Length (4 bytes): This field MUST contain a 32-bit +unsigned integer equal to the length, in bytes, of the EFSRPC Metadata.<7>

Reserved1 (4 bytes): MUST be set to zero and +ignored upon receipt.

EFS_Version (4 bytes): This field represents +the highest EFS version +supported by the implementation that created this metadata. It MUST be a 32-bit +unsigned integer in little-endian format. It MUST be set to one of the +following values.

+
+ + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
Version_1 0x00000001The file encryption key (FEK) will be a DESX key, and encrypted with RSA only. The Flags field in all key list entries will be zero.
Version_2 0x00000002The FEK will use DESX, 3DES, or AES-256. The FEK will be encrypted with RSA only. The Flags field in all key list entries will be zero.
Version_3 0x00000003The FEK will use DESX, 3DES, or AES-256. The FEK will be encrypted with either RSA or AES-256.
+

A server that supports a given version number MUST also +support all lower numbered versions. A server SHOULD support all versions +listed.<8>

Reserved2 (4 bytes): MUST be set to zero and +ignored upon receipt.

EFS_ID (16 bytes): A 16-byte GUID value that MUST be +unique for the computer that created this metadata.

EFS_Hash (16 bytes): This field SHOULD be set +to zero and ignored by the server.<9>

Reserved3 (16 bytes): MUST be set to zero and +ignored upon receipt.

DDF_Offset (4 bytes):  This field MUST contain +the offset, in bytes, of the data +decryption field (DDF) key list from the start of the EFSRPC Metadata. It +MUST be a 32-bit unsigned integer in little-endian format. The DDF key list +lies completely within the Data Fields and does not overlap the data recovery field (DRF) +key list (if present).

DRF_Offset (4 bytes): This field MUST contain +the offset, in bytes, of the DRF key list from the start of the EFSRPC +Metadata. It MUST be a 32-bit unsigned integer in little-endian format. A zero +value in this field indicates that the DRF key list is absent and no DRAs have been applied to +the file. If present, +the DRF key list MUST lie completely within Data Fields and MUST NOT +overlap the DDF key list.

Reserved4 (12 bytes): MUST be set to zero and +ignored upon receipt.

Data_Fields (variable):  This field MUST +contain the following two items in any order at the locations indicated by the +respective Offset fields previously listed. Both items MUST conform to the key +list format specified in section 2.2.2.1.1. The DDF key +list MUST NOT overlap with the DRF key list (if present). There MUST NOT be any +unused areas within this field spanning more than 8 contiguous bytes. Any +unused areas within this field MUST be set to zero bytes and ignored by the +server.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

DDF_key_list (variable)
...
DRF_key_list (variable)
...
+
+
+

DDF_key_list (variable):  This +field MUST contain one or more entries. Each entry consists of the file's FEK, +encrypted with the public +key of a user authorized to access the file.

+
+
+

DRF_key_list (variable):  This +MUST contain one or more entries. Each entry consists of the file’s FEK, +encrypted with the public key of a DRA authorized to access the file. This MUST +only be present if the value in the DRF offset field is nonzero.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/6813bfa8-1538-4c5f-982a-ad58caff3c1c b/msdn/.cache/windows_protocols/ms-efsr/6813bfa8-1538-4c5f-982a-ad58caff3c1c new file mode 100644 index 00000000..a8e0b22e --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/6813bfa8-1538-4c5f-982a-ad58caff3c1c @@ -0,0 +1,107 @@ +

The EfsRpcFileKeyInfo method is used to query and modify +information about the keys +used to encrypt a given object.

+
+
 DWORD EfsRpcFileKeyInfo(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* FileName,
+   [in] DWORD InfoClass,
+   [out] EFS_RPC_BLOB** KeyInfo
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier, as specified +in section 2.2.1.

InfoClass: One of the values in the following +table. With the exception of UPDATE_KEY_USED (0x00000100), a server SHOULD +support all of these values. A server MAY choose to support UPDATE_KEY_USED.<46>

+
+ + + + + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
BASIC_KEY_INFO 0x00000001Request information about the keys used to encrypt the object's contents. On success, the server will return the information in an EFS_KEY_INFO (2.2.14)structure in the KeyInfo parameter.
CHECK_COMPATIBILITY_INFO 0x00000002Requests the EfsVersion for the encrypted file. On success, the server will return the information in an EFS_COMPATIBILITY_INFO structure in the KeyInfo parameter.
UPDATE_KEY_USED 0x00000100Update the user certificates used to give a specific user access to an object. The server will populate the KeyInfo parameter with a zero-terminated, wide character Unicode string that contains a newline-separated list of names of objects successfully updated.
CHECK_DECRYPTION_STATUS 0x00000200Request a hint from the server as to whether the given object could be successfully decrypted without further user intervention or higher-level events. The server will return this information in an EFS_DECRYPTION_STATUS_INFO structure in the KeyInfo parameter.
CHECK_ENCRYPTION_STATUS 0x00000400Request a hint from the server as to whether the given object could be successfully encrypted without further user intervention or higher-level events. The server will return this information in an EFS_ENCRYPTION_STATUS_INFO structure in the KeyInfo parameter.
+

KeyInfo: Returned by the server, as previously +specified.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

+
+

If no object exists on the server with the specified +name the server MUST return a nonzero value.

+
+
+

If the InfoClass parameter is not equal to +CHECK_ENCRYPTION_STATUS and the object with the specified name is not +encrypted, the server MUST return a nonzero value.

+
+
+

If the value in the InfoClass parameter is +unsupported by the server, the server MUST return a nonzero value.

+
+
+

If the value in the InfoClass parameter is +equal to BASIC_KEY_INFO, the server SHOULD read the EFSRPC Metadata of the +object referred to by the FileName argument and return information about its FEK in an EFS_KEY_INFO +structure within the KeyInfo argument.

+
+
+

If the value in the InfoClass parameter is +equal to UPDATE_KEY_USED, the implementation supports this value, and the FileName +parameter does not satisfy the implementation-specific requirements for this +operation<47>, the server MUST return a +nonzero value.

+
+
+

If the value in the InfoClass parameter is +equal to UPDATE_KEY_USED, the implementation supports this value, and the FileName +parameter does satisfy all implementation-specific requirements, the server +MUST update the EFSRPC Metadata of all the data objects referred by FileName +in an implementation-specific way<48>, and +return a newline-separated list of EFSRPC Identifiers thus updated in the KeyInfo +parameter.

+
+
+

If the value in the InfoClass parameter is +equal to CHECK_ENCRYPTION_STATUS, the server MUST return an +EFS_ENCRYPTION_STATUS_INFO structure in the KeyInfo parameter, which +provides a hint to the client what error code would be returned if encryption +was attempted on this object without any further user interaction or +higher-level events.

+
+
+

If the value in the InfoClass parameter is +equal to CHECK_DECRYPTION_STATUS, the server SHOULD return +ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION ([MS-ERREF] +section 2.2). +The server MAY, instead, return an EFS_DECRYPTION_STATUS_INFO structure in the KeyInfo +parameter, which provides a hint to the client what error code would be +returned if decryption were attempted on this object without any further user +interaction or higher-level events.

+
+
+

If the value of the InfoClass parameter is equal to +CHECK_COMPATIBILITY_INFO, the server MUST return an EFS_COMPATIBILITY_INFO +structure in the KeyInfo parameter, which provides the EFSVersion of the EFSRPC +metadata associated with the file.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/82543317-ac9c-4340-b6a6-8cd5e6ad8215 b/msdn/.cache/windows_protocols/ms-efsr/82543317-ac9c-4340-b6a6-8cd5e6ad8215 new file mode 100644 index 00000000..75826f59 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/82543317-ac9c-4340-b6a6-8cd5e6ad8215 @@ -0,0 +1,6 @@ +

The Encrypting File System Remote (EFSRPC) Protocol is used +for performing maintenance and management operations on encrypted data that is +stored remotely and accessed over a network. It is used in Windows to manage files that reside on remote +file servers and are encrypted using the Encrypting File System (EFS).

Sections 1.5, 1.8, 1.9, 2, and 3 of this specification are +normative. All other sections and examples in this specification are +informative.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/8593a473-b726-4a19-9291-b8669b535304 b/msdn/.cache/windows_protocols/ms-efsr/8593a473-b726-4a19-9291-b8669b535304 new file mode 100644 index 00000000..222c1f31 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/8593a473-b726-4a19-9291-b8669b535304 @@ -0,0 +1,107 @@ +

 

Each individual Protector List Entry MUST be formatted as +follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

EFSX_Datum
...
ProtectorTypeProtectorFlags
Data_Fields (variable)
...

EFSX_Datum (8 bytes): MUST be formatted as +specified in section 2.2.2.2.2. +The datum Type MUST be EFSX_TYPE_KEY_PROTECTOR (0x0003) and SHOULD have +a Role of EFSX_ROLE_IGNORE (0x0000). The datum Flags SHOULD +include 0x0002 indicating a complex datum.

ProtectorType (2 bytes): The type of the +protector. It MUST be a 16-bit unsigned integer in little-endian format. +Possible values are specified below.

+
+ + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x0001The protector was derived from a public/private key pair using a key agreement. The Data Fields SHOULD include an EFSX_Datum of Type EFSX_TYPE_KEY_AGMT_DATA (0x0005) and Role 0x0002.
0x0002The protector was derived from a public/private key pair capable of performing asymmetric encryption. The Data Fields SHOULD include an EFSX_Datum of Type EFSX_TYPE_BLOB (0x0001) and Role 0x0002.
0x0003The protector was derived using a DPAPI-NG encryption provider on the endpoint. The Data Fields SHOULD include an EFSX_Datum of Type EFSX_TYPE_DPAPI_NG_DATA (0x0007) and Role 0x0002.
+

ProtectorFlags (2 bytes): The flags for the +protector. It MUST be a 16-bit unsigned integer in little-endian format. The +value MUST be 0x0000 or a union of one or more of the following values.

+
+ + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x0001The protector is a legacy protector, and stores the Encrypted FEK as specified in section 2.2.2.1.5.
0x0002If this is a legacy protector (flag 0x0001 is also set), the Encrypted FEK is encrypted using AES 256, with a key that is obtained by signing the non-terminated Unicode string "MICROSOFTE" (20 bytes long) with the user's RSA and computing the SHA-256 hash of the result.
0x0004If this bit is set, bit 0x0001 MUST also be set to indicate a legacy protector. This bit indicates that the legacy protector stores the File Master Key (FMK) encrypted in the Encrypted FEK structure instead of the File Encryption Key (FEK).
+

Data_Fields (variable): This field contains +any number of nested EFSX_Datum structures. The nested datum structures MUST +NOT overlap and MUST be entirely contained within the protector list entry. +This field SHOULD contain a datum with a Role of 0x0002 (protector data) +and a datum with a Type of EFSX_TYPE_PROTECTOR_INFO (0x0004).

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/8bef7919-5a88-44a8-9d03-72c58a14f63f b/msdn/.cache/windows_protocols/ms-efsr/8bef7919-5a88-44a8-9d03-72c58a14f63f new file mode 100644 index 00000000..b821402b --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/8bef7919-5a88-44a8-9d03-72c58a14f63f @@ -0,0 +1,59 @@ +

The DDF and DRF Protector List structure in the Version 4 +EFSRPC Metadata MUST be formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

StructureSize
ProtectorsCountProtector_List_Entries (variable)
...
...

StructureSize (4 bytes): The size in bytes of +the protector list. It MUST be a 32-bit unsigned integer in little-endian +format.

ProtectorsCount (2 bytes):  This represents +the number of protectors in the protector list. It MUST be a 16-bit unsigned +integer in little-endian format.

Protector_List_Entries (variable): A number of +entries equal to the value in the ProtectorsCount field. The individual entries +MUST be formatted as specified in section 2.2.2.2.5.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/9d10b7b1-cc92-404e-a589-640193cc0681 b/msdn/.cache/windows_protocols/ms-efsr/9d10b7b1-cc92-404e-a589-640193cc0681 new file mode 100644 index 00000000..138378c1 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/9d10b7b1-cc92-404e-a589-640193cc0681 @@ -0,0 +1,18 @@ +

The EFS_DECRYPTION_STATUS_INFO type is used to represent the +predicted outcome if an attempt were made to read the plaintext of an encrypted +object.

+
+
 typedef struct {
+   DWORD dwDecryptionError;
+   DWORD dwHashOffset;
+   DWORD cbHash;
+ } EFS_DECRYPTION_STATUS_INFO;
+
+

dwDecryptionError: The error code +returned if decryption were attempted. If the operation were to succeed, this +value MUST be zero. Otherwise it MUST be set to a nonzero value.

dwHashOffset: The offset of the +appended certificate +hash in bytes from the start of this structure.

cbHash: The length in bytes of the +appended certificate hash.

If dwDecryptionError is nonzero, the preceding fields are +followed by the hash of a certificate whose corresponding private key is required for +the decryption to succeed.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/a38459f2-40e9-418d-866c-d33789886a91 b/msdn/.cache/windows_protocols/ms-efsr/a38459f2-40e9-418d-866c-d33789886a91 new file mode 100644 index 00000000..e7bf311b --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/a38459f2-40e9-418d-866c-d33789886a91 @@ -0,0 +1,117 @@ +

 The Data Segment Encryption Header MUST be formatted as +follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Starting File Offset
...
Length
Bytes Within Stream Size
Bytes Within VDL
0x0000Data Unit ShiftChunk Shift
Cluster Shift0x01Number of Data Blocks
Data Block Sizes (variable)
...
Extended Header (16 bytes, optional)
...
...
...

Starting File Offset (8 bytes): This field +MUST contain an unsigned 64-bit integer in little-endian format denoting the +offset, in bytes, into the stream being serialized of the first data byte +contained in this data segment.

Length (4 bytes): The length of this header, +in bytes, measured from the beginning of the Starting File Offset field +to the end of the Data Segment Encryption Header. It MUST be a 32-bit +unsigned integer in little-endian format. Any unused bytes within this +structure MUST be set to zero and ignored by the server.

Bytes Within Stream Size (4 bytes): The number +of bytes contained within this stream data segment that fall within the stream +size. It MUST be a 32-bit unsigned integer in little-endian format. This can be +less than the number of bytes actually present due to padding required by the +encryption algorithm.

Bytes Within VDL (4 bytes): The number of +bytes contained within this stream data segment that fall within the valid data length (VDL). It +MUST be a 32-bit unsigned integer in little-endian format. This can be less +than the number of bytes actually present due to padding required by the +encryption algorithm. Bytes beyond the VDL MUST be set to zero after +decryption.

Data Unit Shift (1 byte): The base-2 logarithm +of the data unit size. It MUST be an 8-bit unsigned integer. For files that are +not sparse files, the +data unit size MUST be set to the size of the data in this segment. For sparse +files, it MUST be equal to the size of a compression unit, which is the +smallest unit that all holes MUST be a multiple of.

Chunk Shift (1 byte): The base-2 logarithm of +the chunk size. It MUST be an 8-bit unsigned integer. The chunk size MUST be +equal to the data unit size.

Cluster Shift (1 byte): The base-2 logarithm +of the cluster size in bytes. It MUST be an 8-bit unsigned integer. It MUST be +equal to the smallest unit of allocation in the underlying file system.

Number of Data Blocks (2 bytes): This field +MUST contain the number of data blocks specified in this segment. It MUST be a +16-bit unsigned integer in little-endian format. It MUST be equal to the number +of entries in the Data Block Sizes field specified next.

Data Block Sizes (variable): This field MUST +consist of a sequence of unsigned 32-bit values in little-endian format, +denoting the sizes of the successive data blocks in the Stream Data +field that follows this header. Each value in the sequence MUST be less than or +equal to the data unit size, unless it spans the VDL or a hole in the case of a +sparse file.

Extended Header (16 bytes): This field is +optional, and its presence is indicated by the four-byte signature located at +the start of this field. If this field is present, the server SHOULD interpret +it as defined in section 2.2.3.4. +The server MAY ignore this field.<20>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/a3a6d95f-ebd5-4a08-9d19-6b6c1b7d41f6 b/msdn/.cache/windows_protocols/ms-efsr/a3a6d95f-ebd5-4a08-9d19-6b6c1b7d41f6 new file mode 100644 index 00000000..26755d25 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/a3a6d95f-ebd5-4a08-9d19-6b6c1b7d41f6 @@ -0,0 +1,21 @@ +

The method EfsRpcReadFileRaw is used by a client to obtain +marshaled data for an encrypted object from the server.

+
+
 long EfsRpcReadFileRaw(
+   [in] PEXIMPORT_CONTEXT_HANDLE hContext,
+   [out] EFS_EXIM_PIPE* EfsOutPipe
+ );
+
+

hContext: A context handle returned by the EfsRpcOpenFileRaw method, +which MUST have been called without the CREATE_FOR_IMPORT flag.

EfsOutPipe: A pipe structure. The push +procedure of this pipe will be called with the marshaled data. The structure of +this marshaled data is specified in section 2.2.3.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client.

If called with a context handle that has not been obtained +by calling the EfsRpcOpenFileRaw method without the CREATE_FOR_IMPORT flag set, +the server SHOULD throw an RPC exception.

The server MUST read data from the object and write it to +the pipe in EFSRPC Raw Data Format until all the data in the object has been +written. When all the data in the object has been written, the server MUST +flush the pipe by performing a 0-byte write to the pipe, and return 0 to the +user to indicate success.

If an error is encountered during the read, the server MUST +flush the pipe and SHOULD throw an RPC exception. The pipe MUST be flushed by +performing a 0-byte write to the pipe.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/a7e37233-b684-4c3f-905b-81c2e04482f1 b/msdn/.cache/windows_protocols/ms-efsr/a7e37233-b684-4c3f-905b-81c2e04482f1 new file mode 100644 index 00000000..e71e2040 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/a7e37233-b684-4c3f-905b-81c2e04482f1 @@ -0,0 +1,16 @@ +

The EfsRpcFlushEfsCache method causes EFS to flush the logical +cache that holds all the sensitive information required to perform EFSRPC +operations for the calling user.

+
+
 DWORD EfsRpcFlushEfsCache(
+   [in] handle_t binding_h
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

The server MUST completely discard the logical cache being +maintained on behalf of the calling user. The logical cache is as specified in +section 3.1.1.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/afd56d24-3732-4477-b5cf-44cc33848d85 b/msdn/.cache/windows_protocols/ms-efsr/afd56d24-3732-4477-b5cf-44cc33848d85 new file mode 100644 index 00000000..ae3cb66b --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/afd56d24-3732-4477-b5cf-44cc33848d85 @@ -0,0 +1,24 @@ +

The EfsRpcAddUsersToFile method is used to grant the +possessors of the private +keys corresponding to certain X.509 certificates the ability to +decrypt the object.

+
+
 DWORD EfsRpcAddUsersToFile(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* FileName,
+   [in] ENCRYPTION_CERTIFICATE_LIST* EncryptionCertificates
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC nonzero name, as specified +in section 2.2.1.

EncryptionCertificates: A list of +certificates, represented by an ENCRYPTION_CERTIFICATE_LIST +structure, which are to be given access to the object.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

If no object exists on the server with the specified name, +or if the object exists and is not encrypted, the server MUST return a nonzero +value. Otherwise, the server MUST modify the object's EFSRPC Metadata such that +all the user certificates listed in the Users structure have the ability to +decrypt the object.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/b39ec3e2-d3f0-4934-925e-74032365f9d2 b/msdn/.cache/windows_protocols/ms-efsr/b39ec3e2-d3f0-4934-925e-74032365f9d2 new file mode 100644 index 00000000..22001770 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/b39ec3e2-d3f0-4934-925e-74032365f9d2 @@ -0,0 +1,127 @@ +

The EfsRpcDuplicateEncryptionInfoFile method is used to +duplicate the EFSRPC +Metadata of one encrypted object and attach it to another encrypted object. +This is typically done when copying objects to maintain the same set of keys and users for the copy +as for the original.

+
+
 DWORD EfsRpcDuplicateEncryptionInfoFile(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* SrcFileName,
+   [in, string] wchar_t* DestFileName,
+   [in] DWORD dwCreationDisposition,
+   [in] DWORD dwAttributes,
+   [in, unique] EFS_RPC_BLOB* RelativeSD,
+   [in] BOOL bInheritHandle
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

SrcFileName:  An EFSRPC identifier, as +specified in section 2.2.1.

DestFileName: An EFSRPC identifier, as +specified in section 2.2.1.

dwCreationDisposition: This parameter +specifies what action the server is advised to take if the object referred to +by DestFileName does not already exist. It MUST be one of the following +values.

+
+ + + + + + + + + + + +
+

Value

+
+

Meaning

+
CREATE_NEW 0x00000001Do not overwrite the data object referred to by DestFileName if it already exists.
CREATE_ALWAYS 0x00000002Overwrite the data object referred to by DestFileName if it already exists.
+

dwAttributes: Desired attributes for the +target object. Clients SHOULD set this parameter to the bitwise OR of zero or +more of the following values. Servers SHOULD support all of these values. These +values can be interpreted by the underlying server data store, and they do not +affect protocol behavior.

+
+ + + + + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
FILE_ATTRIBUTE_HIDDEN 0x00000002The file is hidden (not displayed in normal folder listings).
FILE_ATTRIBUTE_ARCHIVE 0x00000020This attribute is used by applications to mark files for backup or removal.
FILE_ATTRIBUTE_TEMPORARY 0x00000100The file is being used for temporary storage.
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000The file's contents are not to be indexed by the content indexing service.
FILE_ATTRIBUTE_NORMAL 0x00000080No other attributes are to be set.
+

RelativeSD: Relative security descriptor for +the target object. The format of this is implementation-dependent.<49>

bInheritHandle: This parameter SHOULD be set +to FALSE by the client and SHOULD be ignored by the server.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.<50>

+
+

If no object exists on the server with the name +specified in the SrcFileName parameter, or if it exists and is not +encrypted, the server MUST return a nonzero value.

+
+
+

If an encrypted object exists with the name +specified in the SrcFileName and dwCreationDisposition parameters +is equal to CREATE_NEW, then:

+

In duplicating the EFSRPC Metadata from the SrcFileName +parameter to the DestFileName parameter, the server MAY<51> change the metadata. However, +upon successful completion, the set of users and DRAs with access to the DestFileName +parameter MUST be the same set of users who had access to the SrcFileName +parameter at the outset.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/b4fa10e8-31bb-4dd4-87af-1c4a3dedf417 b/msdn/.cache/windows_protocols/ms-efsr/b4fa10e8-31bb-4dd4-87af-1c4a3dedf417 new file mode 100644 index 00000000..64a18582 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/b4fa10e8-31bb-4dd4-87af-1c4a3dedf417 @@ -0,0 +1,17 @@ +

The method EfsRpcWriteFileRaw is used to create an encrypted +object on the server from the marshaled data provided by the client.

+
+
 long EfsRpcWriteFileRaw(
+   [in] PEXIMPORT_CONTEXT_HANDLE hContext,
+   [in] EFS_EXIM_PIPE* EfsInPipe
+ );
+
+

hContext: A context handle returned by the EfsRpcOpenFileRaw method, +which MUST have been called with the CREATE_FOR_IMPORT flag.

EfsInPipe: A pipe structure. The pull +procedure of this pipe is expected to provide the marshaled data. The structure +of this marshaled data is specified in section 2.2.3.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client.

If called with a context handle that has not been obtained +by calling EfsRpcOpenFileRaw with the CREATE_FOR_IMPORT flag set, the server +MUST abort the operation. In this case, it SHOULD throw an RPC exception.

The server MUST read data from the pipe and write it to the +object indicated by the context handle. If an error is encountered during the +write, the server SHOULD throw an RPC exception.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/b5a69be6-4759-4dfb-9e66-b37dfcd8529e b/msdn/.cache/windows_protocols/ms-efsr/b5a69be6-4759-4dfb-9e66-b37dfcd8529e new file mode 100644 index 00000000..b24a217f --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/b5a69be6-4759-4dfb-9e66-b37dfcd8529e @@ -0,0 +1,90 @@ +

 

The Blob Datum encapsulates an opaque binary object. It MUST +be formatted as below.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

EFSX_Datum
...
BlobTypeBlobFlags
Blob_Data (variable)
...

EFSX_Datum (8 bytes): MUST be formatted as +specified in section 2.2.2.2.2. +The datum Type MUST be EFSX_TYPE_BLOB (0x0001). The datum Flags MUST NOT +include 0x0002.

BlobType (2 bytes): The type of the blob, +which provides a hint to the format of the Blob Data. It MUST be a +16-bit unsigned integer in little-endian format.

+
+ + + + + + + + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x0000The blob has no special formatting.
0x0001The blob contains a public key formatted as a BCRYPT_PUBLIC_KEY_BLOB.
0x0002The blob contains a SHA-1 hash of a DER-encoded form of a certificate.
0x0003The blob contains the encrypted form of an Encrypted FEK structure, as defined in section 2.2.2.1.5. The contents of the key can be either the FEK or the FMK (see section 2.2.2.2.5).
0x0004The blob contains key material wrapped with an AES-256 key wrapping key, as defined by [RFC3394].
0x0005The blob contains key material encrypted by a DPAPI-NG provider on the endpoint. This BlobType MUST only be used when EFS_VERSION is 5.<17>
+

BlobFlags (2 bytes): Reserved, MUST be 0x0000.

Blob_Data (variable): Contains opaque, +variable-length data. The Blob Data MUST be entirely contained within +the Blob Datum.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/bc8eef94-813a-4ff0-ad75-4614e992b2ca b/msdn/.cache/windows_protocols/ms-efsr/bc8eef94-813a-4ff0-ad75-4614e992b2ca new file mode 100644 index 00000000..3064240a --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/bc8eef94-813a-4ff0-ad75-4614e992b2ca @@ -0,0 +1,14 @@ +

The EFS_ENCRYPTION_STATUS_INFO structure is used to +represent the predicted outcome if an attempt were made to convert an +unencrypted object to an encrypted state.

+
+
 typedef struct {
+   BOOL bHasCurrentKey;
+   DWORD dwEncryptionError;
+ } EFS_ENCRYPTION_STATUS_INFO;
+
+

bHasCurrentKey: A Boolean value +signifying whether an appropriate key was found that could be +used for encryption.

dwEncryptionError: The error code +returned if encryption were attempted. If the operation were to succeed, this +value MUST be zero. Otherwise, it MUST be set to a nonzero value.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/c5da8aa7-fe38-4940-8d40-2cebbd887cba b/msdn/.cache/windows_protocols/ms-efsr/c5da8aa7-fe38-4940-8d40-2cebbd887cba new file mode 100644 index 00000000..b9b2e7dd --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/c5da8aa7-fe38-4940-8d40-2cebbd887cba @@ -0,0 +1,11 @@ +

The EfsRpcCloseRaw method is called to release any resources +allocated by the EfsRpcOpenFileRaw +method, or by subsequent calls to the EfsRpcReadFileRaw or EfsRpcWriteFileRaw +methods.

+
+
 void EfsRpcCloseRaw(
+   [in, out] PEXIMPORT_CONTEXT_HANDLE* hContext
+ );
+
+

Return Values: This method has no return +values.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/ccc4fb75-1c86-41d7-bbc4-b278ec13bfb8 b/msdn/.cache/windows_protocols/ms-efsr/ccc4fb75-1c86-41d7-bbc4-b278ec13bfb8 new file mode 100644 index 00000000..bba57eff --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/ccc4fb75-1c86-41d7-bbc4-b278ec13bfb8 @@ -0,0 +1,92 @@ +

 

The EfsRpcOpenFileRaw method is used to open an encrypted +object on the server for backup or restore. It allocates resources that MUST be +released by calling the EfsRpcCloseRaw +method.<42>

+
+
 long EfsRpcOpenFileRaw(
+   [in] handle_t binding_h,
+   [out] PEXIMPORT_CONTEXT_HANDLE* hContext,
+   [in, string] wchar_t* FileName,
+   [in] long Flags
+ );
+
+

binding_h: An explicit binding handle created by +the client. This is an RPC binding handle parameter, as specified in [C706] and [MS-RPCE] +section 2.

hContext: An implementation-specific context +handle that is used in subsequent calls by the client to the EfsRpcReadFileRaw method, EfsRpcWriteFileRaw method, +or EfsRpcCloseRaw method.

FileName: An EFSRPC identifier, as specified +in section 2.2.1.

Flags: This MUST be set to some combination of +the following values. All servers and clients MUST support the CREATE_FOR_IMPORT +flag. Servers that implement a hierarchical encrypted store, such as the NTFS +file system, SHOULD also support the CREATE_FOR_DIR flag. Servers SHOULD +support the OVERWRITE_HIDDEN flag, and MAY interpret it in +implementation-specific ways. A client MUST ensure that all the flags it does +not support are set to zero. A server MUST ignore all flags it does not +support. Flag values are specified in the following table.

+
+ + + + + + + + + + + + + + + + + +
+

Value

+
+

Meaning

+
CREATE_FOR_IMPORT 0x00000001Open the object for writing (that is, restore). If this flag is not set, open the object for reading (that is, backup).
CREATE_FOR_DIR 0x00000002This flag is only intended for use in conjunction with the CREATE_FOR_IMPORT flag. It indicates that the object being restored is a container for other objects.<43>
OVERWRITE_HIDDEN 0x00000004This flag is only intended for use in conjunction with the CREATE_FOR_IMPORT flag. This flag indicates a request from the client for the server to overwrite an existing object even if the existing object is "hidden". The meaning of "hidden" is specific to the implementation of the data store, and this meaning does not affect protocol behavior.
EFS_DROP_ALTERNATE_STREAMS 0x00000010This flag indicates that content from any alternate data streams, if present and implemented by the storage system, will be ignored.
+

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

First, the server SHOULD perform any additional access +checks prescribed by the implementation. If any of these checks fail, it MUST +return a nonzero value.

EFSRPC servers SHOULD return an error unless at least one of +the following conditions is true:

If the CREATE_FOR_IMPORT flag is set, the server MUST +attempt to create an object with the given name and prepare it for writing data +received in future EfsRpcWriteFileRaw calls. The server MUST return a nonzero +value if this fails.

If the CREATE_FOR_IMPORT flag is not set, the server +MUST attempt to locate the object requested and prepare it for reading data to +be sent through future EfsRpcReadFileRaw calls. The server MUST return a +nonzero value if it fails.

If the server supports the CREATE_FOR_DIR flag, and +this flag is set:

If the server supports the OVERWRITE_HIDDEN flag, and +this flag is set:

The server MUST ignore any flags that it does not support.

On success, the server MUST create an appropriate context +handle and return it to the client.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/cf759c00-1b90-4c33-9ace-f51c20149cea b/msdn/.cache/windows_protocols/ms-efsr/cf759c00-1b90-4c33-9ace-f51c20149cea new file mode 100644 index 00000000..9a7d9c9c --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/cf759c00-1b90-4c33-9ace-f51c20149cea @@ -0,0 +1,31 @@ +

The EfsRpcQueryRecoveryAgents method is used to query the EFSRPC Metadata of an +encrypted object for the X.509 +certificates of the data +recovery agents whose private keys +can be used to decrypt the object.

+
+
 DWORD EfsRpcQueryRecoveryAgents(
+   [in] handle_t binding_h,
+   [in, string] wchar_t* FileName,
+   [out] ENCRYPTION_CERTIFICATE_HASH_LIST** RecoveryAgents
+ );
+
+

binding_h: This is an RPC  binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

FileName: An EFSRPC identifier as specified in +section 2.2.1.

RecoveryAgents: A list of certificate hashes, +represented by an ENCRYPTION_CERTIFICATE_HASH_LIST +structure.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

+
+

If no object exists on the server with the specified +name, or if the object exists and is not encrypted, the server MUST return a +nonzero value. Otherwise, the server MUST read the object's EFSRPC Metadata and +return a list of the hashes of all the DRA certificates that have +access to the object in the RecoveryAgents parameter. The server MUST +NOT include any certificates that were not added by virtue of being defined as +DRAs in administrative policy. If no DRAs are defined on the object, the call +MUST return success and this list MUST be empty.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/d0da10ab-3139-4d67-a66c-ea6eb497118d b/msdn/.cache/windows_protocols/ms-efsr/d0da10ab-3139-4d67-a66c-ea6eb497118d new file mode 100644 index 00000000..42a3f845 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/d0da10ab-3139-4d67-a66c-ea6eb497118d @@ -0,0 +1,23 @@ +

On receiving the EfsRpcFileKeyInfoEx method call, an EFSRPC +server SHOULD ignore the input parameters and return a nonzero value. The +server MAY act on this method in an implementation-specific manner.<52>

+
+
 DWORD EfsRpcFileKeyInfoEx(
+   [in] handle_t binding_h,
+   [in] DWORD dwFileKeyInfoFlags,
+   [in, unique] EFS_RPC_BLOB* Reserved,
+   [in, string] wchar_t* FileName,
+   [in] DWORD InfoClass,
+   [out] EFS_RPC_BLOB** KeyInfo
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

dwFileKeyInfoFlags: This parameter is +reserved. It MUST be set to zero by the client and ignored by the server.

Reserved: This parameter is reserved. It MUST +be set to NULL by the client and ignored by the server.

FileName: An EFSRPC identifier, as specified +in section 2.2.1.

InfoClass: One of the values specified for the +InfoClass parameter of the EfsRpcFileKeyInfo method.

KeyInfo: The server SHOULD ignore this +parameter.<53>

Return Values: The server SHOULD return a +nonzero value.<54>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/d36df703-edc9-4482-87b7-d05c7783d65e b/msdn/.cache/windows_protocols/ms-efsr/d36df703-edc9-4482-87b7-d05c7783d65e new file mode 100644 index 00000000..1a40a0db --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/d36df703-edc9-4482-87b7-d05c7783d65e @@ -0,0 +1,75 @@ +

The EfsRpcAddUsersToFileEx method is used to grant the +possessors of the private +keys corresponding to certain X.509 certificates the ability to +decrypt the object.

+
+
 DWORD EfsRpcAddUsersToFileEx(
+   [in] handle_t binding_h,
+   [in] DWORD dwFlags,
+   [in, unique] EFS_RPC_BLOB* Reserved,
+   [in, string] wchar_t* FileName,
+   [in] ENCRYPTION_CERTIFICATE_LIST* EncryptionCertificates
+ );
+
+

binding_h: This is an RPC binding handle parameter, +as specified in [C706] +and [MS-RPCE] +section 2.

dwFlags: This MUST be set to a bitwise OR of 0 +or more of the following flags. The descriptions of the flags are specified in +the following table. If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is used, then +the EncryptionCertificates parameter MUST contain exactly one +certificate.

+
+ + + + + + + + + + + +
+

Name

+
+

Value

+
EFSRPC_ADDUSERFLAG_ADD_POLICY_KEYTYPE0x00000002
EFSRPC_ADDUSERFLAG_REPLACE_DDF0x00000004
+

Reserved: This parameter is not used. It MUST +be set to NULL by the client and ignored by the server.

FileName: An EFSRPC identifier, as specified +in section 2.2.1.

EncryptionCertificates: A list of +certificates, represented by an ENCRYPTION_CERTIFICATE_LIST +structure, which are to be given access to the object.

Return Values: The server MUST return 0 if it +successfully processes the message received from the client. The server MUST +return a nonzero value if processing fails.

+
+

If no object exists on the server with the specified +name, or if it exists and is not encrypted, the server MUST return a nonzero +value.

+
+
+

If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in +the dwFlags parameter, and the EncryptionCertificates parameter +contains more than one certificate, the server MUST return a nonzero value.

+
+
+

If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in +the dwFlags parameter, and the calling user does not have the ability to +decrypt the object, the server MUST return a nonzero value.

+
+
+

If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in +the dwFlags parameter, and the user certificate in the EncryptionCertificates +parameter already has access to the object, then the server MUST return a zero +value.

+

If the EFSRPC_ADDUSERFLAG_ADD_POLICY_KEYTYPE flag is +specified in the dwFlags parameter, then for each certificate specified +in the EncryptionCertificates parameter, the server MUST check whether +the private key for the +certificate is stored on a smart card. If the key is stored, the server MUST +return a nonzero value; otherwise, the server MUST ignore this flag.

If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in the dwFlags +parameter, and the calling user has the ability to decrypt the object, then the +certificate in the EncryptionCertificates parameter is to be given +access to the object, replacing one of the calling user's user certificates +through which he currently has access.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/db88e723-1ff7-4351-a518-e1c60ee391a7 b/msdn/.cache/windows_protocols/ms-efsr/db88e723-1ff7-4351-a518-e1c60ee391a7 new file mode 100644 index 00000000..9b57b28e --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/db88e723-1ff7-4351-a518-e1c60ee391a7 @@ -0,0 +1,148 @@ +

 The Public Key Information structure MUST be formatted as +follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
Offset to Owner Hint
0x030x000x000x00
Length of Certificate Data
Offset to Certificate Data
Reserved
...
Data Fields (variable)
...

Length (4 bytes): This MUST be set to the +length, in bytes, of this structure. It MUST be a 32-bit unsigned integer in +little-endian format.

Offset to Owner Hint (4 bytes): If the Owner +Hint field is present, this field MUST be set to the offset of the Owner +Hint from the beginning of this structure, measured in bytes. If this field +is zero, then the Owner Hint field MUST NOT be present. This field MUST +be a 32-bit unsigned integer in little-endian format.

Length of Certificate Data (4 bytes): The +size, in bytes, of the Certificate Data field. It MUST be a 32-bit +unsigned integer in little-endian format.

Offset to Certificate Data (4 bytes): The +offset, in bytes, of the Certificate Data field from the start of this +structure. It MUST be a 32-bit unsigned integer in little-endian format.

Reserved (8 bytes): MUST be set to zero and +ignored upon receipt.

Data Fields (variable): This field MUST +contain the following items, in any order, and at the locations indicated by +the respective Offset fields above. These items MUST be completely +contained inside this field and MUST NOT overlap each other. There MUST NOT be +any unused areas within this field that span more than eight contiguous bytes.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Owner Hint (variable)
...
Certificate Data (variable)
...
+
+
+

Owner Hint (variable):  A +security identifier (SID) +in RPC marshaling format that is intended to be used as a hint regarding the +identity of the key +owner. This item MUST be present only if the Offset to Owner Hint field +is nonzero. The structure of an RPC SID is specified in [MS-DTYP] +section 2.4.2.3.

+
+
+

Certificate Data +(variable): This field MUST contain information about the X.509 certificate associated with +the public key that is +used to encrypt the FEK +data in this key list entry. It MUST be formatted as specified in section 2.2.2.1.4.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/e67520ea-0cb6-4349-bbe5-427a644d9492 b/msdn/.cache/windows_protocols/ms-efsr/e67520ea-0cb6-4349-bbe5-427a644d9492 new file mode 100644 index 00000000..8da78c52 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/e67520ea-0cb6-4349-bbe5-427a644d9492 @@ -0,0 +1,95 @@ +

The EFSRPC raw data format is used by the EFSRPC raw +methods. The output of the EfsRpcReadFileRaw +method MUST conform to this format. The input to the EfsRpcWriteFileRaw method +MUST conform to the EFSRPC Raw Data Format. The details of this format are +implementation dependent. An EFSRPC client SHOULD NOT parse this format and +SHOULD NOT rely on it having any particular structure. An EFSRPC server MUST +validate input data passed to it by the EfsRpcWriteFileRaw method, and SHOULD +abort the EfsRpcWriteFileRaw operation with an RPC exception if this data is in +an unsupported format.

The EFSRPC Raw Data Format SHOULD be formatted as follows.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

0x000x010x000x00
0x520x000x4f0x00
0x420x000x530x00
Reserved
...
EFSRPC Metadata Stream (variable)
...
Additional Stream 1 (variable)
...
Additional Stream n (variable)
...

Reserved (8 bytes): MUST be set to zero and +ignored.

EFSRPC Metadata Stream (variable): This field +MUST be formatted as specified in section 2.2.3.1. This field MUST +contain the EFSRPC Metadata +for the file, along with +a header. The structure of the EFSRPC Metadata is specified in section 2.2.2.

Additional Stream 1 ... n: These MUST +correspond to marshaled versions of all the streams (except for EFSRPC Metadata) in the +given file. They are optional and might not exist (for example, for folders with no alternate +streams). For more information on NTFS file streams, see [MSFT-NTFS]. These +fields MUST be formatted as specified in section 2.2.3.1.

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/ecaf8957-7c32-4039-9392-0f8db7eb2623 b/msdn/.cache/windows_protocols/ms-efsr/ecaf8957-7c32-4039-9392-0f8db7eb2623 new file mode 100644 index 00000000..e302a215 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/ecaf8957-7c32-4039-9392-0f8db7eb2623 @@ -0,0 +1,35 @@ +

The EFS_CERTIFICATE_BLOB type is used to represent the +encoded contents of an X.509 +certificate.

+
+
 typedef struct _CERTIFICATE_BLOB {
+   DWORD dwCertEncodingType;
+   [range(0,32768)] DWORD cbData;
+   [size_is(cbData)] unsigned char* bData;
+ } EFS_CERTIFICATE_BLOB;
+
+

dwCertEncodingType: The certificate +encoding type. This MUST be set to one of the following values. If set to any +other value, the certificate is considered invalid and behavior is undefined.

+
+ + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x00000001Certificate uses X.509 ASN.1 encoding.
0x00000002Certificate uses X.509 NDR encoding.
+

cbData: The number of bytes in the +bData buffer.

bData: An encoded X.509 certificate. +Its format is specified by the dwCertEncodingType member. For more +information on ASN encoding, see [X690]. NDR encoding +is specified in [C706].<21>

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/f8c3837c-8617-4346-b188-989933705a40 b/msdn/.cache/windows_protocols/ms-efsr/f8c3837c-8617-4346-b188-989933705a40 new file mode 100644 index 00000000..5fe2b8f0 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/f8c3837c-8617-4346-b188-989933705a40 @@ -0,0 +1,159 @@ +

Each individual Key List Entry MUST be formatted as follows. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Length
Offset to Public Key Information
Encrypted FEK Length
Offset to Encrypted FEK
Flags
Data Fields (variable)
...

Length (4 bytes): MUST be equal to the length +of this key list entry in bytes. It MUST be a 32-bit unsigned integer in +little-endian format.

Offset to Public Key Information (4 bytes): MUST +contain the offset to the Public Key Information field in bytes from the +start of this entry. It MUST be a 32-bit unsigned integer in little-endian +format. The Public Key Information field MUST be completely contained +inside the Data Fields.

Encrypted FEK Length (4 bytes): MUST be set to +the length of the data in the Encrypted FEK field, in bytes. It MUST be +a 32-bit unsigned integer in little-endian format.

Offset to Encrypted FEK (4 bytes): MUST +contain the offset to the Encrypted FEK field, in bytes from the start +of this entry. It MUST be a 32-bit unsigned integer in little-endian format. +The Encrypted FEK MUST be completely contained inside the Data +fields.

Flags (4 bytes): This field MUST indicate the +algorithm used to encrypt the FEK +in this key list entry. It MUST be a 32-bit unsigned integer in little-endian +format. EFSRPC servers SHOULD support all the values listed below, and MUST +ignore any unsupported values.

+
+ + + + + + + + + + + +
+

Value

+
+

Meaning

+
0x00000000The Encrypted FEK field is encrypted using RSA, with a public key belonging to a user or DRA.
0x00000001The Encrypted FEK field is encrypted using AES-256, with a key that is obtained by signing the non-terminated Unicode string "MICROSOFTE" (20 bytes long) with the user's RSA and computing the SHA-256 hash of the result. This value is used when a user's private key is stored on a smart card to improve performance by minimizing the number of smart card accesses.<10>
+

Data Fields (variable): This field MUST +contain the following items, in any order, at the locations indicated by the +respective Offset fields previously listed. These items MUST be +completely contained inside this field and MUST NOT overlap each other. There +MUST NOT be unused areas within this field spanning more than 8 contiguous +bytes.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Public Key Information (variable)
...
Encrypted FEK (variable)
...
+
+
+

Public Key Information +(variable): This field MUST contain information about the X.509 certificate that contains +the RSA public key, which is used to encrypt the Encrypted FEK field. It +MUST be formatted as specified in section 2.2.2.1.3.

+
+
+

Encrypted FEK (variable): +This field MUST contain information about the FEK, encrypted as indicated +by the contents of the Flags field. It MUST be formatted as specified in +section 2.2.2.1.5.

+
\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/ff8802e8-6e1d-41fc-904e-b1f01212cf9b b/msdn/.cache/windows_protocols/ms-efsr/ff8802e8-6e1d-41fc-904e-b1f01212cf9b new file mode 100644 index 00000000..0e268f8b --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/ff8802e8-6e1d-41fc-904e-b1f01212cf9b @@ -0,0 +1,67 @@ +

 The Fek Info datum encapsulates the algorithm ID (ALG_ID) used for the FEK, +the encrypted FEK, and the File IV. The FEK and File IV are both protected +using advanced encryption +standard (AES) keywrap, with the FMK as the wrapping key.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

EFSX_Datum
...
AlgorithmID
Data_Fields (variable)
...

EFSX_Datum (8 bytes): MUST be formatted as +specified in section 2.2.2.2.2. +The datum Type MUST be EFSX_TYPE_FEK_INFO (0x0006). The datum Flags +SHOULD include 0x0002, indicating a complex datum.

AlgorithmID (4 bytes): The symmetric +cryptographic algorithm associated with this key. It MUST be a 32-bit unsigned +integer in little-endian format. Possible values are specified in section +2.2.13.

Data_Fields (variable): This field contains +any number of nested EFSX_Datum structures. The nested datum structures MUST +NOT overlap, and MUST be entirely contained within the Fek Info datum. This +field MUST contain at least two datum structures of type EFSX_TYPE_BLOB +(0x0001). These blobs MUST have Role fields set to 0x000a (for the +encrypted FEK) and 0x000b (for the encrypted File IV), respectively. The BlobType +for these blobs MUST be 0x0004, indicating that the blob data contains a key +wrapped with an AES 256 key encryption key, as defined in [RFC3394].

\ No newline at end of file diff --git a/msdn/.cache/windows_protocols/ms-efsr/index.json b/msdn/.cache/windows_protocols/ms-efsr/index.json new file mode 100644 index 00000000..408ee5f5 --- /dev/null +++ b/msdn/.cache/windows_protocols/ms-efsr/index.json @@ -0,0 +1,342 @@ +{ + "Abstract data model": { + "Abstract data model": "2425f825-aa14-4895-a159-4122927dec7c" + }, + "Access to this page requires authorization. You can try signing in or changing directories.": { + "signing in": "#" + }, + "Applicability": { + "Applicability": "a60402ce-6bed-496b-960a-3b28631fa4c5" + }, + "Application Requests for a User-Certificate Binding": { + "Application Requests for a User-Certificate Binding": "acca9fee-57f9-4178-9515-0f2f6bd84cdd" + }, + "Application Requests for a User-Certificate Binding method": { + "Application Requests for a User-Certificate Binding method": "acca9fee-57f9-4178-9515-0f2f6bd84cdd" + }, + "Blob_Datum packet": { + "Blob_Datum packet": "b5a69be6-4759-4dfb-9e66-b37dfcd8529e" + }, + "CERTIFICATE_DATA packet": { + "CERTIFICATE_DATA packet": "066d0c3d-182c-4730-a005-dbf8990c9fbb" + }, + "Capability negotiation": { + "Capability negotiation": "7ab6ddec-9552-4e20-9f3e-e72e81495afe" + }, + "Change tracking": { + "Change tracking": "b6bf906d-6309-415f-83cc-31d89b400fbb" + }, + "Common data types": { + "Common data types": "cd6a287a-2d22-40d2-848d-e478ea323251" + }, + "DATA_SEGMENT_ENCRYPTION_HEADER packet": { + "DATA_SEGMENT_ENCRYPTION_HEADER packet": "a38459f2-40e9-418d-866c-d33789886a91" + }, + "Data model - abstract": { + "Data model - abstract": "2425f825-aa14-4895-a159-4122927dec7c" + }, + "Data types": { + "Data types": "cd6a287a-2d22-40d2-848d-e478ea323251" + }, + "Descriptor_Datum packet": { + "Descriptor_Datum packet": "2527501c-7230-4d4c-a0b3-2a1841634a86" + }, + "EFSRPC Interface": { + "EFSRPC Interface": "403c7ae0-1a3a-4e96-8efc-54e79a2cc451" + }, + "EFSRPC Interface method": { + "EFSRPC Interface method": "403c7ae0-1a3a-4e96-8efc-54e79a2cc451" + }, + "EFSRPC_METADATA_V1 packet": { + "EFSRPC_METADATA_V1 packet": "625335e5-a423-4d1c-be51-c696c32aa2eb" + }, + "EFSX_Datum packet": { + "EFSX_Datum packet": "1d2fa232-d557-43fe-95e3-2d4ced7f7934" + }, + "EFS_CERTIFICATE_BLOB structure": { + "EFS_CERTIFICATE_BLOB structure": "ecaf8957-7c32-4039-9392-0f8db7eb2623" + }, + "EFS_COMPATIBILITY_INFO structure": { + "EFS_COMPATIBILITY_INFO structure": "08ad49d7-29e4-4c50-b2c1-8c21df94f947" + }, + "EFS_DECRYPTION_STATUS_INFO structure": { + "EFS_DECRYPTION_STATUS_INFO structure": "9d10b7b1-cc92-404e-a589-640193cc0681" + }, + "EFS_ENCRYPTION_STATUS_INFO structure": { + "EFS_ENCRYPTION_STATUS_INFO structure": "bc8eef94-813a-4ff0-ad75-4614e992b2ca" + }, + "EFS_HASH_BLOB structure": { + "EFS_HASH_BLOB structure": "242d857f-ac8e-4cc8-b5e4-9314a942f45e" + }, + "EFS_KEY_INFO structure": { + "EFS_KEY_INFO structure": "49a8335f-3136-4059-9deb-9574d5ed5c86" + }, + "EFS_RPC_BLOB structure": { + "EFS_RPC_BLOB structure": "0b9b7b7e-9491-47eb-b057-c94bd0193a13" + }, + "ENCRYPTED_FILE_METADATA_SIGNATURE structure": { + "ENCRYPTED_FILE_METADATA_SIGNATURE structure": "4c2748b2-7e16-4e9f-9bac-311902d2c0cb" + }, + "ENCRYPTION_CERTIFICATE structure (section 2.2.8, section 2.2.19)": { + "section 2.2.19": "5b598190-e3c6-4fa9-901c-9b59c9c020bd", + "section 2.2.8": "6e0da5b4-1d90-45b1-82df-8c64cf6bbc9e" + }, + "ENCRYPTION_CERTIFICATE_HASH structure": { + "ENCRYPTION_CERTIFICATE_HASH structure": "3a7e7151-edcb-4b32-a119-35cdce1584c0" + }, + "ENCRYPTION_CERTIFICATE_HASH_LIST structure": { + "ENCRYPTION_CERTIFICATE_HASH_LIST structure": "2718804c-6ab9-45fd-98cf-541bc3b6bc75" + }, + "ENCRYPTION_CERTIFICATE_LIST structure (section 2.2.9, section 2.2.20)": { + "section 2.2.20": "28da7f90-16c8-4306-ae62-115c8f5e2a09", + "section 2.2.9": "d5e14019-e104-4ac1-abb9-525ec4f716a7" + }, + "EfsRpcAddUsersToFile method": { + "EfsRpcAddUsersToFile method": "afd56d24-3732-4477-b5cf-44cc33848d85" + }, + "EfsRpcAddUsersToFileEx method": { + "EfsRpcAddUsersToFileEx method": "d36df703-edc9-4482-87b7-d05c7783d65e" + }, + "EfsRpcCloseRaw method": { + "EfsRpcCloseRaw method": "c5da8aa7-fe38-4940-8d40-2cebbd887cba" + }, + "EfsRpcDecryptFileSrv method": { + "EfsRpcDecryptFileSrv method": "043715de-caee-402a-a61b-921743337e78" + }, + "EfsRpcDuplicateEncryptionInfoFile method": { + "EfsRpcDuplicateEncryptionInfoFile method": "b39ec3e2-d3f0-4934-925e-74032365f9d2" + }, + "EfsRpcEncryptFileSrv method (section 3.1.4.2.5, section 3.1.4.2.19)": { + "section 3.1.4.2.19": "366bb217-dad6-407d-9205-88e798713494", + "section 3.1.4.2.5": "0d599976-758c-4dbd-ac8c-c9db2a922d76" + }, + "EfsRpcFileKeyInfo method": { + "EfsRpcFileKeyInfo method": "6813bfa8-1538-4c5f-982a-ad58caff3c1c" + }, + "EfsRpcFileKeyInfoEx method": { + "EfsRpcFileKeyInfoEx method": "d0da10ab-3139-4d67-a66c-ea6eb497118d" + }, + "EfsRpcFlushEfsCache method": { + "EfsRpcFlushEfsCache method": "a7e37233-b684-4c3f-905b-81c2e04482f1" + }, + "EfsRpcGetEncryptedFileMetadata method": { + "EfsRpcGetEncryptedFileMetadata method": "5cb4e26d-5632-4048-8b2d-f661f8e8ee6b" + }, + "EfsRpcNotSupported method": { + "EfsRpcNotSupported method": "473813b6-8290-430c-8124-3ee31c7c9ec5" + }, + "EfsRpcOpenFileRaw method": { + "EfsRpcOpenFileRaw method": "ccc4fb75-1c86-41d7-bbc4-b278ec13bfb8" + }, + "EfsRpcQueryRecoveryAgents method": { + "EfsRpcQueryRecoveryAgents method": "cf759c00-1b90-4c33-9ace-f51c20149cea" + }, + "EfsRpcQueryUsersOnFile method (section 3.1.4.2.7, section 3.1.4.2.20, section 7)": { + "section 3.1.4.2.20": "ce7a5c85-9358-43a3-afd2-173a666cd407", + "section 3.1.4.2.7": "a058dc6c-bb7e-491c-9143-a5cb1f7e7cea", + "section 7": "cecd911d-7105-45cc-a7c8-348335d6f03f" + }, + "EfsRpcReadFileRaw method": { + "EfsRpcReadFileRaw method": "a3a6d95f-ebd5-4a08-9d19-6b6c1b7d41f6" + }, + "EfsRpcRemoveUsersFromFile method": { + "EfsRpcRemoveUsersFromFile method": "28609dad-5fa5-4af9-9382-18d40e3e9dec" + }, + "EfsRpcSetEncryptedFileMetadata method": { + "EfsRpcSetEncryptedFileMetadata method": "38a5a7d3-4d47-4075-b830-b657805f2e94" + }, + "EfsRpcWriteFileRaw method": { + "EfsRpcWriteFileRaw method": "b4fa10e8-31bb-4dd4-87af-1c4a3dedf417" + }, + "Examples": { + "Examples": "91dc53cc-e2c1-4340-baec-541b9c03dbc0" + }, + "Extended Header packet": { + "Extended Header packet": "9f6beece-d6c3-483f-a969-5af841b88f1e" + }, + "FEK packet": { + "FEK packet": "00933615-c9cf-4d51-9d9a-bb3fb33a3560" + }, + "Fek_Info packet": { + "Fek_Info packet": "ff8802e8-6e1d-41fc-904e-b1f01212cf9b" + }, + "Fields - vendor-extensible": { + "Fields - vendor-extensible": "7a28ccb2-3d5d-4333-822d-f68bc72fe369" + }, + "Full IDL": { + "Full IDL": "4a25b8e1-fd90-41b6-9301-62ed71334436" + }, + "Glossary": { + "Glossary": "230807ac-20be-494f-86e3-4c8ac23ea584" + }, + "IDL": { + "IDL": "4a25b8e1-fd90-41b6-9301-62ed71334436" + }, + "Identifiers": { + "Identifiers": "9db7433f-be13-4605-993f-3695a2d2916e" + }, + "Implementer - security considerations": { + "Implementer - security considerations": "31248846-cafe-4dda-95fb-7ef2acfdf0b3" + }, + "Implementer considerations - security": { + "Implementer considerations - security": "31248846-cafe-4dda-95fb-7ef2acfdf0b3" + }, + "Index of security parameters (section 5.2, section 6)": { + "section 5.2": "9e6e95cb-e945-455b-9366-9e7d5629a784", + "section 6": "4a25b8e1-fd90-41b6-9301-62ed71334436" + }, + "Informative references": { + "Informative references": "09f9f2f3-b0d2-4425-88c9-773b77d99e28" + }, + "Initialization": { + "Initialization": "0dfd46a6-4326-4f37-8ecf-0e8aedaafa8c" + }, + "Introduction": { + "Introduction": "82543317-ac9c-4340-b6a6-8cd5e6ad8215" + }, + "KEY_LIST packet": { + "KEY_LIST packet": "0e9d5482-59c7-4cd3-a439-603f9d154963" + }, + "KEY_LIST_ENTRY packet": { + "KEY_LIST_ENTRY packet": "f8c3837c-8617-4346-b188-989933705a40" + }, + "Local events": { + "Local events": "acd46ee4-c3e0-4fa7-add8-1132646170e1" + }, + "MARSHALED_STREAM packet": { + "MARSHALED_STREAM packet": "053f87fb-4896-4307-8ece-f23dc8e9762d" + }, + "Message processing": { + "Message processing": "403c7ae0-1a3a-4e96-8efc-54e79a2cc451" + }, + "Normative references": { + "Normative references": "9f1690ef-c41b-47c5-b92a-92b82d42ebae" + }, + "Overview (synopsis)": { + "Overview (synopsis)": "4892c610-4595-4fba-a67f-a2d26b9b6dcd" + }, + "PEFS_RPC_BLOB": { + "PEFS_RPC_BLOB": "0b9b7b7e-9491-47eb-b057-c94bd0193a13" + }, + "Parameters - security index": { + "Parameters - security index": "9e6e95cb-e945-455b-9366-9e7d5629a784" + }, + "Parameters index - security": { + "Parameters index - security": "4a25b8e1-fd90-41b6-9301-62ed71334436" + }, + "Preconditions": { + "Preconditions": "c312f3b1-fcf0-4d3a-8ff3-ed1dbd8c2b66" + }, + "Prerequisites": { + "Prerequisites": "c312f3b1-fcf0-4d3a-8ff3-ed1dbd8c2b66" + }, + "Product behavior": { + "Product behavior": "cecd911d-7105-45cc-a7c8-348335d6f03f" + }, + "Protector_Info_Datum packet": { + "Protector_Info_Datum packet": "4aae68f5-a2c0-4c6f-90fd-a268d52ef5f3" + }, + "Protector_List packet": { + "Protector_List packet": "8bef7919-5a88-44a8-9d03-72c58a14f63f" + }, + "Protector_List_Entry packet": { + "Protector_List_Entry packet": "8593a473-b726-4a19-9291-b8669b535304" + }, + "Public_Key_Information packet": { + "Public_Key_Information packet": "db88e723-1ff7-4351-a518-e1c60ee391a7" + }, + "RAW_DATA packet": { + "RAW_DATA packet": "e67520ea-0cb6-4349-bbe5-427a644d9492" + }, + "Raw data format": { + "Raw data format": "e67520ea-0cb6-4349-bbe5-427a644d9492" + }, + "References": { + "References": "b5d79d42-2164-4e0e-913b-2bd3d50a5e36" + }, + "Relationship to other protocols": { + "Relationship to other protocols": "853d7713-6620-4caa-8764-dca9580997d7" + }, + "STREAM_DATA_SEGMENT packet": { + "STREAM_DATA_SEGMENT packet": "5464320a-f822-4cf8-9fa2-a8bd11bcc4e1" + }, + "Sequencing rules": { + "Sequencing rules": "403c7ae0-1a3a-4e96-8efc-54e79a2cc451" + }, + "Standards assignments": { + "Standards assignments": "1baaad2f-7a84-4238-b113-f32827a39cd2" + }, + "TS_COMPDESK_REDIRSURF_ASSOC_LSURFACE packet (section 2.2.2.2.7, section 2.2.2.2.9)": { + "section 2.2.2.2.7": "c99f33a8-daf6-40ee-af64-1bad104f03d0", + "section 2.2.2.2.9": "5431ac4c-dd3a-43ee-8934-ee4eeda1efea" + }, + "Timer events": { + "Timer events": "658fdcdb-9029-491a-a92b-7bfb9491fb7e" + }, + "Timers": { + "Timers": "1f4ec298-edaa-451d-9d0e-670fdb0982d4" + }, + "Tracking changes": { + "Tracking changes": "b6bf906d-6309-415f-83cc-31d89b400fbb" + }, + "Transport": { + "Transport": "ab3c0be4-5b55-4a08-b198-f17170100be6" + }, + "Vendor-extensible fields": { + "Vendor-extensible fields": "7a28ccb2-3d5d-4333-822d-f68bc72fe369" + }, + "Versioning": { + "Versioning": "7ab6ddec-9552-4e20-9f3e-e72e81495afe" + }, + "abstract data model": { + "abstract data model": "2425f825-aa14-4895-a159-4122927dec7c" + }, + "common - overview": { + "common - overview": "cd6a287a-2d22-40d2-848d-e478ea323251" + }, + "common data types": { + "common data types": "cd6a287a-2d22-40d2-848d-e478ea323251" + }, + "implementer considerations": { + "implementer considerations": "31248846-cafe-4dda-95fb-7ef2acfdf0b3" + }, + "informative": { + "informative": "09f9f2f3-b0d2-4425-88c9-773b77d99e28" + }, + "initialization": { + "initialization": "0dfd46a6-4326-4f37-8ecf-0e8aedaafa8c" + }, + "local - server": { + "local - server": "acd46ee4-c3e0-4fa7-add8-1132646170e1" + }, + "local events": { + "local events": "acd46ee4-c3e0-4fa7-add8-1132646170e1" + }, + "normative": { + "normative": "9f1690ef-c41b-47c5-b92a-92b82d42ebae" + }, + "overview": { + "overview": "7df28303-c0d2-4ba6-ab63-765056cec603" + }, + "parameter index": { + "parameter index": "9e6e95cb-e945-455b-9366-9e7d5629a784" + }, + "parameters index": { + "parameters index": "4a25b8e1-fd90-41b6-9301-62ed71334436" + }, + "server": { + "server": "1f4ec298-edaa-451d-9d0e-670fdb0982d4" + }, + "timer - server": { + "timer - server": "658fdcdb-9029-491a-a92b-7bfb9491fb7e" + }, + "timer events": { + "timer events": "658fdcdb-9029-491a-a92b-7bfb9491fb7e" + }, + "timers": { + "timers": "1f4ec298-edaa-451d-9d0e-670fdb0982d4" + }, + "transport": { + "transport": "ab3c0be4-5b55-4a08-b198-f17170100be6" + } +} \ No newline at end of file diff --git a/msrpc/efsr/efsr.go b/msrpc/efsr/efsr.go index e15c7e2c..d4ecc0b6 100644 --- a/msrpc/efsr/efsr.go +++ b/msrpc/efsr/efsr.go @@ -1,3 +1,5 @@ +// Code generated by github.com/oiweiwei/midl-gen-go. DO NOT EDIT. + // The efsr package implements the EFSR client protocol. // // # Introduction @@ -148,7 +150,6 @@ import ( "unicode/utf16" dcerpc "github.com/oiweiwei/go-msrpc/dcerpc" - errors "github.com/oiweiwei/go-msrpc/dcerpc/errors" uuid "github.com/oiweiwei/go-msrpc/midl/uuid" ndr "github.com/oiweiwei/go-msrpc/ndr" ) @@ -161,7 +162,6 @@ var ( _ = ndr.ZeroString _ = (*uuid.UUID)(nil) _ = (*dcerpc.SyntaxID)(nil) - _ = (*errors.Error)(nil) ) var ( diff --git a/msrpc/efsr/efsrpc/v1/server.go b/msrpc/efsr/efsrpc/v1/server.go index 391fdbb4..e1a97817 100644 --- a/msrpc/efsr/efsrpc/v1/server.go +++ b/msrpc/efsr/efsrpc/v1/server.go @@ -1,3 +1,5 @@ +// Code generated by github.com/oiweiwei/midl-gen-go. DO NOT EDIT. + package efsrpc import ( @@ -7,7 +9,6 @@ import ( "unicode/utf16" dcerpc "github.com/oiweiwei/go-msrpc/dcerpc" - errors "github.com/oiweiwei/go-msrpc/dcerpc/errors" uuid "github.com/oiweiwei/go-msrpc/midl/uuid" ndr "github.com/oiweiwei/go-msrpc/ndr" ) @@ -20,7 +21,6 @@ var ( _ = ndr.ZeroString _ = (*uuid.UUID)(nil) _ = (*dcerpc.SyntaxID)(nil) - _ = (*errors.Error)(nil) ) // efsrpc server interface. @@ -145,6 +145,14 @@ type EfsrpcServer interface { // // Return Values: The server MUST return 0 if it successfully processes the message // received from the client. The server MUST return a nonzero value if processing fails. + // + // If no object exists on the server with the specified name, or if the object exists + // and is not encrypted, the server MUST return a nonzero value. Otherwise, the server + // MUST read the object's EFSRPC Metadata and return a list of the hashes of all the + // DRA certificates that have access to the object in the RecoveryAgents parameter. + // The server MUST NOT include any certificates that were not added by virtue of being + // defined as DRAs in administrative policy. If no DRAs are defined on the object, the + // call MUST return success and this list MUST be empty. QueryRecoveryAgents(context.Context, *QueryRecoveryAgentsRequest) (*QueryRecoveryAgentsResponse, error) // The EfsRpcRemoveUsersFromFile method is used to revoke a user's access to an encrypted @@ -154,6 +162,15 @@ type EfsrpcServer interface { // Return Values: The server MUST return 0 if it successfully processes the message // received from the client. The server MUST return a nonzero value if processing fails. // + // If no object exists on the server with the specified name, or if the object exists + // and is not encrypted, the server MUST return a nonzero value. The server SHOULD verify + // that the calling user is authorized to access the object, SHOULD verify that the + // calling user possesses a private key corresponding to a user certificate present + // in the EFSRPC Metadata for the object, and MUST return a nonzero value if this verification + // fails. If the calling user is authorized to access the object and the set of user + // certificates on the object contains only one entry, the server MUST return a nonzero + // value. + // // If none of the preceding errors occur, the server MUST remove the parts of the object's // EFSRPC Metadata that refer to the user certificates listed in the Users structure. RemoveUsersFromFile(context.Context, *RemoveUsersFromFileRequest) (*RemoveUsersFromFileResponse, error) @@ -218,6 +235,10 @@ type EfsrpcServer interface { // the KeyInfo parameter, which provides a hint to the client what error code would // be returned if decryption were attempted on this object without any further user // interaction or higher-level events. + // + // If the value of the InfoClass parameter is equal to CHECK_COMPATIBILITY_INFO, the + // server MUST return an EFS_COMPATIBILITY_INFO structure in the KeyInfo parameter, + // which provides the EFSVersion of the EFSRPC metadata associated with the file. FileKeyInfo(context.Context, *FileKeyInfoRequest) (*FileKeyInfoResponse, error) // The EfsRpcDuplicateEncryptionInfoFile method is used to duplicate the EFSRPC Metadata @@ -231,6 +252,9 @@ type EfsrpcServer interface { // If no object exists on the server with the name specified in the SrcFileName parameter, // or if it exists and is not encrypted, the server MUST return a nonzero value. // + // If an encrypted object exists with the name specified in the SrcFileName and dwCreationDisposition + // parameters is equal to CREATE_NEW, then: + // // * If an object exists with the name specified in the DestFileName parameter, the // server MUST return a nonzero value. // @@ -289,6 +313,10 @@ type EfsrpcServer interface { // calling user does not have the ability to decrypt the object, the server MUST return // a nonzero value. // + // If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in the dwFlags parameter, and the + // user certificate in the EncryptionCertificates parameter already has access to the + // object, then the server MUST return a zero value. + // // If the EFSRPC_ADDUSERFLAG_ADD_POLICY_KEYTYPE flag is specified in the dwFlags parameter, // then for each certificate specified in the EncryptionCertificates parameter, the // server MUST check whether the private key for the certificate is stored on a smart diff --git a/msrpc/efsr/efsrpc/v1/v1.go b/msrpc/efsr/efsrpc/v1/v1.go index 304165c0..7197ea95 100644 --- a/msrpc/efsr/efsrpc/v1/v1.go +++ b/msrpc/efsr/efsrpc/v1/v1.go @@ -1,3 +1,5 @@ +// Code generated by github.com/oiweiwei/midl-gen-go. DO NOT EDIT. + package efsrpc import ( @@ -7,7 +9,6 @@ import ( "unicode/utf16" dcerpc "github.com/oiweiwei/go-msrpc/dcerpc" - errors "github.com/oiweiwei/go-msrpc/dcerpc/errors" uuid "github.com/oiweiwei/go-msrpc/midl/uuid" dcetypes "github.com/oiweiwei/go-msrpc/msrpc/dcetypes" dtyp "github.com/oiweiwei/go-msrpc/msrpc/dtyp" @@ -22,7 +23,6 @@ var ( _ = ndr.ZeroString _ = (*uuid.UUID)(nil) _ = (*dcerpc.SyntaxID)(nil) - _ = (*errors.Error)(nil) _ = dcetypes.GoPackage _ = dtyp.GoPackage ) @@ -161,6 +161,14 @@ type EfsrpcClient interface { // // Return Values: The server MUST return 0 if it successfully processes the message // received from the client. The server MUST return a nonzero value if processing fails. + // + // If no object exists on the server with the specified name, or if the object exists + // and is not encrypted, the server MUST return a nonzero value. Otherwise, the server + // MUST read the object's EFSRPC Metadata and return a list of the hashes of all the + // DRA certificates that have access to the object in the RecoveryAgents parameter. + // The server MUST NOT include any certificates that were not added by virtue of being + // defined as DRAs in administrative policy. If no DRAs are defined on the object, the + // call MUST return success and this list MUST be empty. QueryRecoveryAgents(context.Context, *QueryRecoveryAgentsRequest, ...dcerpc.CallOption) (*QueryRecoveryAgentsResponse, error) // The EfsRpcRemoveUsersFromFile method is used to revoke a user's access to an encrypted @@ -170,6 +178,15 @@ type EfsrpcClient interface { // Return Values: The server MUST return 0 if it successfully processes the message // received from the client. The server MUST return a nonzero value if processing fails. // + // If no object exists on the server with the specified name, or if the object exists + // and is not encrypted, the server MUST return a nonzero value. The server SHOULD verify + // that the calling user is authorized to access the object, SHOULD verify that the + // calling user possesses a private key corresponding to a user certificate present + // in the EFSRPC Metadata for the object, and MUST return a nonzero value if this verification + // fails. If the calling user is authorized to access the object and the set of user + // certificates on the object contains only one entry, the server MUST return a nonzero + // value. + // // If none of the preceding errors occur, the server MUST remove the parts of the object's // EFSRPC Metadata that refer to the user certificates listed in the Users structure. RemoveUsersFromFile(context.Context, *RemoveUsersFromFileRequest, ...dcerpc.CallOption) (*RemoveUsersFromFileResponse, error) @@ -234,6 +251,10 @@ type EfsrpcClient interface { // the KeyInfo parameter, which provides a hint to the client what error code would // be returned if decryption were attempted on this object without any further user // interaction or higher-level events. + // + // If the value of the InfoClass parameter is equal to CHECK_COMPATIBILITY_INFO, the + // server MUST return an EFS_COMPATIBILITY_INFO structure in the KeyInfo parameter, + // which provides the EFSVersion of the EFSRPC metadata associated with the file. FileKeyInfo(context.Context, *FileKeyInfoRequest, ...dcerpc.CallOption) (*FileKeyInfoResponse, error) // The EfsRpcDuplicateEncryptionInfoFile method is used to duplicate the EFSRPC Metadata @@ -247,6 +268,9 @@ type EfsrpcClient interface { // If no object exists on the server with the name specified in the SrcFileName parameter, // or if it exists and is not encrypted, the server MUST return a nonzero value. // + // If an encrypted object exists with the name specified in the SrcFileName and dwCreationDisposition + // parameters is equal to CREATE_NEW, then: + // // * If an object exists with the name specified in the DestFileName parameter, the // server MUST return a nonzero value. // @@ -305,6 +329,10 @@ type EfsrpcClient interface { // calling user does not have the ability to decrypt the object, the server MUST return // a nonzero value. // + // If the EFSRPC_ADDUSERFLAG_REPLACE_DDF flag is set in the dwFlags parameter, and the + // user certificate in the EncryptionCertificates parameter already has access to the + // object, then the server MUST return a zero value. + // // If the EFSRPC_ADDUSERFLAG_ADD_POLICY_KEYTYPE flag is specified in the dwFlags parameter, // then for each certificate specified in the EncryptionCertificates parameter, the // server MUST check whether the private key for the certificate is stored on a smart @@ -2037,7 +2065,7 @@ func (o *xxx_DefaultEfsrpcClient) OpenFileRaw(ctx context.Context, in *OpenFileR out := &OpenFileRawResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2050,7 +2078,7 @@ func (o *xxx_DefaultEfsrpcClient) ReadFileRaw(ctx context.Context, in *ReadFileR out := &ReadFileRawResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2063,7 +2091,7 @@ func (o *xxx_DefaultEfsrpcClient) WriteFileRaw(ctx context.Context, in *WriteFil out := &WriteFileRawResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2086,7 +2114,7 @@ func (o *xxx_DefaultEfsrpcClient) EncryptFileServer(ctx context.Context, in *Enc out := &EncryptFileServerResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2099,7 +2127,7 @@ func (o *xxx_DefaultEfsrpcClient) DecryptFileServer(ctx context.Context, in *Dec out := &DecryptFileServerResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2112,7 +2140,7 @@ func (o *xxx_DefaultEfsrpcClient) QueryUsersOnFile(ctx context.Context, in *Quer out := &QueryUsersOnFileResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2125,7 +2153,7 @@ func (o *xxx_DefaultEfsrpcClient) QueryRecoveryAgents(ctx context.Context, in *Q out := &QueryRecoveryAgentsResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2138,7 +2166,7 @@ func (o *xxx_DefaultEfsrpcClient) RemoveUsersFromFile(ctx context.Context, in *R out := &RemoveUsersFromFileResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2151,7 +2179,7 @@ func (o *xxx_DefaultEfsrpcClient) AddUsersToFile(ctx context.Context, in *AddUse out := &AddUsersToFileResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2164,7 +2192,7 @@ func (o *xxx_DefaultEfsrpcClient) NotSupported(ctx context.Context, in *NotSuppo out := &NotSupportedResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2177,7 +2205,7 @@ func (o *xxx_DefaultEfsrpcClient) FileKeyInfo(ctx context.Context, in *FileKeyIn out := &FileKeyInfoResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2190,7 +2218,7 @@ func (o *xxx_DefaultEfsrpcClient) DuplicateEncryptionInfoFile(ctx context.Contex out := &DuplicateEncryptionInfoFileResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2203,7 +2231,7 @@ func (o *xxx_DefaultEfsrpcClient) AddUsersToFileEx(ctx context.Context, in *AddU out := &AddUsersToFileExResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2216,7 +2244,7 @@ func (o *xxx_DefaultEfsrpcClient) FileKeyInfoEx(ctx context.Context, in *FileKey out := &FileKeyInfoExResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2229,7 +2257,7 @@ func (o *xxx_DefaultEfsrpcClient) GetEncryptedFileMetadata(ctx context.Context, out := &GetEncryptedFileMetadataResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2242,7 +2270,7 @@ func (o *xxx_DefaultEfsrpcClient) SetEncryptedFileMetadata(ctx context.Context, out := &SetEncryptedFileMetadataResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2255,7 +2283,7 @@ func (o *xxx_DefaultEfsrpcClient) FlushEFSCache(ctx context.Context, in *FlushEF out := &FlushEFSCacheResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2268,7 +2296,7 @@ func (o *xxx_DefaultEfsrpcClient) EncryptFileExServer(ctx context.Context, in *E out := &EncryptFileExServerResponse{} out.xxx_FromOp(ctx, op) if op.Return != int32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2281,7 +2309,7 @@ func (o *xxx_DefaultEfsrpcClient) QueryProtectors(ctx context.Context, in *Query out := &QueryProtectorsResponse{} out.xxx_FromOp(ctx, op) if op.Return != uint32(0) { - return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return)) + return out, fmt.Errorf("%s: %w", op.OpName(), o.cc.Error(ctx, op.Return)) } return out, nil } @@ -2310,8 +2338,10 @@ type xxx_OpenFileRawOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcOpenFileRaw operation. func (o *xxx_OpenFileRawOperation) OpNum() int { return 0 } +// OpName returns the operation name of EfsRpcOpenFileRaw operation. func (o *xxx_OpenFileRawOperation) OpName() string { return "/efsrpc/v1/EfsRpcOpenFileRaw" } func (o *xxx_OpenFileRawOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -2479,6 +2509,17 @@ func (o *OpenFileRawRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) err return nil } +// MakeOpenFileRawRequest build a response structure from the given request structure. +func (o *OpenFileRawRequest) MakeResponse() *OpenFileRawResponse { + return &OpenFileRawResponse{} +} + +// OpNum returns the operation number of EfsRpcOpenFileRaw operation. +func (o *OpenFileRawRequest) OpNum() int { return 0 } + +// OpName returns the operation name of EfsRpcOpenFileRaw operation. +func (o *OpenFileRawRequest) OpName() string { return "/efsrpc/v1/EfsRpcOpenFileRaw" } + // OpenFileRawResponse structure represents the EfsRpcOpenFileRaw operation response type OpenFileRawResponse struct { // hContext: An implementation-specific context handle that is used in subsequent calls @@ -2527,8 +2568,10 @@ type xxx_ReadFileRawOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcReadFileRaw operation. func (o *xxx_ReadFileRawOperation) OpNum() int { return 1 } +// OpName returns the operation name of EfsRpcReadFileRaw operation. func (o *xxx_ReadFileRawOperation) OpName() string { return "/efsrpc/v1/EfsRpcReadFileRaw" } func (o *xxx_ReadFileRawOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -2714,6 +2757,17 @@ func (o *ReadFileRawRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) err return nil } +// MakeReadFileRawRequest build a response structure from the given request structure. +func (o *ReadFileRawRequest) MakeResponse() *ReadFileRawResponse { + return &ReadFileRawResponse{} +} + +// OpNum returns the operation number of EfsRpcReadFileRaw operation. +func (o *ReadFileRawRequest) OpNum() int { return 1 } + +// OpName returns the operation name of EfsRpcReadFileRaw operation. +func (o *ReadFileRawRequest) OpName() string { return "/efsrpc/v1/EfsRpcReadFileRaw" } + // ReadFileRawResponse structure represents the EfsRpcReadFileRaw operation response type ReadFileRawResponse struct { // EfsOutPipe: A pipe structure. The push procedure of this pipe will be called with @@ -2762,8 +2816,10 @@ type xxx_WriteFileRawOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcWriteFileRaw operation. func (o *xxx_WriteFileRawOperation) OpNum() int { return 2 } +// OpName returns the operation name of EfsRpcWriteFileRaw operation. func (o *xxx_WriteFileRawOperation) OpName() string { return "/efsrpc/v1/EfsRpcWriteFileRaw" } func (o *xxx_WriteFileRawOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -2944,6 +3000,17 @@ func (o *WriteFileRawRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) er return nil } +// MakeWriteFileRawRequest build a response structure from the given request structure. +func (o *WriteFileRawRequest) MakeResponse() *WriteFileRawResponse { + return &WriteFileRawResponse{} +} + +// OpNum returns the operation number of EfsRpcWriteFileRaw operation. +func (o *WriteFileRawRequest) OpNum() int { return 2 } + +// OpName returns the operation name of EfsRpcWriteFileRaw operation. +func (o *WriteFileRawRequest) OpName() string { return "/efsrpc/v1/EfsRpcWriteFileRaw" } + // WriteFileRawResponse structure represents the EfsRpcWriteFileRaw operation response type WriteFileRawResponse struct { // Return: The EfsRpcWriteFileRaw return value. @@ -2984,8 +3051,10 @@ type xxx_CloseRawOperation struct { Context *Context `idl:"name:hContext" json:"context"` } +// OpNum returns the operation number of EfsRpcCloseRaw operation. func (o *xxx_CloseRawOperation) OpNum() int { return 3 } +// OpName returns the operation name of EfsRpcCloseRaw operation. func (o *xxx_CloseRawOperation) OpName() string { return "/efsrpc/v1/EfsRpcCloseRaw" } func (o *xxx_CloseRawOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -3104,6 +3173,17 @@ func (o *CloseRawRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) error return nil } +// MakeCloseRawRequest build a response structure from the given request structure. +func (o *CloseRawRequest) MakeResponse() *CloseRawResponse { + return &CloseRawResponse{} +} + +// OpNum returns the operation number of EfsRpcCloseRaw operation. +func (o *CloseRawRequest) OpNum() int { return 3 } + +// OpName returns the operation name of EfsRpcCloseRaw operation. +func (o *CloseRawRequest) OpName() string { return "/efsrpc/v1/EfsRpcCloseRaw" } + // CloseRawResponse structure represents the EfsRpcCloseRaw operation response type CloseRawResponse struct { Context *Context `idl:"name:hContext" json:"context"` @@ -3144,8 +3224,10 @@ type xxx_EncryptFileServerOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcEncryptFileSrv operation. func (o *xxx_EncryptFileServerOperation) OpNum() int { return 4 } +// OpName returns the operation name of EfsRpcEncryptFileSrv operation. func (o *xxx_EncryptFileServerOperation) OpName() string { return "/efsrpc/v1/EfsRpcEncryptFileSrv" } func (o *xxx_EncryptFileServerOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -3246,6 +3328,17 @@ func (o *EncryptFileServerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reade return nil } +// MakeEncryptFileServerRequest build a response structure from the given request structure. +func (o *EncryptFileServerRequest) MakeResponse() *EncryptFileServerResponse { + return &EncryptFileServerResponse{} +} + +// OpNum returns the operation number of EfsRpcEncryptFileSrv operation. +func (o *EncryptFileServerRequest) OpNum() int { return 4 } + +// OpName returns the operation name of EfsRpcEncryptFileSrv operation. +func (o *EncryptFileServerRequest) OpName() string { return "/efsrpc/v1/EfsRpcEncryptFileSrv" } + // EncryptFileServerResponse structure represents the EfsRpcEncryptFileSrv operation response type EncryptFileServerResponse struct { // Return: The EfsRpcEncryptFileSrv return value. @@ -3288,8 +3381,10 @@ type xxx_DecryptFileServerOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcDecryptFileSrv operation. func (o *xxx_DecryptFileServerOperation) OpNum() int { return 5 } +// OpName returns the operation name of EfsRpcDecryptFileSrv operation. func (o *xxx_DecryptFileServerOperation) OpName() string { return "/efsrpc/v1/EfsRpcDecryptFileSrv" } func (o *xxx_DecryptFileServerOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -3408,6 +3503,17 @@ func (o *DecryptFileServerRequest) UnmarshalNDR(ctx context.Context, r ndr.Reade return nil } +// MakeDecryptFileServerRequest build a response structure from the given request structure. +func (o *DecryptFileServerRequest) MakeResponse() *DecryptFileServerResponse { + return &DecryptFileServerResponse{} +} + +// OpNum returns the operation number of EfsRpcDecryptFileSrv operation. +func (o *DecryptFileServerRequest) OpNum() int { return 5 } + +// OpName returns the operation name of EfsRpcDecryptFileSrv operation. +func (o *DecryptFileServerRequest) OpName() string { return "/efsrpc/v1/EfsRpcDecryptFileSrv" } + // DecryptFileServerResponse structure represents the EfsRpcDecryptFileSrv operation response type DecryptFileServerResponse struct { // Return: The EfsRpcDecryptFileSrv return value. @@ -3450,8 +3556,10 @@ type xxx_QueryUsersOnFileOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcQueryUsersOnFile operation. func (o *xxx_QueryUsersOnFileOperation) OpNum() int { return 6 } +// OpName returns the operation name of EfsRpcQueryUsersOnFile operation. func (o *xxx_QueryUsersOnFileOperation) OpName() string { return "/efsrpc/v1/EfsRpcQueryUsersOnFile" } func (o *xxx_QueryUsersOnFileOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -3598,6 +3706,17 @@ func (o *QueryUsersOnFileRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader return nil } +// MakeQueryUsersOnFileRequest build a response structure from the given request structure. +func (o *QueryUsersOnFileRequest) MakeResponse() *QueryUsersOnFileResponse { + return &QueryUsersOnFileResponse{} +} + +// OpNum returns the operation number of EfsRpcQueryUsersOnFile operation. +func (o *QueryUsersOnFileRequest) OpNum() int { return 6 } + +// OpName returns the operation name of EfsRpcQueryUsersOnFile operation. +func (o *QueryUsersOnFileRequest) OpName() string { return "/efsrpc/v1/EfsRpcQueryUsersOnFile" } + // QueryUsersOnFileResponse structure represents the EfsRpcQueryUsersOnFile operation response type QueryUsersOnFileResponse struct { Users *EncryptionCertificateHashList `idl:"name:Users" json:"users"` @@ -3643,8 +3762,10 @@ type xxx_QueryRecoveryAgentsOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcQueryRecoveryAgents operation. func (o *xxx_QueryRecoveryAgentsOperation) OpNum() int { return 7 } +// OpName returns the operation name of EfsRpcQueryRecoveryAgents operation. func (o *xxx_QueryRecoveryAgentsOperation) OpName() string { return "/efsrpc/v1/EfsRpcQueryRecoveryAgents" } @@ -3794,6 +3915,17 @@ func (o *QueryRecoveryAgentsRequest) UnmarshalNDR(ctx context.Context, r ndr.Rea return nil } +// MakeQueryRecoveryAgentsRequest build a response structure from the given request structure. +func (o *QueryRecoveryAgentsRequest) MakeResponse() *QueryRecoveryAgentsResponse { + return &QueryRecoveryAgentsResponse{} +} + +// OpNum returns the operation number of EfsRpcQueryRecoveryAgents operation. +func (o *QueryRecoveryAgentsRequest) OpNum() int { return 7 } + +// OpName returns the operation name of EfsRpcQueryRecoveryAgents operation. +func (o *QueryRecoveryAgentsRequest) OpName() string { return "/efsrpc/v1/EfsRpcQueryRecoveryAgents" } + // QueryRecoveryAgentsResponse structure represents the EfsRpcQueryRecoveryAgents operation response type QueryRecoveryAgentsResponse struct { // RecoveryAgents: A list of certificate hashes, represented by an ENCRYPTION_CERTIFICATE_HASH_LIST @@ -3841,8 +3973,10 @@ type xxx_RemoveUsersFromFileOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcRemoveUsersFromFile operation. func (o *xxx_RemoveUsersFromFileOperation) OpNum() int { return 8 } +// OpName returns the operation name of EfsRpcRemoveUsersFromFile operation. func (o *xxx_RemoveUsersFromFileOperation) OpName() string { return "/efsrpc/v1/EfsRpcRemoveUsersFromFile" } @@ -3978,6 +4112,17 @@ func (o *RemoveUsersFromFileRequest) UnmarshalNDR(ctx context.Context, r ndr.Rea return nil } +// MakeRemoveUsersFromFileRequest build a response structure from the given request structure. +func (o *RemoveUsersFromFileRequest) MakeResponse() *RemoveUsersFromFileResponse { + return &RemoveUsersFromFileResponse{} +} + +// OpNum returns the operation number of EfsRpcRemoveUsersFromFile operation. +func (o *RemoveUsersFromFileRequest) OpNum() int { return 8 } + +// OpName returns the operation name of EfsRpcRemoveUsersFromFile operation. +func (o *RemoveUsersFromFileRequest) OpName() string { return "/efsrpc/v1/EfsRpcRemoveUsersFromFile" } + // RemoveUsersFromFileResponse structure represents the EfsRpcRemoveUsersFromFile operation response type RemoveUsersFromFileResponse struct { // Return: The EfsRpcRemoveUsersFromFile return value. @@ -4020,8 +4165,10 @@ type xxx_AddUsersToFileOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcAddUsersToFile operation. func (o *xxx_AddUsersToFileOperation) OpNum() int { return 9 } +// OpName returns the operation name of EfsRpcAddUsersToFile operation. func (o *xxx_AddUsersToFileOperation) OpName() string { return "/efsrpc/v1/EfsRpcAddUsersToFile" } func (o *xxx_AddUsersToFileOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -4155,6 +4302,17 @@ func (o *AddUsersToFileRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) return nil } +// MakeAddUsersToFileRequest build a response structure from the given request structure. +func (o *AddUsersToFileRequest) MakeResponse() *AddUsersToFileResponse { + return &AddUsersToFileResponse{} +} + +// OpNum returns the operation number of EfsRpcAddUsersToFile operation. +func (o *AddUsersToFileRequest) OpNum() int { return 9 } + +// OpName returns the operation name of EfsRpcAddUsersToFile operation. +func (o *AddUsersToFileRequest) OpName() string { return "/efsrpc/v1/EfsRpcAddUsersToFile" } + // AddUsersToFileResponse structure represents the EfsRpcAddUsersToFile operation response type AddUsersToFileResponse struct { // Return: The EfsRpcAddUsersToFile return value. @@ -4201,8 +4359,10 @@ type xxx_NotSupportedOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcNotSupported operation. func (o *xxx_NotSupportedOperation) OpNum() int { return 11 } +// OpName returns the operation name of EfsRpcNotSupported operation. func (o *xxx_NotSupportedOperation) OpName() string { return "/efsrpc/v1/EfsRpcNotSupported" } func (o *xxx_NotSupportedOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -4397,6 +4557,17 @@ func (o *NotSupportedRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) er return nil } +// MakeNotSupportedRequest build a response structure from the given request structure. +func (o *NotSupportedRequest) MakeResponse() *NotSupportedResponse { + return &NotSupportedResponse{} +} + +// OpNum returns the operation number of EfsRpcNotSupported operation. +func (o *NotSupportedRequest) OpNum() int { return 11 } + +// OpName returns the operation name of EfsRpcNotSupported operation. +func (o *NotSupportedRequest) OpName() string { return "/efsrpc/v1/EfsRpcNotSupported" } + // NotSupportedResponse structure represents the EfsRpcNotSupported operation response type NotSupportedResponse struct { // Return: The EfsRpcNotSupported return value. @@ -4440,8 +4611,10 @@ type xxx_FileKeyInfoOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcFileKeyInfo operation. func (o *xxx_FileKeyInfoOperation) OpNum() int { return 12 } +// OpName returns the operation name of EfsRpcFileKeyInfo operation. func (o *xxx_FileKeyInfoOperation) OpName() string { return "/efsrpc/v1/EfsRpcFileKeyInfo" } func (o *xxx_FileKeyInfoOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -4637,6 +4810,17 @@ func (o *FileKeyInfoRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) err return nil } +// MakeFileKeyInfoRequest build a response structure from the given request structure. +func (o *FileKeyInfoRequest) MakeResponse() *FileKeyInfoResponse { + return &FileKeyInfoResponse{} +} + +// OpNum returns the operation number of EfsRpcFileKeyInfo operation. +func (o *FileKeyInfoRequest) OpNum() int { return 12 } + +// OpName returns the operation name of EfsRpcFileKeyInfo operation. +func (o *FileKeyInfoRequest) OpName() string { return "/efsrpc/v1/EfsRpcFileKeyInfo" } + // FileKeyInfoResponse structure represents the EfsRpcFileKeyInfo operation response type FileKeyInfoResponse struct { // KeyInfo: Returned by the server, as previously specified. @@ -4687,8 +4871,10 @@ type xxx_DuplicateEncryptionInfoFileOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcDuplicateEncryptionInfoFile operation. func (o *xxx_DuplicateEncryptionInfoFileOperation) OpNum() int { return 13 } +// OpName returns the operation name of EfsRpcDuplicateEncryptionInfoFile operation. func (o *xxx_DuplicateEncryptionInfoFileOperation) OpName() string { return "/efsrpc/v1/EfsRpcDuplicateEncryptionInfoFile" } @@ -4950,6 +5136,19 @@ func (o *DuplicateEncryptionInfoFileRequest) UnmarshalNDR(ctx context.Context, r return nil } +// MakeDuplicateEncryptionInfoFileRequest build a response structure from the given request structure. +func (o *DuplicateEncryptionInfoFileRequest) MakeResponse() *DuplicateEncryptionInfoFileResponse { + return &DuplicateEncryptionInfoFileResponse{} +} + +// OpNum returns the operation number of EfsRpcDuplicateEncryptionInfoFile operation. +func (o *DuplicateEncryptionInfoFileRequest) OpNum() int { return 13 } + +// OpName returns the operation name of EfsRpcDuplicateEncryptionInfoFile operation. +func (o *DuplicateEncryptionInfoFileRequest) OpName() string { + return "/efsrpc/v1/EfsRpcDuplicateEncryptionInfoFile" +} + // DuplicateEncryptionInfoFileResponse structure represents the EfsRpcDuplicateEncryptionInfoFile operation response type DuplicateEncryptionInfoFileResponse struct { // Return: The EfsRpcDuplicateEncryptionInfoFile return value. @@ -4994,8 +5193,10 @@ type xxx_AddUsersToFileExOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcAddUsersToFileEx operation. func (o *xxx_AddUsersToFileExOperation) OpNum() int { return 15 } +// OpName returns the operation name of EfsRpcAddUsersToFileEx operation. func (o *xxx_AddUsersToFileExOperation) OpName() string { return "/efsrpc/v1/EfsRpcAddUsersToFileEx" } func (o *xxx_AddUsersToFileExOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -5190,6 +5391,17 @@ func (o *AddUsersToFileExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader return nil } +// MakeAddUsersToFileExRequest build a response structure from the given request structure. +func (o *AddUsersToFileExRequest) MakeResponse() *AddUsersToFileExResponse { + return &AddUsersToFileExResponse{} +} + +// OpNum returns the operation number of EfsRpcAddUsersToFileEx operation. +func (o *AddUsersToFileExRequest) OpNum() int { return 15 } + +// OpName returns the operation name of EfsRpcAddUsersToFileEx operation. +func (o *AddUsersToFileExRequest) OpName() string { return "/efsrpc/v1/EfsRpcAddUsersToFileEx" } + // AddUsersToFileExResponse structure represents the EfsRpcAddUsersToFileEx operation response type AddUsersToFileExResponse struct { // Return: The EfsRpcAddUsersToFileEx return value. @@ -5235,8 +5447,10 @@ type xxx_FileKeyInfoExOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcFileKeyInfoEx operation. func (o *xxx_FileKeyInfoExOperation) OpNum() int { return 16 } +// OpName returns the operation name of EfsRpcFileKeyInfoEx operation. func (o *xxx_FileKeyInfoExOperation) OpName() string { return "/efsrpc/v1/EfsRpcFileKeyInfoEx" } func (o *xxx_FileKeyInfoExOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -5449,6 +5663,17 @@ func (o *FileKeyInfoExRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) e return nil } +// MakeFileKeyInfoExRequest build a response structure from the given request structure. +func (o *FileKeyInfoExRequest) MakeResponse() *FileKeyInfoExResponse { + return &FileKeyInfoExResponse{} +} + +// OpNum returns the operation number of EfsRpcFileKeyInfoEx operation. +func (o *FileKeyInfoExRequest) OpNum() int { return 16 } + +// OpName returns the operation name of EfsRpcFileKeyInfoEx operation. +func (o *FileKeyInfoExRequest) OpName() string { return "/efsrpc/v1/EfsRpcFileKeyInfoEx" } + // FileKeyInfoExResponse structure represents the EfsRpcFileKeyInfoEx operation response type FileKeyInfoExResponse struct { // KeyInfo: The server SHOULD ignore this parameter.<53> @@ -5495,8 +5720,10 @@ type xxx_GetEncryptedFileMetadataOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcGetEncryptedFileMetadata operation. func (o *xxx_GetEncryptedFileMetadataOperation) OpNum() int { return 18 } +// OpName returns the operation name of EfsRpcGetEncryptedFileMetadata operation. func (o *xxx_GetEncryptedFileMetadataOperation) OpName() string { return "/efsrpc/v1/EfsRpcGetEncryptedFileMetadata" } @@ -5646,6 +5873,19 @@ func (o *GetEncryptedFileMetadataRequest) UnmarshalNDR(ctx context.Context, r nd return nil } +// MakeGetEncryptedFileMetadataRequest build a response structure from the given request structure. +func (o *GetEncryptedFileMetadataRequest) MakeResponse() *GetEncryptedFileMetadataResponse { + return &GetEncryptedFileMetadataResponse{} +} + +// OpNum returns the operation number of EfsRpcGetEncryptedFileMetadata operation. +func (o *GetEncryptedFileMetadataRequest) OpNum() int { return 18 } + +// OpName returns the operation name of EfsRpcGetEncryptedFileMetadata operation. +func (o *GetEncryptedFileMetadataRequest) OpName() string { + return "/efsrpc/v1/EfsRpcGetEncryptedFileMetadata" +} + // GetEncryptedFileMetadataResponse structure represents the EfsRpcGetEncryptedFileMetadata operation response type GetEncryptedFileMetadataResponse struct { // EfsStreamBlob: The server SHOULD ignore this parameter.<56> @@ -5694,8 +5934,10 @@ type xxx_SetEncryptedFileMetadataOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcSetEncryptedFileMetadata operation. func (o *xxx_SetEncryptedFileMetadataOperation) OpNum() int { return 19 } +// OpName returns the operation name of EfsRpcSetEncryptedFileMetadata operation. func (o *xxx_SetEncryptedFileMetadataOperation) OpName() string { return "/efsrpc/v1/EfsRpcSetEncryptedFileMetadata" } @@ -5933,6 +6175,19 @@ func (o *SetEncryptedFileMetadataRequest) UnmarshalNDR(ctx context.Context, r nd return nil } +// MakeSetEncryptedFileMetadataRequest build a response structure from the given request structure. +func (o *SetEncryptedFileMetadataRequest) MakeResponse() *SetEncryptedFileMetadataResponse { + return &SetEncryptedFileMetadataResponse{} +} + +// OpNum returns the operation number of EfsRpcSetEncryptedFileMetadata operation. +func (o *SetEncryptedFileMetadataRequest) OpNum() int { return 19 } + +// OpName returns the operation name of EfsRpcSetEncryptedFileMetadata operation. +func (o *SetEncryptedFileMetadataRequest) OpName() string { + return "/efsrpc/v1/EfsRpcSetEncryptedFileMetadata" +} + // SetEncryptedFileMetadataResponse structure represents the EfsRpcSetEncryptedFileMetadata operation response type SetEncryptedFileMetadataResponse struct { // Return: The EfsRpcSetEncryptedFileMetadata return value. @@ -5973,8 +6228,10 @@ type xxx_FlushEFSCacheOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcFlushEfsCache operation. func (o *xxx_FlushEFSCacheOperation) OpNum() int { return 20 } +// OpName returns the operation name of EfsRpcFlushEfsCache operation. func (o *xxx_FlushEFSCacheOperation) OpName() string { return "/efsrpc/v1/EfsRpcFlushEfsCache" } func (o *xxx_FlushEFSCacheOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -6060,6 +6317,17 @@ func (o *FlushEFSCacheRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) e return nil } +// MakeFlushEFSCacheRequest build a response structure from the given request structure. +func (o *FlushEFSCacheRequest) MakeResponse() *FlushEFSCacheResponse { + return &FlushEFSCacheResponse{} +} + +// OpNum returns the operation number of EfsRpcFlushEfsCache operation. +func (o *FlushEFSCacheRequest) OpNum() int { return 20 } + +// OpName returns the operation name of EfsRpcFlushEfsCache operation. +func (o *FlushEFSCacheRequest) OpName() string { return "/efsrpc/v1/EfsRpcFlushEfsCache" } + // FlushEFSCacheResponse structure represents the EfsRpcFlushEfsCache operation response type FlushEFSCacheResponse struct { // Return: The EfsRpcFlushEfsCache return value. @@ -6103,8 +6371,10 @@ type xxx_EncryptFileExServerOperation struct { Return int32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcEncryptFileExSrv operation. func (o *xxx_EncryptFileExServerOperation) OpNum() int { return 21 } +// OpName returns the operation name of EfsRpcEncryptFileExSrv operation. func (o *xxx_EncryptFileExServerOperation) OpName() string { return "/efsrpc/v1/EfsRpcEncryptFileExSrv" } @@ -6262,6 +6532,17 @@ func (o *EncryptFileExServerRequest) UnmarshalNDR(ctx context.Context, r ndr.Rea return nil } +// MakeEncryptFileExServerRequest build a response structure from the given request structure. +func (o *EncryptFileExServerRequest) MakeResponse() *EncryptFileExServerResponse { + return &EncryptFileExServerResponse{} +} + +// OpNum returns the operation number of EfsRpcEncryptFileExSrv operation. +func (o *EncryptFileExServerRequest) OpNum() int { return 21 } + +// OpName returns the operation name of EfsRpcEncryptFileExSrv operation. +func (o *EncryptFileExServerRequest) OpName() string { return "/efsrpc/v1/EfsRpcEncryptFileExSrv" } + // EncryptFileExServerResponse structure represents the EfsRpcEncryptFileExSrv operation response type EncryptFileExServerResponse struct { // Return: The EfsRpcEncryptFileExSrv return value. @@ -6304,8 +6585,10 @@ type xxx_QueryProtectorsOperation struct { Return uint32 `idl:"name:Return" json:"return"` } +// OpNum returns the operation number of EfsRpcQueryProtectors operation. func (o *xxx_QueryProtectorsOperation) OpNum() int { return 22 } +// OpName returns the operation name of EfsRpcQueryProtectors operation. func (o *xxx_QueryProtectorsOperation) OpName() string { return "/efsrpc/v1/EfsRpcQueryProtectors" } func (o *xxx_QueryProtectorsOperation) xxx_PrepareRequestPayload(ctx context.Context) error { @@ -6471,6 +6754,17 @@ func (o *QueryProtectorsRequest) UnmarshalNDR(ctx context.Context, r ndr.Reader) return nil } +// MakeQueryProtectorsRequest build a response structure from the given request structure. +func (o *QueryProtectorsRequest) MakeResponse() *QueryProtectorsResponse { + return &QueryProtectorsResponse{} +} + +// OpNum returns the operation number of EfsRpcQueryProtectors operation. +func (o *QueryProtectorsRequest) OpNum() int { return 22 } + +// OpName returns the operation name of EfsRpcQueryProtectors operation. +func (o *QueryProtectorsRequest) OpName() string { return "/efsrpc/v1/EfsRpcQueryProtectors" } + // QueryProtectorsResponse structure represents the EfsRpcQueryProtectors operation response type QueryProtectorsResponse struct { ProtectorList *EncryptionProtectorList `idl:"name:ppProtectorList" json:"protector_list"`