Home
last modified time | relevance | path

Searched refs:rounds (Results 1 – 25 of 38) sorted by relevance

12

/dragonfly/sys/dev/crypto/aesni/
HDaesni_wrap.c40 aesni_encrypt_cbc(int rounds, const void *key_schedule, size_t len, in aesni_encrypt_cbc() argument
49 aesni_enc(rounds - 1, key_schedule, from, to, ivp); in aesni_encrypt_cbc()
57 aesni_encrypt_ecb(int rounds, const void *key_schedule, size_t len, in aesni_encrypt_ecb() argument
64 aesni_enc(rounds - 1, key_schedule, from, to, NULL); in aesni_encrypt_ecb()
71 aesni_decrypt_ecb(int rounds, const void *key_schedule, size_t len, in aesni_decrypt_ecb() argument
78 aesni_dec(rounds - 1, key_schedule, from, to, NULL); in aesni_decrypt_ecb()
89 aesni_crypt_xts_block(int rounds, const void *key_schedule, uint8_t *tweak, in aesni_crypt_xts_block() argument
99 aesni_enc(rounds - 1, key_schedule, block, to, NULL); in aesni_crypt_xts_block()
101 aesni_dec(rounds - 1, key_schedule, block, to, NULL); in aesni_crypt_xts_block()
119 aesni_crypt_xts(int rounds, const void *data_schedule, in aesni_crypt_xts() argument
[all …]
HDaesni.h57 int rounds; member
72 void aesni_enc(int rounds, const uint8_t *key_schedule,
75 void aesni_dec(int rounds, const uint8_t *key_schedule,
86 void aesni_encrypt_cbc(int rounds, const void *key_schedule, size_t len,
88 void aesni_decrypt_cbc(int rounds, const void *key_schedule, size_t len,
90 void aesni_encrypt_ecb(int rounds, const void *key_schedule, size_t len,
92 void aesni_decrypt_ecb(int rounds, const void *key_schedule, size_t len,
/dragonfly/contrib/libarchive/libarchive/
HDarchive_cryptor.c51 size_t salt_len, unsigned rounds, uint8_t *derived_key, in pbkdf2_sha1() argument
55 pw_len, salt, salt_len, kCCPRFHmacAlgSHA1, rounds, in pbkdf2_sha1()
67 size_t salt_len, unsigned rounds, uint8_t *derived_key, in pbkdf2_sha1() argument
80 (PUCHAR)(uintptr_t)salt, (ULONG)salt_len, rounds, in pbkdf2_sha1()
92 size_t salt_len, unsigned rounds, uint8_t *derived_key, in pbkdf2_sha1() argument
111 pw_len, salt, salt_len, rounds, derived_key_len, derived_key); in pbkdf2_sha1()
121 size_t salt_len, unsigned rounds, uint8_t *derived_key, in pbkdf2_sha1() argument
123 pbkdf2_hmac_sha1((unsigned)pw_len, (const uint8_t *)pw, rounds, in pbkdf2_sha1()
132 size_t salt_len, unsigned rounds, uint8_t *derived_key, in pbkdf2_sha1() argument
135 PKCS5_PBKDF2_HMAC_SHA1(pw, pw_len, salt, salt_len, rounds, in pbkdf2_sha1()
[all …]
HDarchive_cryptor_private.h150 #define archive_pbkdf2_sha1(pw, pw_len, salt, salt_len, rounds, dk, dk_len)\ argument
151 __archive_cryptor.pbkdf2sha1(pw, pw_len, salt, salt_len, rounds, dk, dk_len)
173 size_t salt_len, unsigned rounds, uint8_t *derived_key,
/dragonfly/sys/kern/
HDkern_objcache.c53 int rounds; member
177 mag->rounds = 0; in mag_alloc()
414 #define MAGAZINE_EMPTY(mag) (mag->rounds == 0)
415 #define MAGAZINE_NOTEMPTY(mag) (mag->rounds != 0)
416 #define MAGAZINE_FULL(mag) (mag->rounds == mag->capacity)
447 obj = loadedmag->objects[--loadedmag->rounds]; in objcache_get()
456 obj = loadedmag->objects[--loadedmag->rounds]; in objcache_get()
646 loadedmag->objects[loadedmag->rounds++] = obj; in objcache_put()
659 loadedmag->objects[loadedmag->rounds++] = obj; in objcache_put()
761 while (mag->rounds) { in mag_purge()
[all …]
/dragonfly/crypto/libressl/crypto/aes/
HDaes_core.c642 key->rounds = 10; in AES_set_encrypt_key()
644 key->rounds = 12; in AES_set_encrypt_key()
646 key->rounds = 14; in AES_set_encrypt_key()
743 for (i = 0, j = 4 * (key->rounds); i < j; i += 4, j -= 4) { in AES_set_decrypt_key()
758 for (i = 1; i < (key->rounds); i++) { in AES_set_decrypt_key()
853 if (key->rounds > 10) { in AES_encrypt()
864 if (key->rounds > 12) { in AES_encrypt()
877 rk += key->rounds << 2; in AES_encrypt()
882 r = key->rounds >> 1; in AES_encrypt()
1043 if (key->rounds > 10) { in AES_decrypt()
[all …]
/dragonfly/sys/crypto/siphash/
HDsiphash.c209 int rounds; in SipRounds() local
212 rounds = ctx->rounds_compr; in SipRounds()
214 rounds = ctx->rounds_final; in SipRounds()
216 while (rounds--) { in SipRounds()
/dragonfly/lib/libcrypt/
HDcrypt-blowfish.c183 u_int32_t rounds, i, k; in crypt_blowfish() local
194 rounds = 1 << logr; in crypt_blowfish()
233 if ((rounds = (u_int32_t) 1 << (logr = atoi(salt))) < BCRYPT_MINROUNDS) in crypt_blowfish()
250 for (k = 0; k < rounds; k++) { in crypt_blowfish()
HDcrypt-sha256.c317 size_t rounds = ROUNDS_DEFAULT; in crypt_sha256_r() local
335 rounds = MAX (ROUNDS_MIN, MIN (srounds, ROUNDS_MAX)); in crypt_sha256_r()
440 for (cnt = 0; cnt < rounds; ++cnt) in crypt_sha256_r()
477 sha256_rounds_prefix, rounds); in crypt_sha256_r()
HDcrypt-sha512.c348 size_t rounds = ROUNDS_DEFAULT; in crypt_sha512_r() local
366 rounds = MAX (ROUNDS_MIN, MIN (srounds, ROUNDS_MAX)); in crypt_sha512_r()
471 for (cnt = 0; cnt < rounds; ++cnt) in crypt_sha512_r()
508 sha512_rounds_prefix, rounds); in crypt_sha512_r()
/dragonfly/lib/libc/stdlib/
HDnmalloc.c285 int rounds; /* Current number of free rounds */ member
297 .rounds = 0,
300 #define MAGAZINE_FULL(mp) (mp->rounds == mp->capacity)
301 #define MAGAZINE_NOTFULL(mp) (mp->rounds < mp->capacity)
302 #define MAGAZINE_EMPTY(mp) (mp->rounds == 0)
303 #define MAGAZINE_NOTEMPTY(mp) (mp->rounds != 0)
1286 count = mp->capacity - mp->rounds; in _slaballoc()
1309 mp->objects[mp->rounds++] = chunk; in _slaballoc()
1336 mp->objects[mp->rounds++] = chunk; in _slaballoc()
1717 obj = mp->objects[--mp->rounds]; in magazine_alloc()
[all …]
/dragonfly/lib/libssh/openbsd-compat/
HDbcrypt_pbkdf.c115 uint8_t *key, size_t keylen, unsigned int rounds) in bcrypt_pbkdf() argument
127 if (rounds < 1) in bcrypt_pbkdf()
155 for (i = 1; i < rounds; i++) { in bcrypt_pbkdf()
/dragonfly/sys/opencrypto/
HDgmac.c111 ctx->rounds = rijndaelKeySetupEnc(ctx->K, __DECONST(u_char *, key), in AES_GMAC_Setkey()
116 rijndaelEncrypt(ctx->K, ctx->rounds, ctx->ghash.H, ctx->ghash.H); in AES_GMAC_Setkey()
154 rijndaelEncrypt(ctx->K, ctx->rounds, ctx->J, keystream); in AES_GMAC_Final()
HDcast.h16 int rounds; /* Number of rounds to use, 12 or 16 */ member
HDcast.c63 if (key->rounds > 12) { in cast_encrypt()
96 if (key->rounds > 12) { in cast_decrypt()
136 key->rounds = (keybytes <= 10 ? 12 : 16); in cast_setkey()
HDgmac.h37 int rounds; member
/dragonfly/crypto/openssh/
HDcipher-aesctr.c59 x->rounds = rijndaelKeySetupEnc(x->ek, k, kbits); in aesctr_keysetup()
76 rijndaelEncrypt(x->ek, x->rounds, x->ctr, buf); in aesctr_encrypt_bytes()
HDcipher-aesctr.h26 int rounds; /* keylen-dependent #rounds */ member
HDsshkey.c938 u_int i, j = 0, rounds, seed = 1; in fingerprint_bubblebabble() local
941 rounds = (dgst_raw_len / 2) + 1; in fingerprint_bubblebabble()
942 if ((retval = calloc(rounds, 6)) == NULL) in fingerprint_bubblebabble()
945 for (i = 0; i < rounds; i++) { in fingerprint_bubblebabble()
947 if ((i + 1 < rounds) || (dgst_raw_len % 2 != 0)) { in fingerprint_bubblebabble()
956 if ((i + 1) < rounds) { in fingerprint_bubblebabble()
2750 int rounds) in sshkey_private_to_blob2() argument
2762 if (rounds <= 0) in sshkey_private_to_blob2()
2763 rounds = DEFAULT_ROUNDS; in sshkey_private_to_blob2()
2791 salt, SALT_LEN, key, keylen + ivlen, rounds) < 0) { in sshkey_private_to_blob2()
[all …]
HDPROTOCOL.key26 uint32 rounds
HDssh-keygen.c164 static int rounds = 0; variable
1137 rounds)) != 0) { in do_gen_all_hostkeys()
1476 comment, private_key_format, openssh_format_cipher, rounds)) != 0) { in do_change_passphrase()
1603 rounds)) != 0) { in do_change_comment()
3220 openssh_format_cipher, rounds)) != 0) { in do_download_sk()
3548 rounds = (int)strtonum(optarg, 1, INT_MAX, &errstr); in main()
3926 comment, private_key_format, openssh_format_cipher, rounds)) != 0) { in main()
/dragonfly/contrib/ldns/
HDutil.c433 size_t i, j = 0, rounds, seed = 1; in ldns_bubblebabble() local
436 rounds = (len / 2) + 1; in ldns_bubblebabble()
437 retval = LDNS_XMALLOC(char, rounds * 6); in ldns_bubblebabble()
440 for (i = 0; i < rounds; i++) { in ldns_bubblebabble()
442 if ((i + 1 < rounds) || (len % 2 != 0)) { in ldns_bubblebabble()
451 if ((i + 1) < rounds) { in ldns_bubblebabble()
/dragonfly/contrib/expat/lib/
HDsiphash.h167 sip_round(struct siphash *H, const int rounds) { in sip_round() argument
170 for (i = 0; i < rounds; i++) { in sip_round()
/dragonfly/contrib/file/magic/Magdir/
HDkeepass19 >>120 lelong >0 \b, %d key transformation rounds
/dragonfly/crypto/libressl/include/openssl/
HDaes.h78 int rounds; member

12