You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 0002-RCBS-Crypto-building-block.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,8 +86,10 @@ Each message is encrypted with a 256-bit symmetric **File Key (FK)** that is ran
86
86
The FK is wrapped using a key stored in a key vault (**Key Encryption Key (KEK)**) by Dapr. The result of the wrapping operation is the **Wrapped File Key (WFK)**. The algorithm used depends on the type of the KEK as well as the algorithms supported by the component: in order of preference:
87
87
88
88
- For symmetric keys:
89
-
- AES-KW with 256-bit keys ([RFC 3394](https://www.rfc-editor.org/rfc/rfc3394.html)): `AES-256-KW`
90
-
- Because the File Key is 256-bit long, only 256-bit wrapping keys can be used (i.e. `AES-256-KW`).
89
+
- AES-KW with 256-bit keys ([RFC 3394](https://www.rfc-editor.org/rfc/rfc3394.html)): `A256KW`
90
+
- Because the File Key is 256-bit long, only 256-bit wrapping keys can be used
91
+
- AES-CBC with keys 128-bit, 192-bit, and 256-bit: `A128CBC-NOPAD`, `A192CBC-NOPAD`, `A256CBC-NOPAD`
92
+
- These don't use PKCS#7 padding because the File Key is 256-bit so it's a multiple of the AES block size.
91
93
- For RSA keys:
92
94
- RSA OAEP with SHA-256: `RSA-OAEP-256`
93
95
- Dapr doesn't impose limitations on the size of the key, and any key bigger than 1024 bits should work; however, 4096-bit keys are strongly recommended.
@@ -131,8 +133,11 @@ type Manifest struct {
131
133
// This is optional, and if specified can be in the format `key` or `key/version`.
0 commit comments