/dports/security/rnp/rnp-0.15.2/src/tests/ |
H A D | key-grip.cpp | 54 rnp::hex_decode("552286BEB2999F0A9E26A50385B90D9724001187", grip.data(), grip.size())); in TEST_F() 58 rnp::hex_decode("A5E4CD2CBBE44A16E4D6EC05C2E3C3A599DC763C", grip.data(), grip.size())); in TEST_F() 64 rnp::hex_decode("D148210FAF36468055B83D0F5A6DEB83FBC8E864", grip.data(), grip.size())); in TEST_F() 68 rnp::hex_decode("CED7034A8EB5F4CE90DF99147EC33D86FCD3296C", grip.data(), grip.size())); in TEST_F() 74 rnp::hex_decode("940D97D75C306D737A59A98EAFF1272832CEDC0B", grip.data(), grip.size())); in TEST_F() 80 rnp::hex_decode("A77DC8173DA6BEE126F5BD6F5A14E01200B52FCE", grip.data(), grip.size())); in TEST_F() 84 rnp::hex_decode("636C983EDB558527BA82780B52CB5DAE011BE46B", grip.data(), grip.size())); in TEST_F() 90 rnp::hex_decode("FC81AECE90BCE6E54D0D637D266109783AC8DAC0", grip.data(), grip.size())); in TEST_F() 94 rnp::hex_decode("A56DC8DB8355747A809037459B4258B8A743EAB5", grip.data(), grip.size())); in TEST_F() 100 rnp::hex_decode("A1338230AED1C9C125663518470B49056C9D1733", grip.data(), grip.size())); in TEST_F() [all …]
|
H A D | utils-hex2bin.cpp | 34 assert_int_equal(rnp::hex_decode("0xfeedbeef", buf, sizeof(buf)), 4); in TEST_F() 40 assert_int_equal(rnp::hex_decode("0XFEEDBEEF", buf, sizeof(buf)), 4); in TEST_F() 46 assert_int_equal(rnp::hex_decode("feedbeef", buf, sizeof(buf)), 4); in TEST_F() 52 assert_int_equal(rnp::hex_decode("4be1 47bb 22df 1e60", buf, sizeof(buf)), in TEST_F() 59 assert_int_equal(rnp::hex_decode(" 4be147bb\t22df1e60 ", buf, sizeof(buf)), in TEST_F() 66 assert_int_equal(rnp::hex_decode("4be147bb22df1e60 ", buf, sizeof(buf)), 0); in TEST_F()
|
H A D | load-pgp.cpp | 201 assert_true(rnp::hex_decode("7BC6709B15C23A4A", keyid.data(), keyid.size())); in TEST_F() 222 assert_true(rnp::hex_decode("1ED63EE56FADC34D", keyid.data(), keyid.size())); in TEST_F() 229 assert_true(rnp::hex_decode("7BC6709B15C23A4A", keyid.data(), keyid.size())); in TEST_F() 241 assert_true(rnp::hex_decode("1D7E8A5393C997A8", keyid.data(), keyid.size())); in TEST_F() 248 assert_true(rnp::hex_decode("7BC6709B15C23A4A", keyid.data(), keyid.size())); in TEST_F() 260 assert_true(rnp::hex_decode("8A05B89FAD5ADED1", keyid.data(), keyid.size())); in TEST_F() 267 assert_true(rnp::hex_decode("7BC6709B15C23A4A", keyid.data(), keyid.size())); in TEST_F() 279 assert_true(rnp::hex_decode("2FCADF05FFA501BB", keyid.data(), keyid.size())); in TEST_F() 302 assert_true(rnp::hex_decode("54505A936A4A970E", keyid.data(), keyid.size())); in TEST_F() 309 assert_true(rnp::hex_decode("2FCADF05FFA501BB", keyid.data(), keyid.size())); in TEST_F() [all …]
|
/dports/devel/string_theory/string_theory-3.4/test/ |
H A D | test_codecs.cpp | 99 TEST(codecs, hex_decode) in TEST() argument 101 EXPECT_EQ(empty_buf, ST::hex_decode(ST::string())); in TEST() 107 EXPECT_EQ(cbuf(data_1), ST::hex_decode(ST_LITERAL("01"))); in TEST() 108 EXPECT_EQ(cbuf(data_2), ST::hex_decode(ST_LITERAL("0102"))); in TEST() 109 EXPECT_EQ(cbuf(data_3), ST::hex_decode(ST_LITERAL("010203"))); in TEST() 122 EXPECT_EQ(0, ST::hex_decode(ST::string(), nullptr, 0)); in TEST() 139 ST::hex_decode(ST_LITERAL("01020304"), nullptr, 0)); in TEST() 145 ST::hex_decode(ST_LITERAL("01"), nullptr, 0)); in TEST() 150 ST::hex_decode(ST_LITERAL("0102"), nullptr, 0)); in TEST() 155 ST::hex_decode(ST_LITERAL("010203"), nullptr, 0)); in TEST() [all …]
|
/dports/security/botan110/Botan-1.10.17/checks/ |
H A D | ec_tests.cpp | 79 SecureVector<byte> sv_p_secp = hex_decode(p_secp); in test_point_turn_on_sp_red_mul() 80 SecureVector<byte> sv_a_secp = hex_decode(a_secp); in test_point_turn_on_sp_red_mul() 81 SecureVector<byte> sv_b_secp = hex_decode(b_secp); in test_point_turn_on_sp_red_mul() 142 SecureVector<byte> sv_p_secp = hex_decode ( p_secp ); in test_coordinates() 143 SecureVector<byte> sv_a_secp = hex_decode ( a_secp ); in test_coordinates() 144 SecureVector<byte> sv_b_secp = hex_decode ( b_secp ); in test_coordinates() 218 SecureVector<byte> sv_p_secp = hex_decode ( p_secp ); in test_point_negative() 219 SecureVector<byte> sv_a_secp = hex_decode ( a_secp ); in test_point_negative() 220 SecureVector<byte> sv_b_secp = hex_decode ( b_secp ); in test_point_negative() 330 SecureVector<byte> sv_p_secp = hex_decode ( p_secp ); in test_add_point() [all …]
|
H A D | pk.cpp | 164 SecureVector<byte> expected = hex_decode(exp); in validate_encryption() 165 Fixed_Output_RNG rng(hex_decode(random)); in validate_encryption() 185 SecureVector<byte> expected = hex_decode(exp); in validate_signature() 217 Fixed_Output_RNG rng(hex_decode(random)); in validate_signature() 376 SecureVector<byte> msg = hex_decode(str[2]); in validate_rsa_ver() 377 SecureVector<byte> sig = hex_decode(str[3]); in validate_rsa_ver() 408 SecureVector<byte> msg = hex_decode(str[1]); in validate_rsa_ver_x509() 409 SecureVector<byte> sig = hex_decode(str[2]); in validate_rsa_ver_x509() 432 SecureVector<byte> msg = hex_decode(str[2]); in validate_rw_ver() 433 SecureVector<byte> sig = hex_decode(str[3]); in validate_rw_ver() [all …]
|
/dports/security/botan110/Botan-1.10.17/src/codec/hex/ |
H A D | hex.cpp | 55 size_t hex_decode(byte output[], in hex_decode() function 146 size_t hex_decode(byte output[], in hex_decode() function 152 size_t written = hex_decode(output, input, input_length, in hex_decode() 161 size_t hex_decode(byte output[], in hex_decode() function 165 return hex_decode(output, &input[0], input.length(), ignore_ws); in hex_decode() 168 SecureVector<byte> hex_decode(const char input[], in hex_decode() function 174 size_t written = hex_decode(&bin[0], in hex_decode() 183 SecureVector<byte> hex_decode(const std::string& input, in hex_decode() function 186 return hex_decode(&input[0], input.size(), ignore_ws); in hex_decode()
|
H A D | hex.h | 61 size_t BOTAN_DLL hex_decode(byte output[], 76 size_t BOTAN_DLL hex_decode(byte output[], 89 size_t BOTAN_DLL hex_decode(byte output[], 101 SecureVector<byte> BOTAN_DLL hex_decode(const char input[], 112 SecureVector<byte> BOTAN_DLL hex_decode(const std::string& input,
|
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/rnp/src/tests/ |
H A D | utils-hex2bin.cpp | 34 assert_int_equal(rnp::hex_decode("0xfeedbeef", buf, sizeof(buf)), 4); in TEST_F() 40 assert_int_equal(rnp::hex_decode("0XFEEDBEEF", buf, sizeof(buf)), 4); in TEST_F() 46 assert_int_equal(rnp::hex_decode("feedbeef", buf, sizeof(buf)), 4); in TEST_F() 52 assert_int_equal(rnp::hex_decode("4be1 47bb 22df 1e60", buf, sizeof(buf)), in TEST_F() 59 assert_int_equal(rnp::hex_decode(" 4be147bb\t22df1e60 ", buf, sizeof(buf)), in TEST_F() 66 assert_int_equal(rnp::hex_decode("4be147bb22df1e60 ", buf, sizeof(buf)), 0); in TEST_F()
|
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/codec/hex/ |
H A D | hex.cpp | 89 size_t hex_decode(uint8_t output[], in hex_decode() function 146 size_t hex_decode(uint8_t output[], in hex_decode() function 152 size_t written = hex_decode(output, input, input_length, in hex_decode() 161 size_t hex_decode(uint8_t output[], in hex_decode() function 165 return hex_decode(output, input.data(), input.length(), ignore_ws); in hex_decode() 174 size_t written = hex_decode(bin.data(), in hex_decode_locked() 189 std::vector<uint8_t> hex_decode(const char input[], in hex_decode() function 195 size_t written = hex_decode(bin.data(), in hex_decode() 204 std::vector<uint8_t> hex_decode(const std::string& input, in hex_decode() function 207 return hex_decode(input.data(), input.size(), ignore_ws); in hex_decode()
|
H A D | hex.h | 65 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 80 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 93 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 106 hex_decode(const char input[], 118 hex_decode(const std::string& input,
|
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/codec/hex/ |
H A D | hex.cpp | 89 size_t hex_decode(uint8_t output[], in hex_decode() function 146 size_t hex_decode(uint8_t output[], in hex_decode() function 152 size_t written = hex_decode(output, input, input_length, in hex_decode() 161 size_t hex_decode(uint8_t output[], in hex_decode() function 165 return hex_decode(output, input.data(), input.length(), ignore_ws); in hex_decode() 174 size_t written = hex_decode(bin.data(), in hex_decode_locked() 189 std::vector<uint8_t> hex_decode(const char input[], in hex_decode() function 195 size_t written = hex_decode(bin.data(), in hex_decode() 204 std::vector<uint8_t> hex_decode(const std::string& input, in hex_decode() function 207 return hex_decode(input.data(), input.size(), ignore_ws); in hex_decode()
|
H A D | hex.h | 65 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 80 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 93 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 106 hex_decode(const char input[], 118 hex_decode(const std::string& input,
|
/dports/security/botan2/Botan-2.18.2/src/lib/codec/hex/ |
H A D | hex.cpp | 89 size_t hex_decode(uint8_t output[], in hex_decode() function 146 size_t hex_decode(uint8_t output[], in hex_decode() function 152 size_t written = hex_decode(output, input, input_length, in hex_decode() 161 size_t hex_decode(uint8_t output[], in hex_decode() function 165 return hex_decode(output, input.data(), input.length(), ignore_ws); in hex_decode() 174 size_t written = hex_decode(bin.data(), in hex_decode_locked() 189 std::vector<uint8_t> hex_decode(const char input[], in hex_decode() function 195 size_t written = hex_decode(bin.data(), in hex_decode() 204 std::vector<uint8_t> hex_decode(const std::string& input, in hex_decode() function 207 return hex_decode(input.data(), input.size(), ignore_ws); in hex_decode()
|
H A D | hex.h | 65 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 80 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 93 size_t BOTAN_PUBLIC_API(2,0) hex_decode(uint8_t output[], 106 hex_decode(const char input[], 118 hex_decode(const std::string& input,
|
/dports/security/py-libnacl/libnacl-1.6.1/libnacl/ |
H A D | utils.py | 41 libnacl.encode.hex_decode(key_data['priv']), 42 libnacl.encode.hex_decode(key_data['sign'])) 45 libnacl.encode.hex_decode(key_data['priv'])) 48 libnacl.encode.hex_decode(key_data['sign'])) 51 libnacl.encode.hex_decode(key_data['pub'])) 56 libnacl.encode.hex_decode(key_data['priv']))
|
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/tests/ |
H A D | test_sodium.cpp | 202 const std::vector<uint8_t> nonce = Botan::hex_decode("0000000000000000"); in aead_chacha20poly1305() 364 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha512() 389 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha512256() 412 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha256() 571 const std::vector<uint8_t> nonce = Botan::hex_decode("288FF65DC42B92F9"); in stream_salsa20() 572 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_salsa20() 592 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_xsalsa20() 611 const std::vector<uint8_t> nonce = Botan::hex_decode("0001020304050607"); in stream_chacha20() 612 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_chacha20() 632 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_chacha20_ietf() [all …]
|
H A D | test_certstor_utils.cpp | 20 Botan::BER_Decoder decoder(Botan::hex_decode(hex)); in read_dn() 49 return Botan::hex_decode("c4a7b1a47b2c71fadbe14b9075ffc41560858910"); in get_key_id() 77 return Botan::hex_decode("785c0b67b536eeacbb2b27cf9123301abe7ab09a"); in get_unknown_key_id()
|
/dports/security/botan2/Botan-2.18.2/src/tests/ |
H A D | test_sodium.cpp | 202 const std::vector<uint8_t> nonce = Botan::hex_decode("0000000000000000"); in aead_chacha20poly1305() 364 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha512() 389 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha512256() 412 const std::vector<uint8_t> in = Botan::hex_decode("616263"); in auth_hmacsha256() 571 const std::vector<uint8_t> nonce = Botan::hex_decode("288FF65DC42B92F9"); in stream_salsa20() 572 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_salsa20() 592 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_xsalsa20() 611 const std::vector<uint8_t> nonce = Botan::hex_decode("0001020304050607"); in stream_chacha20() 612 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_chacha20() 632 const std::vector<uint8_t> expected = Botan::hex_decode( in stream_chacha20_ietf() [all …]
|
H A D | test_certstor_utils.cpp | 20 Botan::BER_Decoder decoder(Botan::hex_decode(hex)); in read_dn() 49 return Botan::hex_decode("79B459E67BB6E5E40173800888C81A58F6E99B6E"); in get_key_id() 110 return Botan::hex_decode("785c0b67b536eeacbb2b27cf9123301abe7ab09a"); in get_unknown_key_id()
|
/dports/net-p2p/c-lightning/lightning-0.10.2/external/libwally-core/src/ccan/ccan/str/hex/test/ |
H A D | run.c | 24 ok1(hex_decode(teststr, strlen(teststr), data, sizeof(data))); in main() 30 ok1(!hex_decode(bad_teststr, strlen(bad_teststr), data, sizeof(data))); in main() 32 ok1(!hex_decode(teststr, strlen(teststr) - 1, data, sizeof(data))); in main() 34 ok1(!hex_decode(teststr, strlen(teststr), data, sizeof(data) - 1)); in main()
|
/dports/net-p2p/c-lightning/lightning-0.10.2/ccan/ccan/str/hex/test/ |
H A D | run.c | 24 ok1(hex_decode(teststr, strlen(teststr), data, sizeof(data))); in main() 30 ok1(!hex_decode(bad_teststr, strlen(bad_teststr), data, sizeof(data))); in main() 32 ok1(!hex_decode(teststr, strlen(teststr) - 1, data, sizeof(data))); in main() 34 ok1(!hex_decode(teststr, strlen(teststr), data, sizeof(data) - 1)); in main()
|
/dports/security/openssl-unsafe/openssl-c9ba19c/crypto/poly1305/ |
H A D | poly1305test.c | 102 static void hex_decode(unsigned char *out, const char* hex) in hex_decode() function 144 hex_decode(key, test->keyhex); in main() 145 hex_decode(expected, test->outhex); in main() 149 hex_decode(in, test->inputhex); in main()
|
/dports/devel/string_theory/string_theory-3.4/include/ |
H A D | st_codecs.h | 49 inline ST_ssize_t hex_decode(const string &hex, void *output, in hex_decode() function 52 return _ST_PRIVATE::hex_decode(hex, output, output_size); in hex_decode() 55 inline char_buffer hex_decode(const string &hex) in hex_decode() function 63 ST_ssize_t written = _ST_PRIVATE::hex_decode(hex, result.data(), decode_size); in hex_decode()
|
/dports/security/openssl-unsafe/openssl-c9ba19c/crypto/chacha/ |
H A D | chachatest.c | 120 static void hex_decode(unsigned char *out, const char* hex) in hex_decode() function 174 hex_decode(key, test->keyhex); in main() 175 hex_decode(nonce, test->noncehex); in main() 185 hex_decode(expected, test->outhex); in main()
|