Home
last modified time | relevance | path

Searched refs:ctr (Results 1 – 25 of 162) sorted by relevance

1234567

/freebsd/crypto/openssl/providers/implementations/rands/
H A Ddrbg_ctr.c94 ctr->V[i] ^= in[i + ctr->keylen]; in ctr_XOR()
189 memset(ctr->bltmp + ctr->bltmp_pos, 0, 16 - ctr->bltmp_pos); in ctr_BCC_final()
190 if (!ctr_BCC_blocks(ctr, ctr->bltmp)) in ctr_BCC_final()
237 if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX, &outlen, ctr->KX + ctr->keylen, in ctr_df()
241 if (!EVP_CipherUpdate(ctr->ctx_ecb, ctr->KX + 16, &outlen, ctr->KX, in ctr_df()
283 memcpy(ctr->K, out, ctr->keylen); in ctr_update()
284 memcpy(ctr->V, out + ctr->keylen, 16); in ctr_update()
315 memset(ctr->K, 0, sizeof(ctr->K)); in drbg_ctr_instantiate()
316 memset(ctr->V, 0, sizeof(ctr->V)); in drbg_ctr_instantiate()
466 OPENSSL_cleanse(ctr->K, sizeof(ctr->K)); in drbg_ctr_uninstantiate()
[all …]
/freebsd/stand/arm64/libarm64/
H A Dcache.c43 get_cache_dic(uint64_t ctr) in get_cache_dic() argument
49 return (CTR_DIC_VAL(ctr) != 0); in get_cache_dic()
53 get_cache_idc(uint64_t ctr) in get_cache_idc() argument
59 return (CTR_IDC_VAL(ctr) != 0); in get_cache_idc()
71 dcl_size = CTR_DLINE_SIZE(ctr); in get_dcache_line_size()
80 uint64_t cl_size, ctr; in cpu_flush_dcache() local
84 ctr = READ_SPECIALREG(ctr_el0); in cpu_flush_dcache()
86 if (get_cache_idc(ctr)) { in cpu_flush_dcache()
108 uint64_t ctr; in cpu_inval_icache() local
111 ctr = READ_SPECIALREG(ctr_el0); in cpu_inval_icache()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_destroy_003_pos.ksh52 for obj in $ctr2 $ctr1 $ctr; do
74 ctr=$TESTPOOL/$TESTCTR
76 ctr2=$ctr/$TESTCTR2
78 child_fs=$ctr/$TESTFS1
82 child_vol=$ctr/$TESTVOL
86 child_fs_snap_clone=$ctr/$TESTCLONE
90 child_fs1_snap_clone1=$ctr/${TESTCLONE1}_across_ctr
95 log_must zfs create $ctr
133 for obj in $child_fs $child_fs1 $ctr $ctr1; do
151 log_must_busy zfs destroy -r $ctr
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/
H A Dzfs_destroy_003_pos.ksh59 for obj in $ctr2 $ctr1 $ctr; do
82 ctr=$TESTPOOL/$TESTCTR
84 ctr2=$ctr/$TESTCTR2
86 child_fs=$ctr/$TESTFS1
90 child_vol=$ctr/$TESTVOL
94 child_fs_snap_clone=$ctr/$TESTCLONE
98 child_fs1_snap_clone1=$ctr/${TESTCLONE1}_across_ctr
103 log_must $ZFS create $ctr
141 for obj in $child_fs $child_fs1 $ctr $ctr1; do
159 log_must $ZFS destroy -r $ctr
[all …]
/freebsd/contrib/bearssl/tools/
H A Dta.c91 print_ta_internals(br_x509_trust_anchor *ta, long ctr) in print_ta_internals() argument
95 sprintf(tmp, "TA%ld_DN", ctr); in print_ta_internals()
99 sprintf(tmp, "TA%ld_RSA_N", ctr); in print_ta_internals()
101 sprintf(tmp, "TA%ld_RSA_E", ctr); in print_ta_internals()
105 sprintf(tmp, "TA%ld_EC_Q", ctr); in print_ta_internals()
117 print_ta(br_x509_trust_anchor *ta, long ctr) in print_ta() argument
123 ctr, ctr); in print_ta()
134 " sizeof TA%ld_RSA_N,\n", ctr, ctr); in print_ta()
136 " sizeof TA%ld_RSA_E,\n", ctr, ctr); in print_ta()
149 " sizeof TA%ld_EC_Q,\n", ctr, ctr); in print_ta()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c130 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
147 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
149 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
153 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher()
172 out[i] = ctr[i] ^= in[i]; in chacha20_poly1305_tls_cipher()
177 out[i] = ctr[i] ^ c; in chacha20_poly1305_tls_cipher()
178 ctr[i] = c; in chacha20_poly1305_tls_cipher()
186 memset(ctr + i, 0, tail); in chacha20_poly1305_tls_cipher()
187 ctr += i + tail; in chacha20_poly1305_tls_cipher()
199 tohash = ctr; in chacha20_poly1305_tls_cipher()
[all …]
H A Dcipher_aes_siv_hw.c29 EVP_CIPHER_free(ctx->ctr); in aes_siv_initkey()
31 ctx->ctr = NULL; in aes_siv_initkey()
36 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-128-CTR", propq); in aes_siv_initkey()
40 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-192-CTR", propq); in aes_siv_initkey()
44 ctx->ctr = EVP_CIPHER_fetch(libctx, "AES-256-CTR", propq); in aes_siv_initkey()
49 if (ctx->cbc == NULL || ctx->ctr == NULL) in aes_siv_initkey()
55 return ossl_siv128_init(sctx, key, klen, ctx->cbc, ctx->ctr, libctx, in aes_siv_initkey()
72 if (out->ctr != NULL) in aes_siv_dupctx()
73 EVP_CIPHER_up_ref(out->ctr); in aes_siv_dupctx()
100 EVP_CIPHER_free(ctx->ctr); in aes_siv_cleanup()
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record.c1029 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1061 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1062 memmove(recs[ctr].data, recs[ctr].input, recs[ctr].length); in tls1_enc()
1063 recs[ctr].input = recs[ctr].data; in tls1_enc()
1081 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1082 reclen[ctr] = recs[ctr].length; in tls1_enc()
1155 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1156 data[ctr] = recs[ctr].data; in tls1_enc()
1164 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc()
1165 data[ctr] = recs[ctr].input; in tls1_enc()
[all …]
/freebsd/sys/crypto/openssl/arm/
H A Dossl_aes_gcm.c57 uint32_t ctr; in gcm_setiv() local
71 ctr = 1; in gcm_setiv()
77 ctr++; in gcm_setiv()
82 ctx->gcm.Yi.d[3] = ctr; in gcm_setiv()
182 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt()
207 ctr += (unsigned int)j; in gcm_encrypt()
211 ctx->gcm.Yi.d[3] = ctr; in gcm_encrypt()
224 ++ctr; in gcm_encrypt()
228 ctx->gcm.Yi.d[3] = ctr; in gcm_encrypt()
265 ctr = ctx->gcm.Yi.d[3]; in gcm_decrypt()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/
H A Dsnapshot_009_pos.ksh54 for ds in $ctr/$TESTVOL1 $ctr/$TESTCLONE; do
58 for snap in $ctr/$TESTFS1@$TESTSNAP1 \
69 ctr=$TESTPOOL/$TESTCTR
70 ctrfs=$ctr/$TESTFS1
71 ctrclone=$ctr/$TESTCLONE
72 ctrvol=$ctr/$TESTVOL1
75 snapctr=$ctr@$TESTSNAP
H A Dsnapshot_010_pos.ksh66 ctr=$TESTPOOL/$TESTCTR
67 ctrfs=$ctr/$TESTFS1
68 ctrvol=$ctr/$TESTVOL1
71 snapctr=$ctr@$TESTSNAP
73 snapctrvol=$ctr/$TESTVOL1@$TESTSNAP
74 snapctrclone=$ctr/$TESTCLONE@$TESTSNAP
H A Dsnapshot_012_pos.ksh72 ctr=$TESTPOOL/$TESTCTR
73 ctrfs=$ctr/$TESTFS1
74 clone=$ctr/$TESTCLONE
75 clone1=$ctr/$TESTCLONE1
78 snapctr=$ctr@$TESTSNAP
91 log_fail "'snapshot -r' fails to create $snapctrclone for $ctr/$TESTCLONE."
/freebsd/tests/sys/cddl/zfs/tests/snapshot/
H A Dsnapshot_009_pos.ksh61 for ds in $ctr/$TESTVOL1 $ctr/$TESTCLONE; do
66 for snap in $ctr/$TESTFS1@$TESTSNAP1 \
79 ctr=$TESTPOOL/$TESTCTR
80 ctrfs=$ctr/$TESTFS1
81 ctrclone=$ctr/$TESTCLONE
82 ctrvol=$ctr/$TESTVOL1
85 snapctr=$ctr@$TESTSNAP
H A Dsnapshot_010_pos.ksh75 ctr=$TESTPOOL/$TESTCTR
76 ctrfs=$ctr/$TESTFS1
77 ctrvol=$ctr/$TESTVOL1
80 snapctr=$ctr@$TESTSNAP
82 snapctrvol=$ctr/$TESTVOL1@$TESTSNAP
83 snapctrclone=$ctr/$TESTCLONE@$TESTSNAP
H A Dsnapshot_012_pos.ksh80 ctr=$TESTPOOL/$TESTCTR
81 ctrfs=$ctr/$TESTFS1
82 clone=$ctr/$TESTCLONE
83 clone1=$ctr/$TESTCLONE1
86 snapctr=$ctr@$TESTSNAP
99 log_fail "'snapshot -r' fails to create $snapctrclone for $ctr/$TESTCLONE."
/freebsd/crypto/openssl/crypto/modes/
H A Dgcm128.c819 unsigned int ctr; local
835 ctr = 1;
894 ++ctr;
1119 ++ctr;
1138 ++ctr;
1169 ++ctr;
1351 ++ctr;
1373 ++ctr;
1407 ++ctr;
1575 ++ctr;
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs/
H A Dzfs_002_pos.ksh53 for ds in $fs1 $fs $ctr; do
61 ctr=$TESTPOOL/$TESTCTR
62 log_must zfs create -p $ctr
65 corepath=/$ctr
69 fs=$ctr/$TESTFS
70 fs1=$ctr/$TESTFS1
72 clone=$ctr/$TESTCLONE
/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c225 ctr = buf + CHACHA_BLK_SIZE; in chacha20_poly1305_tls_cipher()
243 ctr = xor128_encrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
245 ctr = xor128_decrypt_n_pad(out, in, ctr, plen); in chacha20_poly1305_tls_cipher()
249 tohash_len = (size_t)(ctr - tohash); in chacha20_poly1305_tls_cipher()
268 out[i] = ctr[i] ^= in[i]; in chacha20_poly1305_tls_cipher()
273 out[i] = ctr[i] ^ c; in chacha20_poly1305_tls_cipher()
274 ctr[i] = c; in chacha20_poly1305_tls_cipher()
282 memset(ctr + i, 0, tail); in chacha20_poly1305_tls_cipher()
283 ctr += i + tail; in chacha20_poly1305_tls_cipher()
295 tohash = ctr; in chacha20_poly1305_tls_cipher()
[all …]
/freebsd/crypto/openssh/
H A Dcipher-aesctr.c33 aesctr_inc(u8 *ctr, u32 len) in aesctr_inc() argument
39 if (++ctr[i]) /* continue on overflow */ in aesctr_inc()
45 ctr[i] += add; in aesctr_inc()
47 x = ctr[i]; in aesctr_inc()
65 memcpy(x->ctr, iv, AES_BLOCK_SIZE); in aesctr_ivsetup()
76 rijndaelEncrypt(x->ek, x->rounds, x->ctr, buf); in aesctr_encrypt_bytes()
77 aesctr_inc(x->ctr, AES_BLOCK_SIZE); in aesctr_encrypt_bytes()
/freebsd/crypto/openssl/test/
H A Dtls13encryptiontest.c312 size_t ivlen, ctr; in test_tls13_encryption() local
348 for (ctr = 0; ctr < OSSL_NELEM(refdata); ctr++) { in test_tls13_encryption()
351 if (!load_record(&rec, &refdata[ctr], &key, s->read_iv, ivlen, in test_tls13_encryption()
372 TEST_info("Failed to encrypt record %zu", ctr); in test_tls13_encryption()
375 if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) { in test_tls13_encryption()
376 TEST_info("Record %zu encryption test failed", ctr); in test_tls13_encryption()
382 TEST_info("Failed to decrypt record %zu", ctr); in test_tls13_encryption()
385 if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) { in test_tls13_encryption()
386 TEST_info("Record %zu decryption test failed", ctr); in test_tls13_encryption()
400 TEST_note("PASS: %zu records tested", ctr); in test_tls13_encryption()
/freebsd/sys/crypto/openssl/amd64/
H A Dossl_aes_gcm.c253 uint32_t ctr; in gcm_setiv_aesni() local
267 ctr = 1; in gcm_setiv_aesni()
273 ctr++; in gcm_setiv_aesni()
278 ctx->gcm.Yi.d[3] = ctr; in gcm_setiv_aesni()
351 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt()
359 ++ctr; in gcm_encrypt()
400 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt_ctr32()
439 ++ctr; in gcm_encrypt_ctr32()
502 ctr = ctx->gcm.Yi.d[3]; in gcm_decrypt()
511 ++ctr; in gcm_decrypt()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_002_pos.ksh52 datasetexists $ctr && destroy_dataset $ctr -r
70 log_must eval "zfs receive -d $ctr <$stream"
99 ctr=$TESTPOOL/$TESTCTR
101 rstfs=$ctr/$TESTFS
103 ds_path=$ctr/${ZONE_CTR}0
119 log_must zfs create $ctr
/freebsd/sys/dev/neta/
H A Dif_mvnetavar.h176 tx_counter_adv(int ctr, int n) in tx_counter_adv() argument
179 ctr += n; in tx_counter_adv()
180 while (__predict_false(ctr >= MVNETA_TX_RING_CNT)) in tx_counter_adv()
181 ctr -= MVNETA_TX_RING_CNT; in tx_counter_adv()
183 return (ctr); in tx_counter_adv()
187 rx_counter_adv(int ctr, int n) in rx_counter_adv() argument
190 ctr += n; in rx_counter_adv()
191 while (__predict_false(ctr >= MVNETA_RX_RING_CNT)) in rx_counter_adv()
192 ctr -= MVNETA_RX_RING_CNT; in rx_counter_adv()
194 return (ctr); in rx_counter_adv()
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_send/
H A Dzfs_send_002_pos.ksh62 datasetexists $ctr && \
63 log_must $ZFS destroy -r $ctr
83 $ZFS receive -d $ctr <$stream
114 ctr=$TESTPOOL/$TESTCTR
116 rstfs=$ctr/$TESTFS
118 ds_path=$ctr/${ZONE_CTR}0
134 log_must $ZFS create $ctr
/freebsd/contrib/bearssl/inc/
H A Dbearssl_block.h670 void *ctr, void *data, size_t len);
876 void *ctr, void *cbcmac, void *data, size_t len);
888 void *ctr, void *cbcmac, void *data, size_t len);
899 void *ctr, void *data, size_t len);
1096 void *ctr, void *cbcmac, void *data, size_t len);
1108 void *ctr, void *cbcmac, void *data, size_t len);
1119 void *ctr, void *data, size_t len);
1338 void *ctr, void *data, size_t len);
1559 void *ctr, void *data, size_t len);
1799 void *ctr, void *data, size_t len);
[all …]

1234567