HomeSort by: relevance | last modified time | path
    Searched refs:nrounds (Results 1 - 16 of 16) sorted by relevancy

  /src/sys/crypto/aes/arch/arm/
aes_neon_impl.h 51 aes_neon_enc2(const struct aesenc *enc, uint8x16x2_t b2, unsigned nrounds)
55 [0] = aes_neon_enc1(enc, b2.val[0], nrounds),
56 [1] = aes_neon_enc1(enc, b2.val[1], nrounds),
61 aes_neon_dec2(const struct aesdec *dec, uint8x16x2_t b2, unsigned nrounds)
65 [0] = aes_neon_dec1(dec, b2.val[0], nrounds),
66 [1] = aes_neon_dec1(dec, b2.val[1], nrounds),
aes_armv8.c 62 uint32_t nrounds)
65 switch (nrounds) {
76 panic("invalid AES rounds: %u", nrounds);
82 uint32_t nrounds)
86 aesarmv8_setenckey(enc, key, nrounds);
92 uint32_t nrounds)
97 aesarmv8_setenckey(&enc, key, nrounds);
98 aesarmv8_enctodec(&enc, dec, nrounds);
106 uint8_t out[static 16], uint32_t nrounds)
110 aesarmv8_enc(enc, in, out, nrounds);
    [all...]
aes_neon_impl.c 57 uint32_t nrounds)
61 aes_neon_setenckey(enc, key, nrounds);
67 uint32_t nrounds)
71 aes_neon_setdeckey(dec, key, nrounds);
77 uint8_t out[static 16], uint32_t nrounds)
81 aes_neon_enc(enc, in, out, nrounds);
87 uint8_t out[static 16], uint32_t nrounds)
91 aes_neon_dec(dec, in, out, nrounds);
98 uint32_t nrounds)
104 aes_neon_cbc_enc(enc, in, out, nbytes, iv, nrounds);
    [all...]
aes_neon_subr.c 61 uint8_t out[static 16], uint32_t nrounds)
66 block = aes_neon_enc1(enc, block, nrounds);
72 uint8_t out[static 16], uint32_t nrounds)
77 block = aes_neon_dec1(dec, block, nrounds);
84 uint32_t nrounds)
93 cv = aes_neon_enc1(enc, cv, nrounds);
102 uint32_t nrounds)
115 b = aes_neon_dec1(dec, cv, nrounds);
129 b2 = aes_neon_dec2(dec, b2, nrounds);
204 uint32_t nrounds)
    [all...]
aes_neon.c 361 aes_neon_setenckey(struct aesenc *enc, const uint8_t *key, unsigned nrounds)
375 switch (nrounds) {
379 if (--nrounds == 0)
406 if ((nrounds -= 3) == 0)
430 if ((nrounds -= 2) == 0)
446 panic("invalid number of AES rounds: %u", nrounds);
452 aes_neon_setdeckey(struct aesdec *dec, const uint8_t *key, unsigned nrounds)
460 unsigned i = nrounds == 12 ? 0 : 2;
468 rk32 += 4*nrounds;
473 switch (nrounds) {
    [all...]
  /src/sys/crypto/aes/arch/x86/
aes_sse2_impl.c 52 uint32_t nrounds)
56 aes_sse2_setkey(enc->aese_aes.aes_rk64, key, nrounds);
62 uint32_t nrounds)
70 aes_sse2_setkey(dec->aesd_aes.aes_rk64, key, nrounds);
76 uint8_t out[static 16], uint32_t nrounds)
80 aes_sse2_enc(enc, in, out, nrounds);
86 uint8_t out[static 16], uint32_t nrounds)
90 aes_sse2_dec(dec, in, out, nrounds);
97 uint32_t nrounds)
103 aes_sse2_cbc_enc(enc, in, out, nbytes, iv, nrounds);
    [all...]
aes_ssse3_impl.c 49 uint32_t nrounds)
53 aes_ssse3_setenckey(enc, key, nrounds);
59 uint32_t nrounds)
63 aes_ssse3_setdeckey(dec, key, nrounds);
69 uint8_t out[static 16], uint32_t nrounds)
73 aes_ssse3_enc(enc, in, out, nrounds);
79 uint8_t out[static 16], uint32_t nrounds)
83 aes_ssse3_dec(dec, in, out, nrounds);
90 uint32_t nrounds)
96 aes_ssse3_cbc_enc(enc, in, out, nbytes, iv, nrounds);
    [all...]
aes_ni.c 60 uint32_t nrounds)
63 switch (nrounds) {
74 panic("invalid AES rounds: %u", nrounds);
80 uint32_t nrounds)
84 aesni_setenckey(enc, key, nrounds);
90 uint32_t nrounds)
95 aesni_setenckey(&enc, key, nrounds);
96 aesni_enctodec(&enc, dec, nrounds);
104 uint8_t out[static 16], uint32_t nrounds)
108 aesni_enc(enc, in, out, nrounds);
    [all...]
