/dports/security/s2n/s2n-tls-1.1.2/tests/unit/ |
H A D | s2n_optional_client_auth_test.c | 73 …for (int cipher_idx = 0; cipher_idx < default_security_policy->cipher_preferences->count; cipher_i… in main() local 82 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 137 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 146 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 201 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 210 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 266 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 275 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 336 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 345 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() [all …]
|
H A D | s2n_mutual_auth_test.c | 79 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 91 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 139 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 150 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 194 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 205 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main() 254 for (int cipher_idx = 0; cipher_idx < default_cipher_preferences->count; cipher_idx++) { in main() local 265 struct s2n_cipher_suite *cur_cipher = default_cipher_preferences->suites[cipher_idx]; in main()
|
H A D | s2n_cipher_info_test.c | 41 for (size_t cipher_idx = 0; cipher_idx < cipher_preferences->count; cipher_idx++) { in main() local 42 struct s2n_cipher_suite *expected_cipher = cipher_preferences->suites[cipher_idx]; in main()
|
/dports/lang/sagittarius-scheme/sagittarius-0.9.8/ext/crypto/libtomcrypt/src/hashes/chc/ |
H A D | chc.c | 24 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable 77 cipher_idx = cipher; in chc_register() 96 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_init() 100 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init() 116 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key); in chc_init() 146 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key); in chc_compress() 177 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_process() 180 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process() 201 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_done() 204 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_done() [all …]
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/demos/ |
H A D | ltcrypt.c | 41 int cipher_idx, hash_idx, ks; in main() local 55 cipher_idx = find_cipher(cipher); in main() 56 if (cipher_idx == -1) { in main() 60 if (cipher_descriptor[cipher_idx].test) in main() 62 if (cipher_descriptor[cipher_idx].test() != CRYPT_OK) in main() 102 cipher_idx = find_cipher(cipher); in main() 103 if (cipher_idx == -1) { in main() 114 ivsize = cipher_descriptor[cipher_idx].block_length; in main() 116 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) { in main() 137 if ((err = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main() [all …]
|
H A D | encrypt.c | 102 int cipher_idx, hash_idx, ks; in main() local 139 cipher_idx = find_cipher(cipher); in main() 140 if (cipher_idx == -1) { in main() 151 ivsize = cipher_descriptor[cipher_idx].block_length; in main() 153 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) { in main() 173 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main() 215 if ((errno = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main()
|
H A D | timing.c | 1094 int err, cipher_idx, hash_idx; in time_macs_() local 1104 cipher_idx = find_cipher("aes"); in time_macs_() 1107 if (cipher_idx == -1 || hash_idx == -1) { in time_macs_() 1121 if ((err = omac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1137 if ((err = xcbc_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1153 if ((err = f9_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1169 if ((err = pmac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1231 int err, cipher_idx; in time_encmacs_() local 1242 cipher_idx = find_cipher("aes"); in time_encmacs_() 1311 cipher_descriptor[cipher_idx].setup(key, 16, 0, &skey); in time_encmacs_() [all …]
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/demos/ |
H A D | ltcrypt.c | 41 int cipher_idx, hash_idx, ks; in main() local 55 cipher_idx = find_cipher(cipher); in main() 56 if (cipher_idx == -1) { in main() 60 if (cipher_descriptor[cipher_idx].test) in main() 62 if (cipher_descriptor[cipher_idx].test() != CRYPT_OK) in main() 102 cipher_idx = find_cipher(cipher); in main() 103 if (cipher_idx == -1) { in main() 114 ivsize = cipher_descriptor[cipher_idx].block_length; in main() 116 if (cipher_descriptor[cipher_idx].keysize(&ks) != CRYPT_OK) { in main() 137 if ((err = ctr_start(cipher_idx,IV,key,ks,0,CTR_COUNTER_LITTLE_ENDIAN,&ctr)) != CRYPT_OK) { in main() [all …]
|
H A D | timing.c | 1094 int err, cipher_idx, hash_idx; in time_macs_() local 1104 cipher_idx = find_cipher("aes"); in time_macs_() 1107 if (cipher_idx == -1 || hash_idx == -1) { in time_macs_() 1121 if ((err = omac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1137 if ((err = xcbc_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1153 if ((err = f9_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1169 if ((err = pmac_memory(cipher_idx, key, 16, buf, MAC_SIZE*1024, tag, &z)) != CRYPT_OK) { in time_macs_() 1231 int err, cipher_idx; in time_encmacs_() local 1242 cipher_idx = find_cipher("aes"); in time_encmacs_() 1311 cipher_descriptor[cipher_idx].setup(key, 16, 0, &skey); in time_encmacs_() [all …]
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/src/hashes/chc/ |
H A D | chc.c | 22 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable 75 cipher_idx = cipher; in chc_register() 94 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_init() 98 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init() 114 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key); in chc_init() 144 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key); in chc_compress() 181 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_process() 184 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process() 205 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_done() 208 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_done() [all …]
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/src/hashes/chc/ |
H A D | chc.c | 22 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable 75 cipher_idx = cipher; in chc_register() 94 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_init() 98 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init() 114 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key); in chc_init() 144 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key); in chc_compress() 181 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_process() 184 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process() 205 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_done() 208 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_done() [all …]
|
/dports/security/p5-CryptX/CryptX-0.075/src/ltc/hashes/chc/ |
H A D | chc.c | 16 static int cipher_idx=UNDEFED_HASH, /* which cipher */ variable 69 cipher_idx = cipher; in chc_register() 88 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_init() 92 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_init() 108 cipher_descriptor[cipher_idx].ecb_encrypt(buf, md->chc.state, key); in chc_init() 138 cipher_descriptor[cipher_idx].ecb_encrypt(buf, T[0], key); in s_chc_compress() 175 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_process() 178 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_process() 199 if ((err = cipher_is_valid(cipher_idx)) != CRYPT_OK) { in chc_done() 202 if (cipher_blocksize != cipher_descriptor[cipher_idx].block_length) { in chc_done() [all …]
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/testprof/ |
H A D | modes_test.c | 7 int cipher_idx; in modes_test() local 25 cipher_idx = find_cipher("aes"); in modes_test() 26 if (cipher_idx == -1) { in modes_test() 42 DO(cbc_start(cipher_idx, iv, key, 16, 0, &cbc)); in modes_test() 64 DO(cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test() 87 DO(ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); in modes_test()
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/tests/ |
H A D | modes_test.c | 26 int cipher_idx; in modes_test() local 35 cipher_idx = find_cipher("aes"); in modes_test() 36 if (cipher_idx == -1) { in modes_test() 53 DO(ret = cbc_start(cipher_idx, iv, key, 16, 0, &cbc)); in modes_test() 75 DO(ret = cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test() 98 DO(ret = ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); in modes_test()
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/tests/ |
H A D | modes_test.c | 26 int cipher_idx; in modes_test() local 35 cipher_idx = find_cipher("aes"); in modes_test() 36 if (cipher_idx == -1) { in modes_test() 53 DO(ret = cbc_start(cipher_idx, iv, key, 16, 0, &cbc)); in modes_test() 75 DO(ret = cfb_start(cipher_idx, iv, key, 16, 0, &cfb)); in modes_test() 98 DO(ret = ofb_start(cipher_idx, iv, key, 16, 0, &ofb)); in modes_test()
|
/dports/databases/sqlcipher/sqlcipher-3.4.2/src/ |
H A D | crypto_libtomcrypt.c | 182 int rc, cipher_idx; in sqlcipher_ltc_cipher() local 185 if((cipher_idx = find_cipher(sqlcipher_ltc_get_cipher(ctx))) == -1) return SQLITE_ERROR; in sqlcipher_ltc_cipher() 186 if((rc = cbc_start(cipher_idx, iv, key, key_sz, 0, &cbc)) != CRYPT_OK) return SQLITE_ERROR; in sqlcipher_ltc_cipher() 198 int cipher_idx = find_cipher(sqlcipher_ltc_get_cipher(ctx)); in sqlcipher_ltc_get_key_sz() local 199 return cipher_descriptor[cipher_idx].max_key_length; in sqlcipher_ltc_get_key_sz() 203 int cipher_idx = find_cipher(sqlcipher_ltc_get_cipher(ctx)); in sqlcipher_ltc_get_iv_sz() local 204 return cipher_descriptor[cipher_idx].block_length; in sqlcipher_ltc_get_iv_sz() 208 int cipher_idx = find_cipher(sqlcipher_ltc_get_cipher(ctx)); in sqlcipher_ltc_get_block_sz() local 209 return cipher_descriptor[cipher_idx].block_length; in sqlcipher_ltc_get_block_sz()
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/src/mac/omac/ |
H A D | omac_process.c | 33 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_process() 44 unsigned long blklen = cipher_descriptor[omac->cipher_idx].block_length; in omac_process() 53 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) !=… in omac_process() 68 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) !… in omac_process()
|
H A D | omac_done.c | 33 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_done() 62 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->block, &omac->key)) … in omac_done() 65 cipher_descriptor[omac->cipher_idx].done(&omac->key); in omac_done()
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/src/mac/omac/ |
H A D | omac_process.c | 33 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_process() 44 unsigned long blklen = cipher_descriptor[omac->cipher_idx].block_length; in omac_process() 53 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) !=… in omac_process() 68 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) !… in omac_process()
|
H A D | omac_done.c | 33 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_done() 62 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->block, &omac->key)) … in omac_done() 65 cipher_descriptor[omac->cipher_idx].done(&omac->key); in omac_done()
|
/dports/security/p5-CryptX/CryptX-0.075/src/ltc/mac/omac/ |
H A D | omac_process.c | 27 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_process() 38 unsigned long blklen = cipher_descriptor[omac->cipher_idx].block_length; in omac_process() 47 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->prev, omac->prev, &omac->key)) !=… in omac_process() 62 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->prev, &omac->key)) !… in omac_process()
|
H A D | omac_done.c | 27 if ((err = cipher_is_valid(omac->cipher_idx)) != CRYPT_OK) { in omac_done() 56 …if ((err = cipher_descriptor[omac->cipher_idx].ecb_encrypt(omac->block, omac->block, &omac->key)) … in omac_done() 59 cipher_descriptor[omac->cipher_idx].done(&omac->key); in omac_done()
|
/dports/security/dropbear/dropbear-2020.81/libtomcrypt/src/mac/pmac/ |
H A D | pmac_done.c | 24 if ((err = cipher_is_valid(state->cipher_idx)) != CRYPT_OK) { in pmac_done() 50 …if ((err = cipher_descriptor[state->cipher_idx].ecb_encrypt(state->checksum, state->checksum, &sta… in pmac_done() 53 cipher_descriptor[state->cipher_idx].done(&state->key); in pmac_done()
|
/dports/security/libtomcrypt/libtomcrypt-1.18.2/src/mac/pmac/ |
H A D | pmac_done.c | 24 if ((err = cipher_is_valid(state->cipher_idx)) != CRYPT_OK) { in pmac_done() 50 …if ((err = cipher_descriptor[state->cipher_idx].ecb_encrypt(state->checksum, state->checksum, &sta… in pmac_done() 53 cipher_descriptor[state->cipher_idx].done(&state->key); in pmac_done()
|
/dports/security/p5-CryptX/CryptX-0.075/src/ltc/mac/pmac/ |
H A D | pmac_done.c | 18 if ((err = cipher_is_valid(pmac->cipher_idx)) != CRYPT_OK) { in pmac_done() 44 …if ((err = cipher_descriptor[pmac->cipher_idx].ecb_encrypt(pmac->checksum, pmac->checksum, &pmac->… in pmac_done() 47 cipher_descriptor[pmac->cipher_idx].done(&pmac->key); in pmac_done()
|