hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

aes+x86_64.ha (406B)


      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 };