Home
last modified time | relevance | path

Searched refs:keybytes (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/lib/libcrypt/
H A Dblowfish.c407 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 Dcast128.c139 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 Dcast128.h19 void cast128_setkey(cast128_key *key, const u_int8_t *rawkey, int keybytes);
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Docspapitest.c71 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 Docspapitest.c71 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 Dblowfish.c423 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 Dt_cgd_adiantum.c297 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 Dsun8i_crypto.c1481 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 Dcgd.c1236 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 Dstatem_clnt.c3070 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 Dstatem_clnt.c2908 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()