| /netbsd-src/lib/libcrypt/ |
| H A D | blowfish.c | 407 Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes) in Blowfish_expand0state() argument 419 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expand0state() 446 const u_int8_t *key, u_int16_t keybytes) in Blowfish_expandstate() argument 458 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expandstate()
|
| /netbsd-src/sys/crypto/cast128/ |
| H A D | cast128.c | 139 void cast128_setkey(cast128_key* key, const u_int8_t* rawkey, int keybytes) in cast128_setkey() argument 145 key->rounds = (keybytes <= 10 ? 12 : 16); in cast128_setkey() 151 if ((i*4+0) < keybytes) x[i] = (u_int32_t)rawkey[i*4+0] << 24; in cast128_setkey() 152 if ((i*4+1) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+1] << 16; in cast128_setkey() 153 if ((i*4+2) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+2] << 8; in cast128_setkey() 154 if ((i*4+3) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+3]; in cast128_setkey()
|
| H A D | cast128.h | 19 void cast128_setkey(cast128_key *key, const u_int8_t *rawkey, int keybytes);
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/test/ |
| H A D | ocspapitest.c | 71 unsigned char keybytes[128] = {7}; in make_dummy_resp() local 83 || !ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes)) in make_dummy_resp()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/test/ |
| H A D | ocspapitest.c | 71 unsigned char keybytes[128] = {7}; in make_dummy_resp() local 87 || !TEST_true(ASN1_BIT_STRING_set(key, keybytes, sizeof(keybytes))) in make_dummy_resp()
|
| /netbsd-src/crypto/external/bsd/openssh/dist/ |
| H A D | blowfish.c | 423 Blowfish_expand0state(blf_ctx *c, const u_int8_t *key, u_int16_t keybytes) in Blowfish_expand0state() argument 435 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expand0state() 462 const u_int8_t *key, u_int16_t keybytes) in Blowfish_expandstate() argument 474 temp = Blowfish_stream2word(key, keybytes, &j); in Blowfish_expandstate()
|
| /netbsd-src/tests/dev/cgd/ |
| H A D | t_cgd_adiantum.c | 297 const char *ivmethod, const void *key, size_t keybytes) in configure_cgd() argument 305 ci.ci_keylen = 8*keybytes; in configure_cgd()
|
| /netbsd-src/sys/arch/arm/sunxi/ |
| H A D | sun8i_crypto.c | 1481 const size_t keybytes = sizeof selftest_key; in sun8i_crypto_selftest() local 1500 error = sun8i_crypto_allocbuf(sc, keybytes, &selftest->cs_key, in sun8i_crypto_selftest() 1521 memcpy(selftest->cs_key.cb_kva, selftest_key, keybytes); in sun8i_crypto_selftest() 1525 selftest->cs_key.cb_kva, keybytes, NULL, BUS_DMA_WAITOK); in sun8i_crypto_selftest() 1574 fail2: sun8i_crypto_freebuf(sc, keybytes, &selftest->cs_key); in sun8i_crypto_selftest() 1609 const size_t keybytes = sizeof selftest_key; in sun8i_crypto_selftest_done() local 1628 ok &= sun8i_crypto_selftest_check(sc, "key clobbered", keybytes, in sun8i_crypto_selftest_done() 1642 sun8i_crypto_freebuf(sc, keybytes, &selftest->cs_key); in sun8i_crypto_selftest_done()
|
| /netbsd-src/sys/dev/ |
| H A D | cgd.c | 1236 size_t keybytes; /* key length in bytes */ in cgd_ioctl_set() local 1283 keybytes = ci->ci_keylen / 8 + 1; in cgd_ioctl_set() 1284 if (keybytes > MAX_KEYSIZE) { in cgd_ioctl_set() 1290 ret = copyin(ci->ci_key, inbuf, keybytes); in cgd_ioctl_set()
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/statem/ |
| H A D | statem_clnt.c | 3070 unsigned char *keybytes = NULL; in tls_construct_cke_dhe() local 3102 &keybytes)) { in tls_construct_cke_dhe() 3108 BN_bn2bin(pub_key, keybytes); in tls_construct_cke_dhe()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/ssl/statem/ |
| H A D | statem_clnt.c | 2908 unsigned char *keybytes = NULL; in tls_construct_cke_dhe() local 2949 if (!WPACKET_sub_allocate_bytes_u16(pkt, pad_len, &keybytes)) { in tls_construct_cke_dhe() 2953 memset(keybytes, 0, pad_len); in tls_construct_cke_dhe()
|