| /freebsd/crypto/openssl/providers/implementations/rands/ |
| H A D | drbg_ctr.c | 64 static void inc_128(PROV_DRBG_CTR *ctr) in inc_128() argument 66 unsigned char *p = &ctr->V[0]; in inc_128() 77 static void ctr_XOR(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument 88 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR() 89 if (!ossl_assert(n <= sizeof(ctr->K))) in ctr_XOR() 92 ctr->K[i] ^= in[i]; in ctr_XOR() 93 if (inlen <= ctr->keylen) in ctr_XOR() 96 n = inlen - ctr->keylen; in ctr_XOR() 102 ctr->V[i] ^= in[i + ctr->keylen]; in ctr_XOR() 108 __owur static int ctr_BCC_block(PROV_DRBG_CTR *ctr, unsigned char *out, in ctr_BCC_block() argument [all …]
|
| /freebsd/crypto/openssl/ssl/record/methods/ |
| H A D | tls1_meth.c | 176 size_t bs, ctr, padnum, loop; in tls1_cipher() local 211 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_cipher() 212 if (recs[ctr].data != recs[ctr].input) { in tls1_cipher() 215 } else if (RAND_bytes_ex(rl->libctx, recs[ctr].input, in tls1_cipher() 248 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_cipher() 249 reclen[ctr] = recs[ctr].length; in tls1_cipher() 262 memcpy(buf[ctr], dtlsseq, 8); in tls1_cipher() 264 memcpy(buf[ctr], seq, 8); in tls1_cipher() 271 buf[ctr][8] = recs[ctr].type; in tls1_cipher() 272 buf[ctr][9] = (unsigned char)(rl->version >> 8); in tls1_cipher() [all …]
|
| /freebsd/stand/arm64/libarm64/ |
| H A D | cache.c | 43 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() 63 get_dcache_line_size(uint64_t ctr) in get_dcache_line_size() argument 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() 89 cl_size = get_dcache_line_size(ctr); in cpu_flush_dcache() [all …]
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_chacha20_poly1305_hw.c | 125 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 130 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() [all …]
|
| H A D | cipher_aes_siv_hw.c | 29 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() 66 if (in->ctr != NULL && !EVP_CIPHER_up_ref(in->ctr)) { in aes_siv_dupctx() 104 EVP_CIPHER_free(ctx->ctr); in aes_siv_cleanup()
|
| /freebsd/contrib/bearssl/tools/ |
| H A D | ta.c | 91 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/crypto/modes/ |
| H A D | gcm128.c | 635 unsigned int ctr; in CRYPTO_gcm128_setiv() local 648 ctr = 1; in CRYPTO_gcm128_setiv() 691 ctr = BSWAP4(ctx->Xi.d[3]); in CRYPTO_gcm128_setiv() 693 ctr = GETU32(ctx->Xi.c + 12); in CRYPTO_gcm128_setiv() 696 ctr = ctx->Xi.d[3]; in CRYPTO_gcm128_setiv() 707 ++ctr; in CRYPTO_gcm128_setiv() 710 ctx->Yi.d[3] = BSWAP4(ctr); in CRYPTO_gcm128_setiv() 712 PUTU32(ctx->Yi.c + 12, ctr); in CRYPTO_gcm128_setiv() 715 ctx->Yi.d[3] = ctr; in CRYPTO_gcm128_setiv() 777 unsigned int n, ctr, mres; in CRYPTO_gcm128_encrypt() local [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_destroy/ |
| H A D | zfs_destroy_003_pos.ksh | 59 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/ |
| H A D | zfs_destroy_003_pos.ksh | 53 for obj in $ctr2 $ctr1 $ctr; do 75 ctr=$TESTPOOL/$TESTCTR 77 ctr2=$ctr/$TESTCTR2 79 child_fs=$ctr/$TESTFS1 83 child_vol=$ctr/$TESTVOL 87 child_fs_snap_clone=$ctr/$TESTCLONE 91 child_fs1_snap_clone1=$ctr/${TESTCLONE1}_across_ctr 96 log_must zfs create $ctr 134 for obj in $child_fs $child_fs1 $ctr $ctr1; do 152 log_must_busy zfs destroy -r $ctr [all …]
|
| /freebsd/crypto/openssl/crypto/sm4/asm/ |
| H A D | sm4-armv8.pl | 501 my ($ctr)=("w5"); 519 mov $ctr,$ivec.s[3] 528 add $ctr,$ctr,#1 529 mov $dat[1].s[3],$ctr 530 add $ctr,$ctr,#1 531 mov @dat[2].s[3],$ctr 532 add $ctr,$ctr,#1 533 mov @dat[3].s[3],$ctr 541 add $ctr,$ctr,#1 542 mov $dat[4].s[3],$ctr [all …]
|
| /freebsd/sys/crypto/openssl/arm/ |
| H A D | ossl_aes_gcm_neon.c | 57 uint32_t ctr; in gcm_setiv() local 71 ctr = 1; in gcm_setiv() 77 ctr++; in gcm_setiv() 80 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_setiv() 82 ctx->gcm.Yi.d[3] = ctr; in gcm_setiv() 161 unsigned int n, ctr, mres; in gcm_encrypt() local 180 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt() 182 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt() 207 ctr += (unsigned int)j; in gcm_encrypt() 209 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt() [all …]
|
| /freebsd/crypto/openssl/crypto/evp/ |
| H A D | e_chacha20_poly1305.c | 219 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; in chacha20_poly1305_tls_cipher() local 225 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() [all …]
|
| /freebsd/sys/crypto/openssl/ |
| H A D | ossl_aes_gcm.c | 180 uint32_t ctr; in gcm_setiv_op() local 194 ctr = 1; in gcm_setiv_op() 200 ctr++; in gcm_setiv_op() 203 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_setiv_op() 205 ctx->gcm.Yi.d[3] = ctr; in gcm_setiv_op() 258 unsigned int n, ctr, mres; in gcm_encrypt() local 276 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt() 278 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt() 286 ++ctr; in gcm_encrypt() 288 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt() [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/snapshot/ |
| H A D | snapshot_009_pos.ksh | 61 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 D | snapshot_010_pos.ksh | 75 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
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
| H A D | snapshot_009_pos.ksh | 55 for ds in $ctr/$TESTVOL1 $ctr/$TESTCLONE; do 59 for snap in $ctr/$TESTFS1@$TESTSNAP1 \ 70 ctr=$TESTPOOL/$TESTCTR 71 ctrfs=$ctr/$TESTFS1 72 ctrclone=$ctr/$TESTCLONE 73 ctrvol=$ctr/$TESTVOL1 76 snapctr=$ctr@$TESTSNAP
|
| H A D | snapshot_010_pos.ksh | 67 ctr=$TESTPOOL/$TESTCTR 68 ctrfs=$ctr/$TESTFS1 69 ctrvol=$ctr/$TESTVOL1 72 snapctr=$ctr@$TESTSNAP 74 snapctrvol=$ctr/$TESTVOL1@$TESTSNAP 75 snapctrclone=$ctr/$TESTCLONE@$TESTSNAP
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs/ |
| H A D | zfs_002_pos.ksh | 54 for ds in $fs1 $fs $ctr; do 62 ctr=$TESTPOOL/$TESTCTR 63 log_must zfs create -p $ctr 66 corepath=/$ctr 70 fs=$ctr/$TESTFS 71 fs1=$ctr/$TESTFS1 73 clone=$ctr/$TESTCLONE
|
| /freebsd/crypto/openssh/ |
| H A D | cipher-aesctr.c | 33 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 D | tls13encryptiontest.c | 313 size_t ivlen, ctr; in test_tls13_encryption() local 326 for (ctr = 0; ctr < OSSL_NELEM(refdata); ctr++) { in test_tls13_encryption() 329 if (!load_record(&rec, &refdata[ctr], &key, iv, ivlen, seqbuf)) { in test_tls13_encryption() 348 TEST_info("Failed to encrypt record %zu", ctr); in test_tls13_encryption() 352 if (!TEST_true(test_record(&rec, &refdata[ctr], 1))) { in test_tls13_encryption() 353 TEST_info("Record %zu encryption test failed", ctr); in test_tls13_encryption() 371 TEST_info("Failed to decrypt record %zu", ctr); in test_tls13_encryption() 375 if (!TEST_true(test_record(&rec, &refdata[ctr], 0))) { in test_tls13_encryption() 376 TEST_info("Record %zu decryption test failed", ctr); in test_tls13_encryption() 389 TEST_note("PASS: %zu records tested", ctr); in test_tls13_encryption()
|
| /freebsd/sys/dev/neta/ |
| H A D | if_mvnetavar.h | 176 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/contrib/bearssl/inc/ |
| H A D | bearssl_block.h | 628 void *ctr, void *cbcmac, void *data, size_t len); 652 void *ctr, void *cbcmac, void *data, size_t len); 669 void (*ctr)(const br_block_ctrcbc_class *const *ctx, member 670 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); [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/ |
| H A D | zfs_send_002_pos.ksh | 53 datasetexists $ctr && destroy_dataset $ctr -r 71 log_must eval "zfs receive -d $ctr <$stream" 100 ctr=$TESTPOOL/$TESTCTR 102 rstfs=$ctr/$TESTFS 104 ds_path=$ctr/${ZONE_CTR}0 120 log_must zfs create $ctr
|
| /freebsd/contrib/wireguard-tools/ |
| H A D | curve25519-hacl64.h | 86 u32 ctr = 0; in fproduct_carry_wide_() local 87 u128 tctr = tmp[ctr]; in fproduct_carry_wide_() 88 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_() 91 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_() 92 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_() 95 u32 ctr = 1; in fproduct_carry_wide_() local 96 u128 tctr = tmp[ctr]; in fproduct_carry_wide_() 97 u128 tctrp1 = tmp[ctr + 1]; in fproduct_carry_wide_() 100 tmp[ctr] = ((u128)(r0)); in fproduct_carry_wide_() 101 tmp[ctr + 1] = ((tctrp1) + (c)); in fproduct_carry_wide_() [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_send/ |
| H A D | zfs_send_002_pos.ksh | 62 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
|