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

  /src/sys/crypto/cast128/
cast128.h 19 void cast128_setkey(cast128_key *key, const u_int8_t *rawkey, int keybytes);
cast128.c 139 void cast128_setkey(cast128_key* key, const u_int8_t* rawkey, int keybytes)
145 key->rounds = (keybytes <= 10 ? 12 : 16);
151 if ((i*4+0) < keybytes) x[i] = (u_int32_t)rawkey[i*4+0] << 24;
152 if ((i*4+1) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+1] << 16;
153 if ((i*4+2) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+2] << 8;
154 if ((i*4+3) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+3];
  /src/lib/libcrypt/
blowfish.c 407 Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes)
419 temp = Blowfish_stream2word(key, keybytes, &j);
446 const u_int8_t *key, u_int16_t keybytes)
458 temp = Blowfish_stream2word(key, keybytes, &j);
  /src/sys/arch/arm/sunxi/
sun8i_crypto.c 1481 const size_t keybytes = sizeof selftest_key; local in function:sun8i_crypto_selftest
1500 error = sun8i_crypto_allocbuf(sc, keybytes, &selftest->cs_key,
1521 memcpy(selftest->cs_key.cb_kva, selftest_key, keybytes);
1525 selftest->cs_key.cb_kva, keybytes, NULL, BUS_DMA_WAITOK);
1574 fail2: sun8i_crypto_freebuf(sc, keybytes, &selftest->cs_key);
1609 const size_t keybytes = sizeof selftest_key; local in function:sun8i_crypto_selftest_done
1628 ok &= sun8i_crypto_selftest_check(sc, "key clobbered", keybytes,
1642 sun8i_crypto_freebuf(sc, keybytes, &selftest->cs_key);
  /src/tests/dev/cgd/
t_cgd_adiantum.c 297 const char *ivmethod, const void *key, size_t keybytes)
305 ci.ci_keylen = 8*keybytes;
  /src/sys/dev/
cgd.c 1236 size_t keybytes; /* key length in bytes */ local in function:cgd_ioctl_set
1283 keybytes = ci->ci_keylen / 8 + 1;
1284 if (keybytes > MAX_KEYSIZE) {
1290 ret = copyin(ci->ci_key, inbuf, keybytes);

Completed in 19 milliseconds