/freebsd/sys/crypto/camellia/ |
H A D | camellia.h | 36 uint32_t subkey[CAMELLIA_SUBKEYWORD]; /* encrypt/decrypt key schedule */ member 46 uint32_t *subkey); 50 const uint32_t *subkey, 55 const uint32_t *subkey, 58 void camellia_setup128(const unsigned char *key, uint32_t *subkey); 59 void camellia_setup192(const unsigned char *key, uint32_t *subkey); 60 void camellia_setup256(const unsigned char *key, uint32_t *subkey); 61 void camellia_encrypt128(const uint32_t *subkey, uint32_t *io); 62 void camellia_encrypt256(const uint32_t *subkey, uint32_t *io); 63 void camellia_decrypt128(const uint32_t *subkey, uint32_t *io); [all …]
|
H A D | camellia-api.c | 40 Camellia_Ekeygen(bits, key, ctx->subkey); in camellia_set_key() 48 Camellia_DecryptBlock(ctx->bits, src, ctx->subkey, dst); in camellia_decrypt() 55 Camellia_EncryptBlock(ctx->bits, src, ctx->subkey, dst); in camellia_encrypt()
|
H A D | camellia.c | 74 #define SUBL(INDEX) (subkey[(INDEX)*2+1]) 75 #define SUBR(INDEX) (subkey[(INDEX)*2]) 437 camellia_setup128(const unsigned char *key, uint32_t *subkey) in camellia_setup128() argument 643 camellia_setup256(const unsigned char *key, uint32_t *subkey) in camellia_setup256() argument 923 camellia_setup192(const unsigned char *key, uint32_t *subkey) in camellia_setup192() argument 935 camellia_setup256(kk, subkey); in camellia_setup192() 943 camellia_encrypt128(const uint32_t *subkey, uint32_t *io) in camellia_encrypt128() argument 1010 camellia_decrypt128(const uint32_t *subkey, uint32_t *io) in camellia_decrypt128() argument 1080 camellia_encrypt256(const uint32_t *subkey, uint32_t *io) in camellia_encrypt256() argument 1163 camellia_decrypt256(const uint32_t *subkey, uint32_t *io) in camellia_decrypt256() argument [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/xsalsa20/ |
H A D | stream_xsalsa20.c | 11 unsigned char subkey[32]; in crypto_stream_xsalsa20() local 14 crypto_core_hsalsa20(subkey, n, k, NULL); in crypto_stream_xsalsa20() 15 ret = crypto_stream_salsa20(c, clen, n + 16, subkey); in crypto_stream_xsalsa20() 16 sodium_memzero(subkey, sizeof subkey); in crypto_stream_xsalsa20() 26 unsigned char subkey[32]; in crypto_stream_xsalsa20_xor_ic() local 29 crypto_core_hsalsa20(subkey, n, k, NULL); in crypto_stream_xsalsa20_xor_ic() 30 ret = crypto_stream_salsa20_xor_ic(c, m, mlen, n + 16, ic, subkey); in crypto_stream_xsalsa20_xor_ic() 31 sodium_memzero(subkey, sizeof subkey); in crypto_stream_xsalsa20_xor_ic()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretbox/ |
H A D | crypto_secretbox_easy.c | 24 unsigned char subkey[crypto_stream_salsa20_KEYBYTES]; in crypto_secretbox_detached() local 28 crypto_core_hsalsa20(subkey, n, k, NULL); in crypto_secretbox_detached() 48 n + 16, subkey); in crypto_secretbox_detached() 59 n + 16, 1U, subkey); in crypto_secretbox_detached() 61 sodium_memzero(subkey, sizeof subkey); in crypto_secretbox_detached() 90 unsigned char subkey[crypto_stream_salsa20_KEYBYTES]; in crypto_secretbox_open_detached() local 94 crypto_core_hsalsa20(subkey, n, k, NULL); in crypto_secretbox_open_detached() 96 n + 16, subkey); in crypto_secretbox_open_detached() 98 sodium_memzero(subkey, sizeof subkey); in crypto_secretbox_open_detached() 120 n + 16, subkey); in crypto_secretbox_open_detached() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretbox/xchacha20poly1305/ |
H A D | secretbox_xchacha20poly1305.c | 28 unsigned char subkey[crypto_stream_chacha20_KEYBYTES]; in crypto_secretbox_xchacha20poly1305_detached() local 32 crypto_core_hchacha20(subkey, n, k, NULL); in crypto_secretbox_xchacha20poly1305_detached() 52 n + 16, subkey); in crypto_secretbox_xchacha20poly1305_detached() 63 n + 16, 1U, subkey); in crypto_secretbox_xchacha20poly1305_detached() 65 sodium_memzero(subkey, sizeof subkey); in crypto_secretbox_xchacha20poly1305_detached() 97 unsigned char subkey[crypto_stream_chacha20_KEYBYTES]; in crypto_secretbox_xchacha20poly1305_open_detached() local 101 crypto_core_hchacha20(subkey, n, k, NULL); in crypto_secretbox_xchacha20poly1305_open_detached() 103 n + 16, subkey); in crypto_secretbox_xchacha20poly1305_open_detached() 105 sodium_memzero(subkey, sizeof subkey); in crypto_secretbox_xchacha20poly1305_open_detached() 127 n + 16, subkey); in crypto_secretbox_xchacha20poly1305_open_detached() [all …]
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | kdf.c | 9 unsigned char *subkey; in tv_kdf() local 22 subkey = (unsigned char *) sodium_malloc(crypto_kdf_BYTES_MAX); in tv_kdf() 24 ret = crypto_kdf_derive_from_key(subkey, crypto_kdf_BYTES_MAX, in tv_kdf() 27 sodium_bin2hex(hex, sizeof hex, subkey, crypto_kdf_BYTES_MAX); in tv_kdf() 30 sodium_free(subkey); in tv_kdf() 33 subkey = (unsigned char *) sodium_malloc(crypto_kdf_BYTES_MAX); in tv_kdf() 34 if (crypto_kdf_derive_from_key(subkey, (size_t) i, in tv_kdf() 36 sodium_bin2hex(hex, sizeof hex, subkey, (size_t) i); in tv_kdf() 42 sodium_free(subkey); in tv_kdf()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | generate_subkey.c | 53 krb5_keyblock **subkey) in krb5_generate_subkey_extended() argument 57 ALLOC(*subkey, 1); in krb5_generate_subkey_extended() 58 if (*subkey == NULL) { in krb5_generate_subkey_extended() 67 ret = krb5_generate_random_keyblock(context, etype, *subkey); in krb5_generate_subkey_extended() 69 free(*subkey); in krb5_generate_subkey_extended() 70 *subkey = NULL; in krb5_generate_subkey_extended()
|
H A D | get_cred.c | 90 krb5_keyblock *subkey) in set_auth_data() argument 112 ret = krb5_crypto_init(context, subkey, 0, &crypto); in set_auth_data() 150 krb5_keyblock **subkey, in init_tgs_req() argument 271 ret = krb5_auth_con_getlocalsubkey(context, ac, subkey); in init_tgs_req() 330 const krb5_keyblock *subkey = skey; in decrypt_tkt_with_subkey() local 343 if (subkey) { in decrypt_tkt_with_subkey() 344 ret = krb5_crypto_init(context, subkey, 0, &crypto); in decrypt_tkt_with_subkey() 356 if (ret && subkey->keytype == ETYPE_ARCFOUR_HMAC_MD5) { in decrypt_tkt_with_subkey() 365 if (subkey == NULL || ret) { in decrypt_tkt_with_subkey() 413 krb5_keyblock *subkey = NULL; in get_cred_kdc() local [all …]
|
H A D | rd_rep.c | 102 if ((*repl)->subkey) in krb5_rd_rep() 103 krb5_auth_con_setremotesubkey(context, auth_context, (*repl)->subkey); in krb5_rd_rep()
|
H A D | mk_rep.c | 67 &body.subkey); in krb5_mk_rep() 75 body.subkey = NULL; in krb5_mk_rep()
|
H A D | auth_context.c | 328 krb5_keyblock *subkey; in krb5_auth_con_generatelocalsubkey() local 332 &subkey); in krb5_auth_con_generatelocalsubkey() 337 auth_context->local_subkey = subkey; in krb5_auth_con_generatelocalsubkey()
|
H A D | build_auth.c | 128 ret = krb5_auth_con_getlocalsubkey(context, auth_context, &auth.subkey); in _krb5_build_authenticator()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_secretbox/xsalsa20poly1305/ |
H A D | secretbox_xsalsa20poly1305.c | 31 unsigned char subkey[32]; in crypto_secretbox_xsalsa20poly1305_open() local 37 crypto_stream_xsalsa20(subkey, 32, n, k); in crypto_secretbox_xsalsa20poly1305_open() 39 clen - 32, subkey) != 0) { in crypto_secretbox_xsalsa20poly1305_open()
|
/freebsd/contrib/jemalloc/src/ |
H A D | rtree.c | 249 uintptr_t subkey = rtree_subkey(key, level); \ in rtree_leaf_elm_lookup_hard() 253 &node[subkey], level, dependent) : \ in rtree_leaf_elm_lookup_hard() 254 rtree_child_node_tryread(&node[subkey], \ in rtree_leaf_elm_lookup_hard() 259 &node[subkey], level, dependent) : \ in rtree_leaf_elm_lookup_hard() 260 rtree_child_leaf_tryread(&node[subkey], \ in rtree_leaf_elm_lookup_hard() 288 uintptr_t subkey = rtree_subkey(key, level); \ in rtree_leaf_elm_lookup_hard() 289 return &leaf[subkey]; \ in rtree_leaf_elm_lookup_hard()
|
/freebsd/lib/libnv/tests/ |
H A D | cnv_tests.cc | 148 const char *key, *subkey; in ATF_TEST_CASE_BODY() local 163 subkey = "subname"; in ATF_TEST_CASE_BODY() 167 nvlist_add_null(value, subkey); in ATF_TEST_CASE_BODY() 168 ATF_REQUIRE_EQ(strcmp(subkey, nvlist_next(value, &type, &cookie)), 0); in ATF_TEST_CASE_BODY() 172 ATF_REQUIRE(nvlist_exists(value, subkey)); in ATF_TEST_CASE_BODY() 173 ATF_REQUIRE(nvlist_exists_null(value, subkey)); in ATF_TEST_CASE_BODY() 199 ATF_REQUIRE_EQ(strcmp(subkey, nvlist_next(result, &type, &cookie)), 0); in ATF_TEST_CASE_BODY() 203 ATF_REQUIRE(nvlist_exists(result, subkey)); in ATF_TEST_CASE_BODY() 204 ATF_REQUIRE(nvlist_exists_null(result, subkey)); in ATF_TEST_CASE_BODY() 681 const char *key, *subkey; in ATF_TEST_CASE_BODY() local [all …]
|
H A D | nv_tests.cc | 198 const char *key, *subkey; in ATF_TEST_CASE_BODY() local 204 subkey = "subkey"; in ATF_TEST_CASE_BODY() 211 nvlist_add_null(sublist, subkey); in ATF_TEST_CASE_BODY() 221 ATF_REQUIRE(nvlist_exists_null(value, subkey)); in ATF_TEST_CASE_BODY()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_kdf/ |
H A D | crypto_kdf.c | 36 crypto_kdf_derive_from_key(unsigned char *subkey, size_t subkey_len, in crypto_kdf_derive_from_key() argument 41 return crypto_kdf_blake2b_derive_from_key(subkey, subkey_len, in crypto_kdf_derive_from_key()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_kdf/blake2b/ |
H A D | kdf_blake2b.c | 31 int crypto_kdf_blake2b_derive_from_key(unsigned char *subkey, size_t subkey_len, in crypto_kdf_blake2b_derive_from_key() argument 48 return crypto_generichash_blake2b_salt_personal(subkey, subkey_len, in crypto_kdf_blake2b_derive_from_key()
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | rtree.h | 340 uintptr_t subkey = rtree_subkey(key, RTREE_HEIGHT-1); in rtree_leaf_elm_lookup() local 341 return &leaf[subkey]; in rtree_leaf_elm_lookup() 369 uintptr_t subkey = rtree_subkey(key, RTREE_HEIGHT-1); \ in rtree_leaf_elm_lookup() 370 return &leaf[subkey]; \ in rtree_leaf_elm_lookup() 474 uintptr_t subkey = rtree_subkey(key, RTREE_HEIGHT-1); in rtree_szind_slab_read_fast() local 475 elm = &leaf[subkey]; in rtree_szind_slab_read_fast()
|
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/ |
H A D | crypto_kdf_blake2b.h | 34 int crypto_kdf_blake2b_derive_from_key(unsigned char *subkey, size_t subkey_len,
|
H A D | crypto_kdf.h | 39 int crypto_kdf_derive_from_key(unsigned char *subkey, size_t subkey_len,
|
/freebsd/crypto/heimdal/lib/gssapi/krb5/ |
H A D | gkrb5_err.et | 26 error_code KG_NO_SUBKEY, "Authenticator has no subkey"
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | README-Windows.txt | 258 parameters and a 'interfaces' subkey with all the interface configuration 259 (adapter to confname mapping). Each such mapping is a subkey that has 289 networks as a subkey. Each network has set of values in the same way as 290 network block in the configuration file. In addition, blobs subkey has
|
/freebsd/crypto/heimdal/kdc/ |
H A D | krb5tgs.c | 1165 krb5_keyblock *subkey = NULL; in tgs_parse_request() local 1317 ret = krb5_auth_con_getremotesubkey(context, ac, &subkey); in tgs_parse_request() 1325 if(subkey == NULL){ in tgs_parse_request() 1329 ret = krb5_auth_con_getkey(context, ac, &subkey); in tgs_parse_request() 1338 if(subkey == NULL){ in tgs_parse_request() 1346 *replykey = subkey; in tgs_parse_request() 1351 ret = krb5_crypto_init(context, subkey, 0, &crypto); in tgs_parse_request()
|