| 1225 | } |
| 1226 | |
| 1227 | static bool |
| 1228 | swcr_cipher_supported(const struct crypto_session_params *csp) |
| 1229 | { |
| 1230 | struct enc_xform *txf; |
| 1231 | |
| 1232 | txf = crypto_cipher(csp); |
| 1233 | if (txf == NULL) |
| 1234 | return (false); |
| 1235 | if (csp->csp_cipher_alg != CRYPTO_NULL_CBC && |
| 1236 | txf->ivsize != csp->csp_ivlen) |
| 1237 | return (false); |
| 1238 | return (true); |
| 1239 | } |
| 1240 | |
| 1241 | #define SUPPORTED_SES (CSP_F_SEPARATE_OUTPUT | CSP_F_SEPARATE_AAD | CSP_F_ESN) |
| 1242 |
no test coverage detected