Mercurial > dropbear
view libtomcrypt/src/modes/xts/xts_test.c @ 1435:f849a5ca2efc
update to libtomcrypt 1.17 (with Dropbear changes)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 24 Jun 2017 17:50:50 +0800 |
parents | |
children | 6dba84798cd5 |
line wrap: on
line source
/* LibTomCrypt, modular cryptographic library -- Tom St Denis * * LibTomCrypt is a library that provides various cryptographic * algorithms in a highly modular and flexible manner. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, [email protected], http://libtom.org */ #include "tomcrypt.h" #ifdef LTC_XTS_MODE /** Source donated by Elliptic Semiconductor Inc (www.ellipticsemi.com) to the LibTom Projects Returns CRYPT_OK upon success. */ int xts_test(void) { #ifdef LTC_NO_TEST return CRYPT_NOP; #else static const struct { int keylen; unsigned char key1[32]; unsigned char key2[32]; ulong64 seqnum; unsigned long PTLEN; unsigned char PTX[512], CTX[512]; } tests[] = {