Debian Codegraph @

crypto/aes/aes+x86_64.ha

raw
1 // SPDX-License-Identifier: MPL-2.0
2 // (c) Hare authors <https://harelang.org>
3
4 use crypto::cipher;
5
6 def MAXEXPKEYSZ: size = CT64_EXPKEYSZ;
7 def MAXNPARALLEL: size = CT64_NPARALLEL;
8
9 let rtvtable: *cipher::blockvtable = &ct64_vtable;
10 let initfuncptr: *initfunc = &ct64_init;
11
12 @init fn init() void = {
13 if (x86ni_available()) {
14 hwsup = true;
15 rtvtable = &x86ni_vtable;
16 initfuncptr = &x86ni_init;
17 };
18 };