/freebsd/crypto/openssl/providers/implementations/rands/ |
H A D | drbg_ctr.c | 58 static void inc_128(PROV_DRBG_CTR *ctr) in inc_128() argument 60 unsigned char *p = &ctr->V[0]; in inc_128() 71 static void ctr_XOR(PROV_DRBG_CTR *ctr, const unsigned char *in, size_t inlen) in ctr_XOR() argument 82 n = inlen < ctr->keylen ? inlen : ctr->keylen; in ctr_XOR() 84 ctr->K[i] ^= in[i]; in ctr_XOR() 85 if (inlen <= ctr->keylen) in ctr_XOR() 88 n = inlen - ctr->keylen; in ctr_XOR() 94 ctr->V[i] ^= in[i + ctr in ctr_XOR() 100 ctr_BCC_block(PROV_DRBG_CTR * ctr,unsigned char * out,const unsigned char * in,int len) ctr_BCC_block() argument 118 ctr_BCC_blocks(PROV_DRBG_CTR * ctr,const unsigned char * in) ctr_BCC_blocks() argument 136 ctr_BCC_init(PROV_DRBG_CTR * ctr) ctr_BCC_init() argument 151 ctr_BCC_update(PROV_DRBG_CTR * ctr,const unsigned char * in,size_t inlen) ctr_BCC_update() argument 186 ctr_BCC_final(PROV_DRBG_CTR * ctr) ctr_BCC_final() argument 196 ctr_df(PROV_DRBG_CTR * ctr,const unsigned char * in1,size_t in1len,const unsigned char * in2,size_t in2len,const unsigned char * in3,size_t in3len) ctr_df() argument 264 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; ctr_update() local 310 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_instantiate() local 344 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_reseed() local 381 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_generate() local 464 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_uninstantiate() local 482 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_verify_zeroization() local 495 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_init_lengths() local 528 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_init() local 589 PROV_DRBG_CTR *ctr; drbg_ctr_new() local 613 PROV_DRBG_CTR *ctr; drbg_ctr_free() local 630 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)drbg->data; drbg_ctr_get_ctx_params() local 663 PROV_DRBG_CTR *ctr = (PROV_DRBG_CTR *)ctx->data; drbg_ctr_set_ctx_params() local [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/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/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 | 52 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/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() 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 D | ssl3_record.c | 996 size_t bs, ctr, padnum, loop; in tls1_enc() local 1029 for (ctr = 0; ctr < n_recs; ctr++) { in tls1_enc() 1030 if (recs[ctr].data != recs[ctr].input) { in tls1_enc() 1037 } else if (RAND_bytes_ex(s->ctx->libctx, recs[ctr].input, 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() 1098 memcpy(buf[ctr], dtlsseq, 8); in tls1_enc() [all …]
|
/freebsd/sys/crypto/openssl/arm/ |
H A D | ossl_aes_gcm.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/modes/ |
H A D | gcm128.c | 819 unsigned int ctr; local 835 ctr = 1; 878 ctr = BSWAP4(ctx->Xi.d[3]); 880 ctr = GETU32(ctx->Xi.c + 12); 883 ctr = ctx->Xi.d[3]; 894 ++ctr; 897 ctx->Yi.d[3] = BSWAP4(ctr); 899 PUTU32(ctx->Yi.c + 12, ctr); 902 ctx->Yi.d[3] = ctr; 971 unsigned int n, ctr, mres; local [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/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
|
H A D | snapshot_012_pos.ksh | 80 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/snapshot/ |
H A D | snapshot_009_pos.ksh | 54 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 D | snapshot_010_pos.ksh | 66 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
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs/ |
H A D | zfs_002_pos.ksh | 53 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/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/sys/crypto/openssl/amd64/ |
H A D | ossl_aes_gcm.c | 253 uint32_t ctr; in gcm_setiv_aesni() local 267 ctr = 1; in gcm_setiv_aesni() 273 ctr++; in gcm_setiv_aesni() 276 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_setiv_aesni() 278 ctx->gcm.Yi.d[3] = ctr; in gcm_setiv_aesni() 331 unsigned int n, ctr, mres; in gcm_encrypt() local 349 ctr = bswap32(ctx->gcm.Yi.d[3]); in gcm_encrypt() 351 ctr = ctx->gcm.Yi.d[3]; in gcm_encrypt() 359 ++ctr; in gcm_encrypt() 361 ctx->gcm.Yi.d[3] = bswap32(ctr); in gcm_encrypt() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | tls13encryptiontest.c | 312 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/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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_send/ |
H A D | zfs_send_002_pos.ksh | 52 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/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
|
/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/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 …]
|