* Apply a cipher and a digest to perform EtA. */
| 871 | * Apply a cipher and a digest to perform EtA. |
| 872 | */ |
| 873 | static int |
| 874 | swcr_eta(struct swcr_session *ses, struct cryptop *crp) |
| 875 | { |
| 876 | int error; |
| 877 | |
| 878 | if (CRYPTO_OP_IS_ENCRYPT(crp->crp_op)) { |
| 879 | error = swcr_encdec(ses, crp); |
| 880 | if (error == 0) |
| 881 | error = swcr_authcompute(ses, crp); |
| 882 | } else { |
| 883 | error = swcr_authcompute(ses, crp); |
| 884 | if (error == 0) |
| 885 | error = swcr_encdec(ses, crp); |
| 886 | } |
| 887 | return (error); |
| 888 | } |
| 889 | |
| 890 | /* |
| 891 | * Apply a compression/decompression algorithm |
nothing calls this directly
no test coverage detected