| /openbsd-src/usr.bin/ssh/ |
| H A D | cipher-aesctr.c | 29 aesctr_inc(u8 *ctr, u32 len) in aesctr_inc() argument 35 if (++ctr[i]) /* continue on overflow */ in aesctr_inc() 41 ctr[i] += add; in aesctr_inc() 43 x = ctr[i]; in aesctr_inc() 61 memcpy(x->ctr, iv, AES_BLOCK_SIZE); in aesctr_ivsetup() 72 rijndaelEncrypt(x->ek, x->rounds, x->ctr, buf); in aesctr_encrypt_bytes() 73 aesctr_inc(x->ctr, AES_BLOCK_SIZE); in aesctr_encrypt_bytes()
|
| H A D | ssh_config | 35 # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
|
| H A D | progressmeter.c | 245 start_progress_meter(const char *f, off_t filesize, off_t *ctr) 249 start_pos = *ctr; in start_progress_meter() 252 counter = ctr; in start_progress_meter() 246 start_progress_meter(const char * f,off_t filesize,off_t * ctr) start_progress_meter() argument
|
| /openbsd-src/libexec/login_yubikey/ |
| H A D | yubikey.h | 47 #define yubikey_counter(ctr) ((ctr) & 0x7FFF) argument 48 #define yubikey_capslock(ctr) ((ctr) & 0x8000) argument 54 uint16_t ctr; member
|
| H A D | login_yubikey.c | 192 u_int32_t last_ctr = 0, ctr; in yubikey_login() local 288 ctr = ((u_int32_t)yubikey_counter(tok.ctr) << 8) | tok.use; in yubikey_login() 289 if (ctr <= last_ctr) { in yubikey_login() 291 "(REPLAY ATTACK!)", username, ctr / 256, ctr % 256, in yubikey_login() 296 username, ctr / 256, ctr % 256, last_ctr / 256, last_ctr % 256); in yubikey_login() 302 fprintf(f, "%u", ctr); in yubikey_login()
|
| /openbsd-src/lib/libcrypto/modes/ |
| H A D | gcm128.c | 710 unsigned int ctr; 727 ctr = 1; 749 ctr = be32toh(ctx->Yi.d[3]); 753 ++ctr; 754 ctx->Yi.d[3] = htobe32(ctr); 826 unsigned int n, ctr; 850 ctr = be32toh(ctx->Yi.d[3]); 883 ++ctr; 884 ctx->Yi.d[3] = htobe32(ctr); 904 ++ctr; 707 unsigned int ctr; global() local 823 unsigned int n, ctr; global() local 969 unsigned int n, ctr; global() local 1120 unsigned int n, ctr; global() local 1210 unsigned int n, ctr; global() local [all...] |
| /openbsd-src/lib/libcrypto/ecdh/ |
| H A D | ecdh.c | 95 unsigned char ctr[4]; in ecdh_KDF_X9_63() local 109 ctr[3] = i & 0xFF; in ecdh_KDF_X9_63() 110 ctr[2] = (i >> 8) & 0xFF; in ecdh_KDF_X9_63() 111 ctr[1] = (i >> 16) & 0xFF; in ecdh_KDF_X9_63() 112 ctr[0] = (i >> 24) & 0xFF; in ecdh_KDF_X9_63() 115 if (!EVP_DigestUpdate(mctx, ctr, sizeof(ctr))) in ecdh_KDF_X9_63()
|
| /openbsd-src/sys/net80211/ |
| H A D | ieee80211_crypto_ccmp.c | 176 u_int16_t ctr; in ieee80211_ccmp_encrypt() local 217 ctr = 1; in ieee80211_ccmp_encrypt() 218 a[14] = ctr >> 8; in ieee80211_ccmp_encrypt() 219 a[15] = ctr & 0xff; in ieee80211_ccmp_encrypt() 265 ctr++; in ieee80211_ccmp_encrypt() 266 a[14] = ctr >> 8; in ieee80211_ccmp_encrypt() 267 a[15] = ctr & 0xff; in ieee80211_ccmp_encrypt() 355 u_int16_t ctr; in ieee80211_ccmp_decrypt() local 406 ctr = 1; in ieee80211_ccmp_decrypt() 407 a[14] = ctr >> 8; in ieee80211_ccmp_decrypt() [all …]
|
| /openbsd-src/sys/dev/pv/ |
| H A D | pvclock.c | 208 uint64_t tsc_timestamp, system_time, delta, ctr; in pvclock_get_timecount() local 232 ctr = ((delta * mul_frac) >> 32) + system_time; in pvclock_get_timecount() 235 return (ctr); in pvclock_get_timecount() 237 if (ctr < pvclock_lastcount) in pvclock_get_timecount() 240 atomic_swap_uint(&pvclock_lastcount, ctr); in pvclock_get_timecount() 242 return (ctr); in pvclock_get_timecount()
|
| /openbsd-src/lib/libcrypto/evp/ |
| H A D | e_chacha20poly1305.c | 135 uint64_t ctr; in aead_chacha20_poly1305_seal() local 147 ctr = (uint64_t)((uint32_t)(nonce[0]) | (uint32_t)(nonce[1]) << 8 | in aead_chacha20_poly1305_seal() 153 sizeof(poly1305_key), c20_ctx->key, iv, ctr); in aead_chacha20_poly1305_seal() 157 CRYPTO_chacha_20(out, in, in_len, c20_ctx->key, iv, ctr + 1); in aead_chacha20_poly1305_seal() 187 uint64_t ctr = 0; in aead_chacha20_poly1305_open() local 206 ctr = (uint64_t)((uint32_t)(nonce[0]) | (uint32_t)(nonce[1]) << 8 | in aead_chacha20_poly1305_open() 212 sizeof(poly1305_key), c20_ctx->key, iv, ctr); in aead_chacha20_poly1305_open() 227 CRYPTO_chacha_20(out, in, plaintext_len, c20_ctx->key, iv, ctr + 1); in aead_chacha20_poly1305_open() 450 uint64_t ctr; in chacha20_poly1305_cipher() local 452 ctr in chacha20_poly1305_cipher() [all...] |
| H A D | e_aes.c | 73 ctr128_f ctr; 87 ctr128_f ctr; 225 dat->stream.ctr = (ctr128_f)aesni_ctr32_encrypt_blocks; in aesni_init_key() 274 gctx->ctr = (ctr128_f)aesni_ctr32_encrypt_blocks; in aesni_gcm_init_key() 399 dat->stream.ctr = (ctr128_f)bsaes_ctr32_encrypt_blocks; in aes_init_key() 419 dat->stream.ctr = (ctr128_f)AES_ctr32_encrypt; in aes_init_key() 533 if (dat->stream.ctr) in aes_ctr_cipher() 535 ctx->iv, ctx->buf, &num, dat->stream.ctr); in aes_ctr_cipher() 1496 gctx->ctr = aes_gcm_set_key(&gctx->ks, &gctx->gcm, in aes_gcm_init_key() 1557 if (gctx->ctr) { in aes_gcm_tls_cipher() 71 ctr128_f ctr; global() member 85 ctr128_f ctr; global() member 2274 ctr128_f ctr; global() member [all...] |
| /openbsd-src/regress/usr.bin/ssh/ |
| H A D | conch-ciphers.sh | 16 for c in aes256-ctr aes256-cbc aes192-ctr aes192-cbc aes128-ctr aes128-cbc \
|
| /openbsd-src/lib/libcrypto/hkdf/ |
| H A D | hkdf.c | 80 uint8_t ctr; in HKDF_expand() local 94 ctr = 0; in HKDF_expand() 98 if (++ctr == 0) { in HKDF_expand() 105 if (!HMAC_Update(hmac, &ctr, 1)) in HKDF_expand()
|
| /openbsd-src/regress/sbin/ipsecctl/ |
| H A D | safail3.ok | 2 stdin: 8: aes-128-ctr is disallowed with static keys 3 stdin: 12: aes-192-ctr is disallowed with static keys 4 stdin: 16: aes-256-ctr is disallowed with static keys
|
| H A D | safail3.in | 6 enc aes-128-ctr \ 10 enc aes-192-ctr \ 14 enc aes-256-ctr \
|
| /openbsd-src/gnu/gcc/gcc/config/rs6000/ |
| H A D | darwin-fallback.c | 54 reg_unit ctr = 0; in interpret_libc() local 195 ctr = gprs [ins >> 21 & 0x1F]; in interpret_libc() 217 pc = (uint32_t *) ctr; in interpret_libc() 276 uint32_t ctr; member 299 uint32_t ctr[2]; member 380 set_offset (COUNT_REGISTER_REGNUM, m64->ctr + 1); in handle_syscall() 408 set_offset (COUNT_REGISTER_REGNUM, &m->ctr); in handle_syscall()
|
| /openbsd-src/sys/arch/arm64/stand/efiboot/ |
| H A D | exec.c | 45 uint64_t ctr; in cpu_get_dcache_line_size() local 49 ctr = READ_SPECIALREG(ctr_el0); in cpu_get_dcache_line_size() 55 dcl_size = CTR_DLINE_SIZE(ctr); in cpu_get_dcache_line_size()
|
| /openbsd-src/usr.bin/pctr/ |
| H A D | pctr.c | 50 static int ctr, func, masku, thold; variable 117 ctr = strtonum(optarg, 0, PCTR_NUM-1, &errstr); in main() 353 pctr_write(int ctr, u_int32_t val) in pctr_write() argument 360 if (ioctl(fd, PCIOCS0 + ctr, &val) == -1) { in pctr_write() 436 if (ctr >= PCTR_INTEL_NUM) in pctr_set_cntr() 453 if (ctr >= PCTR_INTEL_NUM) in pctr_set_cntr() 481 if (ctr >= PCTR_AMD_NUM) in pctr_set_cntr() 501 return (pctr_write(ctr, val)); in pctr_set_cntr()
|
| /openbsd-src/sys/net/ |
| H A D | wg_noise.c | 726 noise_counter_send(struct noise_counter *ctr) in noise_counter_send() argument 729 return atomic_inc_long_nv((u_long *)&ctr->c_send) - 1; in noise_counter_send() 732 mtx_enter(&ctr->c_mtx); in noise_counter_send() 733 ret = ctr->c_send++; in noise_counter_send() 734 mtx_leave(&ctr->c_mtx); in noise_counter_send() 740 noise_counter_recv(struct noise_counter *ctr, uint64_t recv) in noise_counter_recv() argument 746 mtx_enter(&ctr->c_mtx); in noise_counter_recv() 749 if (ctr->c_recv >= REJECT_AFTER_MESSAGES || in noise_counter_recv() 754 if (recv + COUNTER_WINDOW_SIZE < ctr->c_recv) in noise_counter_recv() 760 index_ctr = ctr->c_recv / COUNTER_BITS; in noise_counter_recv() [all …]
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | coverage.c | 63 unsigned ctr; member 145 return entry->ident * GCOV_COUNTERS + entry->ctr; in htab_counts_entry_hash() 154 return entry1->ident == entry2->ident && entry1->ctr == entry2->ctr; in htab_counts_entry_eq() 242 struct gcov_ctr_summary *csum = &summary.ctrs[entry->ctr]; in read_counts_file() 258 elt.ctr = GCOV_COUNTER_FOR_TAG (tag); in read_counts_file() 267 entry->ctr = elt.ctr; in read_counts_file() 288 else if (elt.ctr >= GCOV_COUNTERS_SUMMABLE) in read_counts_file() 291 ctr_names[elt.ctr], fn_ident); in read_counts_file() 295 if (elt.ctr < GCOV_COUNTERS_SUMMABLE in read_counts_file() 344 elt.ctr = counter; in get_coverage_counts()
|
| /openbsd-src/usr.sbin/vmd/ |
| H A D | i8253.c | 368 struct i8253_channel *ctr = (struct i8253_channel *)arg; in i8253_fire() 370 vcpu_assert_irq(ctr->vm_id, 0, 0); in i8253_fire() 372 if (ctr->mode != TIMER_INTTC) { in i8253_fire() 374 tv.tv_usec = (ctr->start * NS_PER_TICK) / 1000; in i8253_fire() 375 evtimer_add(&ctr->timer, &tv); in i8253_fire() 377 ctr->state = 1; in i8253_fire() 369 struct i8253_channel *ctr = (struct i8253_channel *)arg; i8253_fire() local
|
| /openbsd-src/sys/dev/pci/ |
| H A D | cs4280.c | 794 u_int32_t ctr; in cs4280_download() local 804 for (ctr = 0; ctr < len; ctr++) { in cs4280_download() 809 BA1WRITE4(sc, offset+ctr*4, htole32(*(src+ctr))); in cs4280_download() 811 data = htole32(*(src+ctr)); in cs4280_download() 812 c0 = bus_space_read_1(sc->ba1t, sc->ba1h, offset+ctr*4+0); in cs4280_download() 813 c1 = bus_space_read_1(sc->ba1t, sc->ba1h, offset+ctr*4+1); in cs4280_download() 814 c2 = bus_space_read_1(sc->ba1t, sc->ba1h, offset+ctr* in cs4280_download() 864 u_int32_t ctr, data; cs4280_checkimage() local [all...] |
| /openbsd-src/sys/arch/i386/include/ |
| H A D | pctr.h | 66 #define rdpmc(ctr) \ argument 71 : "=A" (v) : "c" (ctr)); \
|
| /openbsd-src/lib/libcrypto/sm2/ |
| H A D | sm2_crypt.c | 187 uint32_t ctr = 1; in sm2_kdf() local 206 while ((key_len > 0) && (ctr != 0)) { in sm2_kdf() 217 ctr_buf[0] = (ctr >> 24) & 0xff; in sm2_kdf() 218 ctr_buf[1] = (ctr >> 16) & 0xff; in sm2_kdf() 219 ctr_buf[2] = (ctr >> 8) & 0xff; in sm2_kdf() 220 ctr_buf[3] = ctr & 0xff; in sm2_kdf() 221 ctr++; in sm2_kdf()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/ |
| H A D | aix-thread.c | 1078 uint64_t lr, uint64_t ctr, uint32_t xer, in supply_sprs64() argument 1087 regcache_raw_supply (current_regcache, tdep->ppc_ctr_regnum, (char *) &ctr); in supply_sprs64() 1099 uint32_t lr, uint32_t ctr, uint32_t xer, in supply_sprs32() argument 1108 regcache_raw_supply (current_regcache, tdep->ppc_ctr_regnum, (char *) &ctr); in supply_sprs32() 1153 supply_sprs64 (ctx.iar, ctx.msr, ctx.cr, ctx.lr, ctx.ctr, ctx.xer, in fetch_regs_user_thread() 1156 supply_sprs32 (ctx.iar, ctx.msr, ctx.cr, ctx.lr, ctx.ctr, ctx.xer, in fetch_regs_user_thread() 1326 uint64_t *lr, uint64_t *ctr, uint32_t *xer, in fill_sprs64() argument 1347 regcache_raw_collect (current_regcache, tdep->ppc_ctr_regnum, ctr); in fill_sprs64() 1357 unsigned long *lr, unsigned long *ctr, unsigned long *xer, in fill_sprs32() argument 1383 regcache_raw_collect (current_regcache, tdep->ppc_ctr_regnum, ctr); in fill_sprs32() [all …]
|