Home | History | Annotate | Download | only in aes

Lines Matching refs:aes_impl

1 /*	$NetBSD: aes_impl.c,v 1.10 2022/11/05 17:36:33 jmcneill Exp $	*/
30 __KERNEL_RCSID(1, "$NetBSD: aes_impl.c,v 1.10 2022/11/05 17:36:33 jmcneill Exp $");
42 #include <crypto/aes/aes_impl.h>
47 static const struct aes_impl *aes_md_impl __read_mostly;
48 static const struct aes_impl *aes_impl __read_mostly;
55 KASSERTMSG(aes_impl != NULL,
59 node.sysctl_data = __UNCONST(aes_impl->ai_name);
60 node.sysctl_size = strlen(aes_impl->ai_name) + 1;
102 KASSERT(aes_impl == NULL);
112 aes_impl = aes_md_impl;
114 if (aes_impl == NULL) {
119 aes_impl = &aes_bear_impl;
121 if (aes_impl == NULL)
124 aprint_debug("aes: %s\n", aes_impl->ai_name);
157 aes_md_init(const struct aes_impl *impl)
161 KASSERTMSG(aes_impl == NULL,
163 aes_impl->ai_name, impl->ai_name);
177 aes_impl->ai_setenckey(enc, key, nrounds);
213 aes_impl->ai_setdeckey(dec, key, nrounds);
249 aes_impl->ai_enc(enc, in, out, nrounds);
258 aes_impl->ai_dec(dec, in, out, nrounds);
268 aes_impl->ai_cbc_enc(enc, in, out, nbytes, iv, nrounds);
278 aes_impl->ai_cbc_dec(dec, in, out, nbytes, iv, nrounds);
288 aes_impl->ai_xts_enc(enc, in, out, nbytes, tweak, nrounds);
298 aes_impl->ai_xts_dec(dec, in, out, nbytes, tweak, nrounds);
310 aes_impl->ai_cbcmac_update1(enc, in, nbytes, auth, nrounds);
323 aes_impl->ai_ccm_enc1(enc, in, out, nbytes, authctr, nrounds);
336 aes_impl->ai_ccm_dec1(enc, in, out, nbytes, authctr, nrounds);