Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 1 | This document lists current limitations of the PSA Crypto API (as of version |
| 2 | 1.1) that may impact our ability to (1) use it for all crypto operations in |
| 3 | TLS and X.509 and (2) support isolation of all long-term secrets in TLS (that |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 4 | is, goals G1 and G2 in [strategy.md](strategy.md) in the same directory). |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 5 | |
| 6 | This is supposed to be a complete list, based on a exhaustive review of crypto |
| 7 | operations done in TLS and X.509 code, but of course it's still possible that |
| 8 | subtle-but-important issues have been missed. The only way to be really sure |
| 9 | is, of course, to actually do the migration work. |
| 10 | |
| 11 | Limitations relevant for G1 (performing crypto operations) |
| 12 | ========================================================== |
| 13 | |
| 14 | Restartable ECC operations |
| 15 | -------------------------- |
| 16 | |
Manuel Pégourié-Gonnard | 9bf9b9e | 2022-06-07 10:16:24 +0200 | [diff] [blame] | 17 | There is currently no support for that in PSA at all, but it will be added at |
| 18 | some point, see <https://github.com/orgs/Mbed-TLS/projects/1#column-18816849>. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 19 | |
| 20 | Currently, `MBEDTLS_USE_PSA_CRYPTO` is simply incompatible with |
| 21 | `MBEDTLS_ECP_RESTARTABLE`. |
| 22 | |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 23 | Things that are in the API but not implemented yet |
| 24 | -------------------------------------------------- |
| 25 | |
| 26 | PSA Crypto has an API for FFDH, but it's not implemented in Mbed TLS yet. |
| 27 | (Regarding FFDH, see the next section as well.) See issue [3261][ffdh] on |
| 28 | github. |
| 29 | |
Dave Rodgman | 017a199 | 2022-03-31 14:07:01 +0100 | [diff] [blame] | 30 | [ffdh]: https://github.com/Mbed-TLS/mbedtls/issues/3261 |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 31 | |
| 32 | PSA Crypto has an experimental API for EC J-PAKE, but it's not implemented in |
| 33 | Mbed TLS yet. See the [EC J-PAKE follow-up EPIC][ecjp] on github. |
| 34 | |
Dave Rodgman | 017a199 | 2022-03-31 14:07:01 +0100 | [diff] [blame] | 35 | [ecjp]: https://github.com/orgs/Mbed-TLS/projects/1#column-17950140 |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 36 | |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 37 | Arbitrary parameters for FFDH |
| 38 | ----------------------------- |
| 39 | |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 40 | (See also the first paragraph in the previous section.) |
| 41 | |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 42 | Currently, the PSA Crypto API can only perform FFDH with a limited set of |
Manuel Pégourié-Gonnard | 58d101b | 2022-02-10 12:58:09 +0100 | [diff] [blame] | 43 | well-known parameters (some of them defined in the spec, but implementations |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 44 | are free to extend that set). |
| 45 | |
| 46 | TLS 1.2 (and earlier) on the other hand have the server send explicit |
Manuel Pégourié-Gonnard | 58d101b | 2022-02-10 12:58:09 +0100 | [diff] [blame] | 47 | parameters (P and G) in its ServerKeyExchange message. This has been found to |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 48 | be suboptimal for security, as it is prohibitively hard for the client to |
| 49 | verify the strength of these parameters. This led to the development of RFC |
| 50 | 7919 which allows use of named groups in TLS 1.2 - however as this is only an |
| 51 | extension, servers can still send custom parameters if they don't support the |
| 52 | extension. |
| 53 | |
| 54 | In TLS 1.3 the situation will be simpler: named groups are the only |
| 55 | option, so the current PSA Crypto API is a good match for that. (Not |
Manuel Pégourié-Gonnard | c7f3254 | 2022-02-10 13:00:33 +0100 | [diff] [blame] | 56 | coincidentally, all the groups used by RFC 7919 and TLS 1.3 are included |
| 57 | in the PSA specification.) |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 58 | |
| 59 | There are several options here: |
| 60 | |
| 61 | 1. Implement support for custom FFDH parameters in PSA Crypto: this would pose |
| 62 | non-trivial API design problem, but most importantly seems backwards, as |
Manuel Pégourié-Gonnard | 83c5388 | 2022-04-20 14:27:48 +0200 | [diff] [blame] | 63 | the crypto community is moving away from custom FFDH parameters. (Could be |
| 64 | done any time.) |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 65 | 2. Drop the DHE-RSA and DHE-PSK key exchanges in TLS 1.2 when moving to PSA. |
Manuel Pégourié-Gonnard | 83c5388 | 2022-04-20 14:27:48 +0200 | [diff] [blame] | 66 | (For people who want some algorithmic variety in case ECC collapses, FFDH |
| 67 | would still be available in TLS 1.3, just not in 1.2.) (Can only be done in |
| 68 | 4.0 or another major version.) |
| 69 | 3. Variant of the precedent: only drop client-side support. Server-side is |
| 70 | easy to support in terms of API/protocol, as the server picks the |
| 71 | parameters: we just need remove the existing `mbedtls_ssl_conf_dh_param_xxx()` |
| 72 | APIs and tell people to use `mbedtls_ssl_conf_groups()` instead. (Can only be |
| 73 | done in 4.0 or another major version.) |
| 74 | 4. Implement RFC 7919, support DHE-RSA and DHE-PSK only in conjunction with it |
| 75 | when moving to PSA. Server-side would work as above; unfortunately |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 76 | client-side the only option is to offer named groups and break the handshake |
| 77 | if the server didn't take on our offer. This is not fully satisfying, but is |
| 78 | perhaps the least unsatisfying option in terms of result; it's also probably |
| 79 | the one that requires the most work, but it would deliver value beyond PSA |
Manuel Pégourié-Gonnard | 83c5388 | 2022-04-20 14:27:48 +0200 | [diff] [blame] | 80 | migration by implementing RFC 7919. (Implementing RFC 7919 could be done any |
| 81 | time; making it mandatory can only be done in 4.0 or another major version.) |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 82 | |
| 83 | RSA-PSS parameters |
| 84 | ------------------ |
| 85 | |
| 86 | RSA-PSS signatures are defined by PKCS#1 v2, re-published as RFC 8017 |
| 87 | (previously RFC 3447). |
| 88 | |
| 89 | As standardized, the signature scheme takes several parameters, in addition to |
| 90 | the hash algorithm potentially used to hash the message being signed: |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 91 | - a hash algorithm used for the encoding function |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 92 | - a mask generation function |
| 93 | - most commonly MGF1, which in turn is parametrized by a hash algorithm |
| 94 | - a salt length |
Manuel Pégourié-Gonnard | c70013e | 2022-02-10 13:07:22 +0100 | [diff] [blame] | 95 | - a trailer field - the value is fixed to 0xBC by PKCS#1 v2.1, but was left |
Andrzej Kurek | 5c65c57 | 2022-04-13 14:28:52 -0400 | [diff] [blame] | 96 | configurable in the original scheme; 0xBC is used everywhere in practice. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 97 | |
| 98 | Both the existing `mbedtls_` API and the PSA API support only MGF1 as the |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 99 | generation function (and only 0xBC as the trailer field), but there are |
| 100 | discrepancies in handling the salt length and which of the various hash |
| 101 | algorithms can differ from each other. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 102 | |
| 103 | ### API comparison |
| 104 | |
| 105 | - RSA: |
| 106 | - signature: `mbedtls_rsa_rsassa_pss_sign()` |
| 107 | - message hashed externally |
| 108 | - encoding hash = MGF1 hash (from context, or argument = message hash) |
| 109 | - salt length: always using the maximum legal value |
| 110 | - signature: `mbedtls_rsa_rsassa_pss_sign_ext()` |
| 111 | - message hashed externally |
| 112 | - encoding hash = MGF1 hash (from context, or argument = message hash) |
| 113 | - salt length: specified explicitly |
| 114 | - verification: `mbedtls_rsassa_pss_verify()` |
| 115 | - message hashed externally |
| 116 | - encoding hash = MGF1 hash (from context, or argument = message hash) |
| 117 | - salt length: any valid length accepted |
| 118 | - verification: `mbedtls_rsassa_pss_verify_ext()` |
| 119 | - message hashed externally |
| 120 | - encoding hash = MGF1 hash from dedicated argument |
| 121 | - expected salt length: specified explicitly, can specify "ANY" |
| 122 | - PK: |
| 123 | - signature: not supported |
| 124 | - verification: `mbedtls_pk_verify_ext()` |
| 125 | - message hashed externally |
| 126 | - encoding hash = MGF1 hash, specified explicitly |
| 127 | - expected salt length: specified explicitly, can specify "ANY" |
| 128 | - PSA: |
| 129 | - algorithm specification: |
| 130 | - hash alg used for message hashing, encoding and MGF1 |
Manuel Pégourié-Gonnard | 539b9a5 | 2022-02-07 10:19:08 +0100 | [diff] [blame] | 131 | - salt length can be either "standard" (<= hashlen, see note) or "any" |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 132 | - signature generation: |
Manuel Pégourié-Gonnard | 539b9a5 | 2022-02-07 10:19:08 +0100 | [diff] [blame] | 133 | - salt length: always <= hashlen (see note) and random salt |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 134 | - verification: |
Manuel Pégourié-Gonnard | 539b9a5 | 2022-02-07 10:19:08 +0100 | [diff] [blame] | 135 | - salt length: either <= hashlen (see note), or any depending on algorithm |
| 136 | |
| 137 | Note: above, "<= hashlen" means that hashlen is used if possible, but if it |
Manuel Pégourié-Gonnard | 80759c4 | 2022-02-08 10:33:11 +0100 | [diff] [blame] | 138 | doesn't fit because the key is too short, then the maximum length that fits is |
Manuel Pégourié-Gonnard | 539b9a5 | 2022-02-07 10:19:08 +0100 | [diff] [blame] | 139 | used. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 140 | |
| 141 | The RSA/PK API is in principle more flexible than the PSA Crypto API. The |
| 142 | following sub-sections study whether and how this matters in practice. |
| 143 | |
| 144 | ### Use in X.509 |
| 145 | |
| 146 | RFC 4055 Section 3.1 defines the encoding of RSA-PSS that's used in X.509. |
| 147 | It allows independently specifying the message hash (also used for encoding |
| 148 | hash), the MGF (and its hash if MGF1 is used), and the salt length (plus an |
| 149 | extra parameter "trailer field" that doesn't vary in practice"). These can be |
| 150 | encoded as part of the key, and of the signature. If both encoding are |
| 151 | presents, all values must match except possibly for the salt length, where the |
| 152 | value from the signature parameters is used. |
| 153 | |
| 154 | In Mbed TLS, RSA-PSS parameters can be parsed and displayed for various |
| 155 | objects (certificates, CRLs, CSRs). During parsing, the following properties |
| 156 | are enforced: |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 157 | - the extra "trailer field" parameter must have its default value |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 158 | - the mask generation function is MGF1 |
| 159 | - encoding hash = message hashing algorithm (may differ from MGF1 hash) |
| 160 | |
| 161 | When it comes to cryptographic operations, only two things are supported: |
| 162 | - verifying the signature on a certificate from its parent; |
| 163 | - verifying the signature on a CRL from the issuing CA. |
| 164 | |
| 165 | The verification is done using `mbedtls_pk_verify_ext()`. |
| 166 | |
| 167 | Note: since X.509 parsing ensures that message hash = encoding hash, and |
Manuel Pégourié-Gonnard | 58d101b | 2022-02-10 12:58:09 +0100 | [diff] [blame] | 168 | `mbedtls_pk_verify_ext()` uses encoding hash = mgf1 hash, it looks like all |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 169 | three hash algorithms must be equal, which would be good news as it would |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 170 | match a limitation of the PSA API. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 171 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 172 | It is unclear what parameters people use in practice. It looks like by default |
| 173 | OpenSSL picks saltlen = keylen - hashlen - 2 (tested with openssl 1.1.1f). |
| 174 | The `certool` command provided by GnuTLS seems to be picking saltlen = hashlen |
Manuel Pégourié-Gonnard | 839bb8a | 2022-02-08 10:33:41 +0100 | [diff] [blame] | 175 | by default (tested with GnuTLS 3.6.13). FIPS 186-4 requires 0 <= saltlen <= |
Manuel Pégourié-Gonnard | 8e559da | 2022-02-01 10:26:07 +0100 | [diff] [blame] | 176 | hashlen. |
Manuel Pégourié-Gonnard | f5ee4b3 | 2021-10-21 13:04:01 +0200 | [diff] [blame] | 177 | |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 178 | ### Use in TLS |
| 179 | |
| 180 | In TLS 1.2 (or lower), RSA-PSS signatures are never used, except via X.509. |
| 181 | |
| 182 | In TLS 1.3, RSA-PSS signatures can be used directly in the protocol (in |
| 183 | addition to indirect use via X.509). It has two sets of three signature |
| 184 | algorithm identifiers (for SHA-256, SHA-384 and SHA-512), depending of what |
| 185 | the OID of the public key is (rsaEncryption or RSASSA-PSS). |
| 186 | |
| 187 | In both cases, it specifies that: |
| 188 | - the mask generation function is MGF1 |
| 189 | - all three hashes are equal |
| 190 | - the length of the salt MUST be equal to the length of the digest algorithm |
| 191 | |
| 192 | When signing, the salt length picked by PSA is the one required by TLS 1.3 |
| 193 | (unless the key is unreasonably small). |
| 194 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 195 | When verifying signatures, PSA will by default enforce the salt len is the one |
| 196 | required by TLS 1.3. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 197 | |
| 198 | ### Current testing - X509 |
| 199 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 200 | All test files use the default trailer field of 0xBC, as enforced by our |
| 201 | parser. (There's a negative test for that using the |
| 202 | `x509_parse_rsassa_pss_params` test function and hex data.) |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 203 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 204 | Files with "bad" in the name are expected to be invalid and rejected in tests. |
Manuel Pégourié-Gonnard | f5ee4b3 | 2021-10-21 13:04:01 +0200 | [diff] [blame] | 205 | |
| 206 | **Test certificates:** |
| 207 | |
| 208 | server9-bad-mgfhash.crt (announcing mgf1(sha224), signed with another mgf) |
| 209 | Hash Algorithm: sha256 |
| 210 | Mask Algorithm: mgf1 with sha224 |
| 211 | Salt Length: 0xDE |
| 212 | server9-bad-saltlen.crt (announcing saltlen = 0xDE, signed with another len) |
| 213 | Hash Algorithm: sha256 |
| 214 | Mask Algorithm: mgf1 with sha256 |
| 215 | Salt Length: 0xDE |
| 216 | server9-badsign.crt (one bit flipped in the signature) |
| 217 | Hash Algorithm: sha1 (default) |
| 218 | Mask Algorithm: mgf1 with sha1 (default) |
| 219 | Salt Length: 0xEA |
| 220 | server9-defaults.crt |
| 221 | Hash Algorithm: sha1 (default) |
| 222 | Mask Algorithm: mgf1 with sha1 (default) |
| 223 | Salt Length: 0x14 (default) |
| 224 | server9-sha224.crt |
| 225 | Hash Algorithm: sha224 |
| 226 | Mask Algorithm: mgf1 with sha224 |
| 227 | Salt Length: 0xE2 |
| 228 | server9-sha256.crt |
| 229 | Hash Algorithm: sha256 |
| 230 | Mask Algorithm: mgf1 with sha256 |
| 231 | Salt Length: 0xDE |
| 232 | server9-sha384.crt |
| 233 | Hash Algorithm: sha384 |
| 234 | Mask Algorithm: mgf1 with sha384 |
| 235 | Salt Length: 0xCE |
| 236 | server9-sha512.crt |
| 237 | Hash Algorithm: sha512 |
| 238 | Mask Algorithm: mgf1 with sha512 |
| 239 | Salt Length: 0xBE |
| 240 | server9-with-ca.crt |
| 241 | Hash Algorithm: sha1 (default) |
| 242 | Mask Algorithm: mgf1 with sha1 (default) |
| 243 | Salt Length: 0xEA |
| 244 | server9.crt |
| 245 | Hash Algorithm: sha1 (default) |
| 246 | Mask Algorithm: mgf1 with sha1 (default) |
| 247 | Salt Length: 0xEA |
| 248 | |
| 249 | These certificates are signed with a 2048-bit key. It appears that they are |
| 250 | all using saltlen = keylen - hashlen - 2, except for server9-defaults which is |
| 251 | using saltlen = hashlen. |
| 252 | |
| 253 | **Test CRLs:** |
| 254 | |
| 255 | crl-rsa-pss-sha1-badsign.pem |
| 256 | Hash Algorithm: sha1 (default) |
| 257 | Mask Algorithm: mgf1 with sha1 (default) |
| 258 | Salt Length: 0xEA |
| 259 | crl-rsa-pss-sha1.pem |
| 260 | Hash Algorithm: sha1 (default) |
| 261 | Mask Algorithm: mgf1 with sha1 (default) |
| 262 | Salt Length: 0xEA |
| 263 | crl-rsa-pss-sha224.pem |
| 264 | Hash Algorithm: sha224 |
| 265 | Mask Algorithm: mgf1 with sha224 |
| 266 | Salt Length: 0xE2 |
| 267 | crl-rsa-pss-sha256.pem |
| 268 | Hash Algorithm: sha256 |
| 269 | Mask Algorithm: mgf1 with sha256 |
| 270 | Salt Length: 0xDE |
| 271 | crl-rsa-pss-sha384.pem |
| 272 | Hash Algorithm: sha384 |
| 273 | Mask Algorithm: mgf1 with sha384 |
| 274 | Salt Length: 0xCE |
| 275 | crl-rsa-pss-sha512.pem |
| 276 | Hash Algorithm: sha512 |
| 277 | Mask Algorithm: mgf1 with sha512 |
| 278 | Salt Length: 0xBE |
| 279 | |
| 280 | These CRLs are signed with a 2048-bit key. It appears that they are |
| 281 | all using saltlen = keylen - hashlen - 2. |
| 282 | |
| 283 | **Test CSRs:** |
| 284 | |
| 285 | server9.req.sha1 |
| 286 | Hash Algorithm: sha1 (default) |
| 287 | Mask Algorithm: mgf1 with sha1 (default) |
| 288 | Salt Length: 0x6A |
| 289 | server9.req.sha224 |
| 290 | Hash Algorithm: sha224 |
| 291 | Mask Algorithm: mgf1 with sha224 |
| 292 | Salt Length: 0x62 |
| 293 | server9.req.sha256 |
| 294 | Hash Algorithm: sha256 |
| 295 | Mask Algorithm: mgf1 with sha256 |
| 296 | Salt Length: 0x5E |
| 297 | server9.req.sha384 |
| 298 | Hash Algorithm: sha384 |
| 299 | Mask Algorithm: mgf1 with sha384 |
| 300 | Salt Length: 0x4E |
| 301 | server9.req.sha512 |
| 302 | Hash Algorithm: sha512 |
| 303 | Mask Algorithm: mgf1 with sha512 |
| 304 | Salt Length: 0x3E |
| 305 | |
Manuel Pégourié-Gonnard | 83c5388 | 2022-04-20 14:27:48 +0200 | [diff] [blame] | 306 | These CSRs are signed with a 2048-bit key. It appears that they are |
Manuel Pégourié-Gonnard | f5ee4b3 | 2021-10-21 13:04:01 +0200 | [diff] [blame] | 307 | all using saltlen = keylen - hashlen - 2. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 308 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 309 | ### Possible courses of action |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 310 | |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 311 | There's no question about what to do with TLS (any version); the only question |
| 312 | is about X.509 signature verification. Options include: |
| 313 | |
| 314 | 1. Doing all verifications with `PSA_ALG_RSA_PSS_ANY_SALT` - while this |
| 315 | wouldn't cause a concrete security issue, this would be non-compliant. |
| 316 | 2. Doing verifications with `PSA_ALG_RSA_PSS` when we're lucky and the encoded |
| 317 | saltlen happens to match hashlen, and falling back to `ANY_SALT` otherwise. |
| 318 | Same issue as with the previous point, except more contained. |
| 319 | 3. Reject all certificates with saltlen != hashlen. This includes all |
Manuel Pégourié-Gonnard | 83c5388 | 2022-04-20 14:27:48 +0200 | [diff] [blame] | 320 | certificates generated with OpenSSL using the default parameters, so it's |
Manuel Pégourié-Gonnard | e459be2 | 2021-10-27 13:25:49 +0200 | [diff] [blame] | 321 | probably not acceptable. |
| 322 | 4. Request an extension to the PSA Crypto API and use one of the above options |
| 323 | in the meantime. Such an extension seems inconvenient and not motivated by |
| 324 | strong security arguments, so it's unclear whether it would be accepted. |
Manuel Pégourié-Gonnard | d9edd56 | 2021-09-30 15:05:01 +0200 | [diff] [blame] | 325 | |
| 326 | Limitations relevant for G2 (isolation of long-term secrets) |
| 327 | ============================================================ |
| 328 | |
Manuel Pégourié-Gonnard | 103b992 | 2022-05-11 13:21:39 +0200 | [diff] [blame] | 329 | Currently none. |