libtomcrypt/tests
James Muir d5db9f1548 Add new utf8 test-vector, update comments explaining utf8 decoding
Description:
Minor changes to help test and clarify the way utf8 strings are
decoded.  This originated from my misunderstanding of the fix for
issue #507.  The new test-vector uses two bytes to encode each
wide-char.

The utf8 format is described here:

  https://tools.ietf.org/html/rfc3629#section-3

Testing:

  $ make clean
  $ make CFLAGS="-DUSE_LTM -DLTM_DESC -I../libtommath" EXTRALIBS="../libtommath/libtommath.a" test
  $ ./test

You can confirm that the new utf8 test data is correct using python:

  >>> s="\xD7\xA9\xD7\x9C\xD7\x95\xD7\x9D"
  >>> s.decode("utf-8")
  u'\u05e9\u05dc\u05d5\u05dd'
2024-02-18 17:02:06 +00:00
..
asn1 add testvectors from [1] 2018-02-25 20:42:26 +01:00
rsa add testvectors from [1] 2018-02-25 20:42:26 +01:00
rsa-pkcs8 add more rsa-pkcs8 PBES2-RC2 test-files 2018-10-06 23:04:51 +02:00
base16_test.c update header 2020-07-14 18:41:30 +02:00
base32_test.c update header 2020-07-14 18:41:30 +02:00
base64_test.c update header 2020-07-14 18:41:30 +02:00
bcrypt_test.c update header 2020-07-14 18:41:30 +02:00
cipher_hash_test.c update header 2020-07-14 18:41:30 +02:00
common.c update header 2020-07-14 18:41:30 +02:00
common.h update header 2020-07-14 18:41:30 +02:00
der_test.c Add new utf8 test-vector, update comments explaining utf8 decoding 2024-02-18 17:02:06 +00:00
dh_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
dsa_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
ecc_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
ed25519_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
file_test.c update header 2020-07-14 18:41:30 +02:00
mac_test.c update header 2020-07-14 18:41:30 +02:00
misc_test.c update header 2020-07-14 18:41:30 +02:00
modes_test.c update header 2020-07-14 18:41:30 +02:00
mpi_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
multi_test.c update header 2020-07-14 18:41:30 +02:00
no_prng.c update header 2020-07-14 18:41:30 +02:00
padding_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
pkcs_1_eme_test.c update header 2020-07-14 18:41:30 +02:00
pkcs_1_emsa_test.c update header 2020-07-14 18:41:30 +02:00
pkcs_1_oaep_test.c update header 2020-07-14 18:41:30 +02:00
pkcs_1_pss_test.c update header 2020-07-14 18:41:30 +02:00
pkcs_1_test.c update header 2020-07-14 18:41:30 +02:00
prng_test.c update header 2020-07-14 18:41:30 +02:00
rotate_test.c update header 2020-07-14 18:41:30 +02:00
rsa_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
ssh_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
store_test.c update header 2020-07-14 18:41:30 +02:00
test_dsa.key rename 'testprof/' to 'tests/' 2017-06-08 22:20:45 +02:00
test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
test.der rename 'testprof/' to 'tests/' 2017-06-08 22:20:45 +02:00
test.key rename 'testprof/' to 'tests/' 2017-06-08 22:20:45 +02:00
tomcrypt_test.h manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00
x25519_test.c manually fix the remaining leading _'s 2020-07-16 10:38:33 +02:00