aes_ssse3_subr.c 58 uint8_t out[static 16], uint32_t nrounds)
63 block = aes_ssse3_enc1(enc, block, nrounds);
69 uint8_t out[static 16], uint32_t nrounds)
74 block = aes_ssse3_dec1(dec, block, nrounds);
81 uint32_t nrounds)
90 cv = aes_ssse3_enc1(enc, cv, nrounds);
99 uint32_t nrounds)
111 b = aes_ssse3_dec1(dec, cv, nrounds);
174 uint32_t nrounds)
184 b = aes_ssse3_enc1(enc, b, nrounds);
    [all...]
aes_sse2_subr.c 51 aes_sse2_setkey(uint64_t rk[static 30], const void *key, uint32_t nrounds)
55 switch (nrounds) {
66 panic("invalid AES nrounds: %u", nrounds);
74 uint8_t out[static 16], uint32_t nrounds)
80 aes_sse2_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk64);
88 aes_sse2_bitslice_encrypt(nrounds, sk_exp, q);
101 uint8_t out[static 16], uint32_t nrounds)
107 aes_sse2_skey_expand(sk_exp, nrounds, dec->aesd_aes.aes_rk64);
115 aes_sse2_bitslice_decrypt(nrounds, sk_exp, q)
    [all...]
aes_ssse3.c 307 aes_ssse3_setenckey(struct aesenc *enc, const uint8_t *key, unsigned nrounds)
321 switch (nrounds) {
325 if (--nrounds == 0)
352 if ((nrounds -= 3) == 0)
376 if ((nrounds -= 2) == 0)
389 panic("invalid number of AES rounds: %u", nrounds);
395 aes_ssse3_setdeckey(struct aesdec *dec, const uint8_t *key, unsigned nrounds)
403 unsigned i = nrounds == 12 ? 0 : 2;
411 rk32 += 4*nrounds;
416 switch (nrounds) {
    [all...]
aes_via.c 85 aesvia_keylen_cw0(unsigned nrounds)
93 switch (nrounds) {
101 panic("invalid AES nrounds: %u", nrounds);
106 aesvia_setenckey(struct aesenc *enc, const uint8_t *key, uint32_t nrounds)
110 switch (nrounds) {
124 panic("invalid AES nrounds: %u", nrounds);
130 aesvia_setdeckey(struct aesdec *dec, const uint8_t *key, uint32_t nrounds)
134 switch (nrounds) {
    [all...]
  /src/sys/crypto/aes/
aes_impl.c 173 uint32_t nrounds)
177 aes_impl->ai_setenckey(enc, key, nrounds);
183 uint32_t nrounds = AES_128_NROUNDS; local in function:aes_setenckey128
185 aes_setenckey(enc, key, nrounds);
186 return nrounds;
192 uint32_t nrounds = AES_192_NROUNDS; local in function:aes_setenckey192
194 aes_setenckey(enc, key, nrounds);
195 return nrounds;
201 uint32_t nrounds = AES_256_NROUNDS; local in function:aes_setenckey256
203 aes_setenckey(enc, key, nrounds);
219 uint32_t nrounds = AES_128_NROUNDS; local in function:aes_setdeckey128
228 uint32_t nrounds = AES_192_NROUNDS; local in function:aes_setdeckey192
237 uint32_t nrounds = AES_256_NROUNDS; local in function:aes_setdeckey256
    [all...]
aes_bear.c 50 aesbear_setkey(uint32_t rk[static 60], const void *key, uint32_t nrounds)
54 switch (nrounds) {
65 panic("invalid AES nrounds: %u", nrounds);
72 aesbear_setenckey(struct aesenc *enc, const uint8_t *key, uint32_t nrounds)
75 aesbear_setkey(enc->aese_aes.aes_rk, key, nrounds);
79 aesbear_setdeckey(struct aesdec *dec, const uint8_t *key, uint32_t nrounds)
86 aesbear_setkey(dec->aesd_aes.aes_rk, key, nrounds);
91 uint8_t out[static 16], uint32_t nrounds)
97 br_aes_ct_skey_expand(sk_exp, nrounds, enc->aese_aes.aes_rk)
    [all...]
  /src/lib/libcrypt/
pw_gensalt.c 104 size_t nrounds; local in function:__gensalt_new
111 if (getnum(option, &nrounds) == -1)
115 if (nrounds < 7250)
116 nrounds = 7250;
117 else if (nrounds > 0xffffff)
118 nrounds = 0xffffff;
120 __crypt_to64(&salt[1], (uint32_t)nrounds, 4);
148 size_t nrounds; local in function:__gensalt_sha1
150 if (getnum(option, &nrounds) == -1)
153 __crypt_sha1_iterations(nrounds));
    [all...]
bcrypt.c 158 unsigned long nrounds; local in function:__gensalt_blowfish
169 nrounds = strtoul(option, &ep, 0);
174 if (errno == ERANGE && nrounds == ULONG_MAX)
177 if (nrounds < 4)
178 nrounds = 4;
179 else if (nrounds > 31)
180 nrounds = 31;
188 encode_salt(salt, csalt, BCRYPT_MAXSALT, (u_int8_t)nrounds);

Completed in 50 milliseconds