Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions host/xtest/regression_4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,9 @@ static const uint8_t hash_data_shake256_out2[] = {
* https://tools.ietf.org/html/draft-sca-cfrg-sm3-02
* Appendix A.1
*/
#if __has_attribute(nonstring)
__attribute__((nonstring))
#endif
static const uint8_t hash_data_sm3_a1_in[3] = "abc";

static const uint8_t hash_data_sm3_a1_out[] = {
Expand Down
6 changes: 6 additions & 0 deletions host/xtest/regression_4000_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -7914,6 +7914,9 @@ static struct derive_key_ecdh_t {
};

/* G/MT 0003 (SM2) Part 5 Annex C.2 - encryption/decryption */
#if __has_attribute(nonstring)
__attribute__((nonstring))
#endif
static const uint8_t gmt_0003_part5_c2_sm2_testvector_ptx[19] =
/* M */
"encryption standard";
Expand Down Expand Up @@ -8383,6 +8386,9 @@ static const uint8_t mac_data_sha3_512_out1[] = {
* GM/T 0042-2015
* Section D.3 Test vector 1
*/
#if __has_attribute(nonstring)
__attribute__((nonstring))
#endif
static const uint8_t mac_data_sm3_d31_in[112] =
"abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomn"
"opnopqabcdbcdecdefdefgefghfghighijhijkijkljklmklmn"
Expand Down