Lines Matching defs:algo
37 geliboot_crypt(u_int algo, int enc, u_char *data, size_t datasize,
46 switch (algo) {
100 printf("Unsupported crypto algorithm #%d\n", algo);
108 g_eli_crypto_cipher(u_int algo, int enc, u_char *data, size_t datasize,
114 return (geliboot_crypt(algo, enc, data, datasize, key, keysize, iv));
118 g_eli_crypto_encrypt(u_int algo, u_char *data, size_t datasize,
123 if (algo == CRYPTO_AES_XTS)
124 algo = CRYPTO_AES_CBC;
126 return (g_eli_crypto_cipher(algo, 1, data, datasize, key, keysize));
130 g_eli_crypto_decrypt(u_int algo, u_char *data, size_t datasize,
135 if (algo == CRYPTO_AES_XTS)
136 algo = CRYPTO_AES_CBC;
138 return (g_eli_crypto_cipher(algo, 0, data, datasize, key, keysize));