26c26
< * $FreeBSD: head/sys/geom/eli/g_eli.h 213067 2010-09-23 11:49:47Z pjd $
---
> * $FreeBSD: head/sys/geom/eli/g_eli.h 213070 2010-09-23 11:58:36Z pjd $
63c63
< * 5 - Added multiple encrypton keys.
---
> * 5 - Added multiple encrypton keys and AES-XTS support.
296a297,298
> else if (strcasecmp("null-cbc", name) == 0)
> return (CRYPTO_NULL_CBC);
297a300,301
> return (CRYPTO_AES_XTS);
> else if (strcasecmp("aes-cbc", name) == 0)
298a303,304
> else if (strcasecmp("aes-xts", name) == 0)
> return (CRYPTO_AES_XTS);
300a307,308
> else if (strcasecmp("blowfish-cbc", name) == 0)
> return (CRYPTO_BLF_CBC);
302a311,312
> else if (strcasecmp("camellia-cbc", name) == 0)
> return (CRYPTO_CAMELLIA_CBC);
304a315,316
> else if (strcasecmp("3des-cbc", name) == 0)
> return (CRYPTO_3DES_CBC);
335a348,349
> case CRYPTO_AES_XTS:
> return ("AES-XTS");
420a435,444
> case CRYPTO_AES_XTS:
> switch (keylen) {
> case 0:
> return (128);
> case 128:
> case 256:
> return (keylen);
> default:
> return (0);
> }
< * $FreeBSD: head/sys/geom/eli/g_eli.h 213067 2010-09-23 11:49:47Z pjd $
---
> * $FreeBSD: head/sys/geom/eli/g_eli.h 213070 2010-09-23 11:58:36Z pjd $
63c63
< * 5 - Added multiple encrypton keys.
---
> * 5 - Added multiple encrypton keys and AES-XTS support.
296a297,298
> else if (strcasecmp("null-cbc", name) == 0)
> return (CRYPTO_NULL_CBC);
297a300,301
> return (CRYPTO_AES_XTS);
> else if (strcasecmp("aes-cbc", name) == 0)
298a303,304
> else if (strcasecmp("aes-xts", name) == 0)
> return (CRYPTO_AES_XTS);
300a307,308
> else if (strcasecmp("blowfish-cbc", name) == 0)
> return (CRYPTO_BLF_CBC);
302a311,312
> else if (strcasecmp("camellia-cbc", name) == 0)
> return (CRYPTO_CAMELLIA_CBC);
304a315,316
> else if (strcasecmp("3des-cbc", name) == 0)
> return (CRYPTO_3DES_CBC);
335a348,349
> case CRYPTO_AES_XTS:
> return ("AES-XTS");
420a435,444
> case CRYPTO_AES_XTS:
> switch (keylen) {
> case 0:
> return (128);
> case 128:
> case 256:
> return (keylen);
> default:
> return (0);
> }