MCPcopy Create free account
hub / github.com/F-Stack/f-stack / swcr_cipher_supported

Function swcr_cipher_supported

freebsd/opencrypto/cryptosoft.c:1227–1239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1225}
1226
1227static bool
1228swcr_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

Callers 1

swcr_probesessionFunction · 0.85

Calls 1

crypto_cipherFunction · 0.85

Tested by

no test coverage detected