Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 25 of 64) sorted by relevance

123

/titanic_44/usr/src/cmd/mandoc/
H A Dpreconv.c38 enum enc { enum
56 static int cue_enc(const struct buf *, size_t *, enum enc *);
312 cue_enc(const struct buf *b, size_t *offs, enum enc *enc) in cue_enc() argument
385 *enc = (enum enc)i; in cue_enc()
391 *enc = ENC__MAX; in cue_enc()
404 enum enc enc, def; in main() local
419 enc = def = ENC__MAX; in main()
436 def = (enum enc)i; in main()
438 enc = (enum enc)i; in main()
481 if (ENC__MAX == enc) in main()
[all …]
H A Dterm_ascii.c69 ascii_init(enum termenc enc, char *outopts) in ascii_init() argument
85 p->enc = TERMENC_ASCII; in ascii_init()
92 if (TERMENC_ASCII != enc) { in ascii_init()
93 v = TERMENC_LOCALE == enc ? in ascii_init()
97 p->enc = enc; in ascii_init()
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dcombine_keys.c58 const struct krb5_enc_provider *enc, const krb5_keyblock *inkey,
85 const struct krb5_enc_provider *enc; in krb5int_c_combine_keys() local
109 enc = krb5_enctypes_list[i].enc; in krb5int_c_combine_keys()
111 keybytes = enc->keybytes; in krb5int_c_combine_keys()
112 keylength = enc->keylength; in krb5int_c_combine_keys()
155 if ((ret = dr(context, enc, key1, r1, &input))) in krb5int_c_combine_keys()
171 if ((ret = dr(context, enc, key2, r2, &input))) in krb5int_c_combine_keys()
217 if ((ret = (*(enc->make_key))(context, &randbits, &tkey))) in krb5int_c_combine_keys()
259 if ((ret = krb5_derive_key(context, enc, &tkey, outkey, &input))) { in krb5int_c_combine_keys()
302 const struct krb5_enc_provider *enc, in dr() argument
[all …]
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/
H A Ddk_encrypt.c46 krb5_dk_encrypt_length(const struct krb5_enc_provider *enc, in krb5_dk_encrypt_length() argument
52 blocksize = enc->block_size; in krb5_dk_encrypt_length()
59 const struct krb5_enc_provider *enc, in krb5_dk_encrypt() argument
79 ret = init_derived_keydata(context, enc, in krb5_dk_encrypt()
87 blocksize = enc->block_size; in krb5_dk_encrypt()
90 krb5_dk_encrypt_length(enc, hash, input->length, &enclen); in krb5_dk_encrypt()
121 if ((ret = ((*(enc->encrypt))(context, derived_encr_key, in krb5_dk_encrypt()
167 krb5int_aes_encrypt_length(enc, hash, inputlen, length) in krb5int_aes_encrypt_length() argument
168 const struct krb5_enc_provider *enc; in krb5int_aes_encrypt_length()
175 blocksize = enc->block_size;
[all …]
H A Ddk_decrypt.c40 const struct krb5_enc_provider *enc,
52 const struct krb5_enc_provider *enc, in krb5_dk_decrypt() argument
58 return krb5_dk_decrypt_maybe_trunc_hmac(context, enc, hash, key, usage, in krb5_dk_decrypt()
65 const struct krb5_enc_provider *enc, in krb5int_aes_dk_decrypt() argument
71 return krb5_dk_decrypt_maybe_trunc_hmac(context, enc, hash, key, usage, in krb5int_aes_dk_decrypt()
78 const struct krb5_enc_provider *enc, in krb5_dk_decrypt_maybe_trunc_hmac() argument
98 ret = init_derived_keydata(context, enc, in krb5_dk_decrypt_maybe_trunc_hmac()
107 blocksize = enc->block_size; in krb5_dk_decrypt_maybe_trunc_hmac()
135 if ((ret = ((*(enc->decrypt))(context, derived_encr_key, in krb5_dk_decrypt_maybe_trunc_hmac()
H A Dchecksum.c49 struct krb5_enc_provider *enc, in derive_cksum_key() argument
77 ret = krb5_derive_key(context, enc, key, in derive_cksum_key()
124 struct krb5_enc_provider *enc = NULL; local
138 enc = (struct krb5_enc_provider *)krb5_enctypes_list[i].enc;
146 ret = derive_cksum_key(context, enc, key, usage, &cksum_key);
H A Dderive.c137 const struct krb5_enc_provider *enc, in init_derived_keydata() argument
173 rv = krb5_derive_key(context, enc, key, in init_derived_keydata()
212 rv = krb5_derive_key(context, enc, key, *d_hmac_key, &d1); in init_derived_keydata()
257 krb5_derive_key(context, enc, inkey, outkey, in_constant) in krb5_derive_key() argument
259 krb5_const struct krb5_enc_provider *enc;
271 blocksize = enc->block_size;
272 keybytes = enc->keybytes;
273 keylength = enc->keylength;
313 ret = (*(enc->encrypt))(context, inkey, 0, &inblock, &outblock);
335 ret = (*(enc->make_key))(context, &inblock, outkey);
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/include/
H A Ddk.h30 (const struct krb5_enc_provider *enc,
37 const struct krb5_enc_provider *enc,
45 krb5_const struct krb5_enc_provider *enc,
53 krb5_const struct krb5_enc_provider *enc,
67 krb5_const struct krb5_enc_provider *enc,
75 (const struct krb5_enc_provider *enc,
81 const struct krb5_enc_provider *enc,
89 const struct krb5_enc_provider *enc,
H A Dold.h35 (const struct krb5_enc_provider *enc,
41 const struct krb5_enc_provider *enc,
49 const struct krb5_enc_provider *enc,
58 const struct krb5_enc_provider *enc,
H A Draw.h30 (const struct krb5_enc_provider *enc,
36 const struct krb5_enc_provider *enc,
44 const struct krb5_enc_provider *enc,
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Drandom_to_key.c46 const struct krb5_enc_provider *enc; in krb5_c_random_to_key() local
62 enc = krb5_enctypes_list[i].enc; in krb5_c_random_to_key()
64 if (random_key->length != enc->keylength) in krb5_c_random_to_key()
68 ret = ((*(enc->make_key))(context, random_data, random_key)); in krb5_c_random_to_key()
H A Dmake_random_key.c42 const struct krb5_enc_provider *enc; in krb5_c_make_random_key() local
61 enc = krb5_enctypes_list[i].enc; in krb5_c_make_random_key()
63 keybytes = enc->keybytes; in krb5_c_make_random_key()
64 keylength = enc->keylength; in krb5_c_make_random_key()
92 ret = ((*(enc->make_key))(context, &random_data, random_key)); in krb5_c_make_random_key()
H A Dstring_to_key.c61 const struct krb5_enc_provider *enc; in krb5_c_string_to_key_with_params() local
72 enc = krb5_enctypes_list[i].enc; in krb5_c_string_to_key_with_params()
87 keybytes = enc->keybytes; in krb5_c_string_to_key_with_params()
88 keylength = enc->keylength; in krb5_c_string_to_key_with_params()
101 ret = (*krb5_enctypes_list[i].str2key)(context, enc, string, salt, in krb5_c_string_to_key_with_params()
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dpacket.c565 Enc *enc; in set_newkeys() local
597 enc = &newkeys[mode]->enc; in set_newkeys()
604 data_dump(enc->key, enc->key_len); in set_newkeys()
606 data_dump(enc->iv, enc->block_size); in set_newkeys()
610 cipher_init(cc, enc->cipher, enc->key, enc->key_len, in set_newkeys()
611 enc->iv, enc->block_size, crypt_type); in set_newkeys()
651 if (enc->block_size >= 16) in set_newkeys()
652 *max_blocks = (u_int64_t)1 << (enc->block_size * 2); in set_newkeys()
654 *max_blocks = ((u_int64_t)1 << 30) / enc->block_size; in set_newkeys()
657 *max_blocks = MIN(*max_blocks, rekey_limit / enc->block_size); in set_newkeys()
[all …]
H A Dkex.c350 choose_enc(int is_server, Enc *enc, char *client, char *server) in choose_enc() argument
361 if ((enc->cipher = cipher_by_name(name)) == NULL) in choose_enc()
364 enc->name = name; in choose_enc()
365 enc->enabled = 0; in choose_enc()
366 enc->iv = NULL; in choose_enc()
367 enc->key = NULL; in choose_enc()
368 enc->key_len = cipher_keylen(enc->cipher); in choose_enc()
369 enc->block_size = cipher_blocksize(enc->cipher); in choose_enc()
496 choose_enc(kex->server, &newkeys->enc, cprop[nenc], sprop[nenc]); in kex_choose_conf()
501 newkeys->enc.name, in kex_choose_conf()
[all …]
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/
H A Dold_encrypt.c37 krb5_old_encrypt_length(const struct krb5_enc_provider *enc, in krb5_old_encrypt_length() argument
44 blocksize = enc->block_size; in krb5_old_encrypt_length()
53 const struct krb5_enc_provider *enc, in krb5_old_encrypt() argument
66 blocksize = enc->block_size; in krb5_old_encrypt()
69 krb5_old_encrypt_length(enc, hash, input->length, &enclen); in krb5_old_encrypt()
106 if ((ret = ((*(enc->encrypt))(context, key, ivec, output, output)))) in krb5_old_encrypt()
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/raw/
H A Draw_encrypt.c38 krb5_raw_encrypt_length(const struct krb5_enc_provider *enc, in krb5_raw_encrypt_length() argument
44 blocksize = enc->block_size; in krb5_raw_encrypt_length()
52 const struct krb5_enc_provider *enc, in krb5_raw_encrypt() argument
58 return((*(enc->encrypt))(context, key, ivec, input, output)); in krb5_raw_encrypt()
H A Draw_decrypt.c39 const struct krb5_enc_provider *enc, in krb5_raw_decrypt() argument
47 return((*(enc->decrypt))(context, key, ivec, input, output)); in krb5_raw_decrypt()
/titanic_44/usr/src/cmd/audio/utilities/
H A Dhdr_misc.c217 char *enc; in audio_enc_to_str() local
243 enc = "u-law"; in audio_enc_to_str()
246 enc = "A-law"; in audio_enc_to_str()
249 enc = "linear PCM"; in audio_enc_to_str()
252 enc = "floating-point"; in audio_enc_to_str()
263 enc = "(unknown encoding?)"; in audio_enc_to_str()
276 (void) sprintf(str, "%s %s %s @ %s", chan, prec, enc, sbuf); in audio_enc_to_str()
/titanic_44/usr/src/cmd/ssh/sshd/
H A Daltprivsep.c457 Enc *enc; in altprivsep_get_newkeys() local
479 enc = &newkeys->enc; in altprivsep_get_newkeys()
484 enc->name = altprivsep_packet_get_string(NULL); in altprivsep_get_newkeys()
485 if ((enc->cipher = cipher_by_name(enc->name)) == NULL) in altprivsep_get_newkeys()
488 enc->key = altprivsep_packet_get_string(&enc->key_len); in altprivsep_get_newkeys()
489 enc->iv = altprivsep_packet_get_string(&enc->block_size); in altprivsep_get_newkeys()
624 Enc *enc; in aps_send_newkeys() local
635 enc = &newkeys->enc; in aps_send_newkeys()
645 packet_put_cstring(enc->name); in aps_send_newkeys()
646 packet_put_string(enc->key, enc->key_len); in aps_send_newkeys()
[all …]
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/crypto/dk/
H A Dstringtokey.c41 const struct krb5_enc_provider *enc, in krb5int_dk_string_to_key() argument
53 keybytes = enc->keybytes; in krb5int_dk_string_to_key()
54 keylength = enc->keylength; in krb5int_dk_string_to_key()
88 (*(enc->make_key))(context, &indata, &foldkey); in krb5int_dk_string_to_key()
95 if ((ret = krb5_derive_key(context, enc, &foldkey, key, &indata))) in krb5int_dk_string_to_key()
/titanic_44/usr/src/lib/libc/amd64/unwind/
H A Deh_frame.c188 table_ent_log_size(int enc) in table_ent_log_size() argument
190 int val = enc & 0xf; in table_ent_log_size()
214 int enc, ptrdiff_t reloc, uintptr_t base, in get_table_ent_val() argument
217 int val = enc & 0xf; in get_table_ent_val()
218 int rel = (enc >> 4) & 0xf; in get_table_ent_val()
298 locate_fde_for_pc(uint64_t pc, int enc,
354 locate_fde_for_pc(uint64_t pc, int enc, in locate_fde_for_pc() argument
362 int log_size = table_ent_log_size(enc); in locate_fde_for_pc()
373 get_table_ent_val(pr, table_end, enc, reloc, base, in locate_fde_for_pc()
H A Dcall_frame_inst.c120 int daf, int caf, int enc);
355 static uint64_t get_encoded_val(void **datap, ptrdiff_t reloc, int enc);
363 enum operand_desc opr, int daf, int caf, int enc) in _Unw_get_val() argument
460 return (get_encoded_val(datap, reloc, enc)); in _Unw_get_val()
462 return (get_encoded_val(datap, reloc, enc & 0x7)); in _Unw_get_val()
472 get_encoded_val(void **datap, ptrdiff_t reloc, int enc) in get_encoded_val() argument
474 int val = enc & 0xf; in get_encoded_val()
475 int rel = (enc >> 4) & 0xf; in get_encoded_val()
525 int daf, int caf, int enc);
533 int daf, int caf, int enc) in interpret_ops() argument
[all …]
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c21 krb5_arcfour_encrypt_length(enc, hash, inputlen, length) in krb5_arcfour_encrypt_length() argument
22 const struct krb5_enc_provider *enc; in krb5_arcfour_encrypt_length()
29 blocksize = enc->block_size;
72 krb5_arcfour_encrypt(context, enc, hash, key, usage, ivec, input, output) in krb5_arcfour_encrypt() argument
74 const struct krb5_enc_provider *enc;
89 blocksize = enc->block_size;
90 keybytes = enc->keybytes;
248 ret = (*(enc->encrypt))(context, &k3, ivec, &plaintext, &ciphertext);
269 krb5_arcfour_decrypt(context, enc, hash, key, usage, ivec, input, output) in krb5_arcfour_decrypt() argument
271 const struct krb5_enc_provider *enc;
[all …]
/titanic_44/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5seal.c57 krb5_keyblock *enc, in make_seal_token_v1() argument
104 if ((code = init_key_kef(context->kef_cipher_mt, enc))) { in make_seal_token_v1()
112 conflen = kg_confounder_size(context, enc); in make_seal_token_v1()
201 if ((code = kg_make_confounder(context, enc, plain))) { in make_seal_token_v1()
313 code = krb5_copy_keyblock (context, enc, &enc_key); in make_seal_token_v1()
336 if ((code = kg_encrypt(context, enc, KG_USAGE_SEAL, NULL, in make_seal_token_v1()
427 code = make_seal_token_v1(context, ctx->enc, ctx->seq,

123