Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Denc_helper.c30 …text, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *plain, krb5_enc_data *cipher) in krb5_encrypt_helper() argument
39 cipher->ciphertext.length = enclen; in krb5_encrypt_helper()
42 if ((cipher->ciphertext.data = (char *) malloc(enclen)) == NULL) { in krb5_encrypt_helper()
43 cipher->ciphertext.length = 0; in krb5_encrypt_helper()
46 ret = krb5_c_encrypt(context, key, usage, 0, plain, cipher); in krb5_encrypt_helper()
48 free(cipher->ciphertext.data); in krb5_encrypt_helper()
49 cipher->ciphertext.data = NULL; in krb5_encrypt_helper()
/illumos-gate/usr/src/uts/common/des/
H A Ddes_soft.c333 cipher(0, r0, l0, r1, l1); in des_encrypt()
334 cipher(1, r1, l1, r0, l0); in des_encrypt()
335 cipher(2, r0, l0, r1, l1); in des_encrypt()
336 cipher(3, r1, l1, r0, l0); in des_encrypt()
337 cipher(4, r0, l0, r1, l1); in des_encrypt()
338 cipher(5, r1, l1, r0, l0); in des_encrypt()
339 cipher(6, r0, l0, r1, l1); in des_encrypt()
340 cipher(7, r1, l1, r0, l0); in des_encrypt()
341 cipher(8, r0, l0, r1, l1); in des_encrypt()
342 cipher(9, r1, l1, r0, l0); in des_encrypt()
[all …]
/illumos-gate/usr/src/lib/libcrypt/common/
H A Ddes_soft.c375 cipher(0, r0, l0, r1, l1); in des_encrypt()
376 cipher(1, r1, l1, r0, l0); in des_encrypt()
377 cipher(2, r0, l0, r1, l1); in des_encrypt()
378 cipher(3, r1, l1, r0, l0); in des_encrypt()
379 cipher(4, r0, l0, r1, l1); in des_encrypt()
380 cipher(5, r1, l1, r0, l0); in des_encrypt()
381 cipher(6, r0, l0, r1, l1); in des_encrypt()
382 cipher(7, r1, l1, r0, l0); in des_encrypt()
383 cipher(8, r0, l0, r1, l1); in des_encrypt()
384 cipher(9, r1, l1, r0, l0); in des_encrypt()
[all …]
/illumos-gate/usr/src/lib/libnsl/des/
H A Ddes_soft.c410 cipher(0, r0, l0, r1, l1); in __des_encrypt()
411 cipher(1, r1, l1, r0, l0); in __des_encrypt()
412 cipher(2, r0, l0, r1, l1); in __des_encrypt()
413 cipher(3, r1, l1, r0, l0); in __des_encrypt()
414 cipher(4, r0, l0, r1, l1); in __des_encrypt()
415 cipher(5, r1, l1, r0, l0); in __des_encrypt()
416 cipher(6, r0, l0, r1, l1); in __des_encrypt()
417 cipher(7, r1, l1, r0, l0); in __des_encrypt()
418 cipher(8, r0, l0, r1, l1); in __des_encrypt()
419 cipher(9, r1, l1, r0, l0); in __des_encrypt()
[all …]
/illumos-gate/usr/src/cmd/lofiadm/
H A Dmain.c448 if (cipher != NULL) { in add_mapping()
742 cipher->name); in kernel_cipher_check()
745 cipher->iv_name); in kernel_cipher_check()
820 cipher->name); in kernel_cipher_check()
932 if (cipher->slot == (CK_SLOT_ID)-1 || cipher->max_keysize == 0) { in getkeyfromuser()
1030 if (*ksz < cipher->min_keysize || cipher->max_keysize < *ksz) { in getkeyfromfile()
1034 cipher->min_keysize, cipher->max_keysize); in getkeyfromfile()
1102 if (cipher->slot == (CK_SLOT_ID)-1 || cipher->max_keysize == 0) { in getkeyfromtoken()
1224 if (rksz < cipher->min_keysize || cipher->max_keysize < rksz) { in getkeyfromtoken()
1243 mech_alias_t *cipher; in match_token_cipher() local
[all …]
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto.c140 if (cipher >= IEEE80211_CIPHER_MAX) { in ieee80211_crypto_newkey()
142 "invalid cipher %u\n", cipher); in ieee80211_crypto_newkey()
145 cip = ic->ic_ciphers[cipher]; in ieee80211_crypto_newkey()
150 cipher, cipher < IEEE80211_N(cipher_modnames) ? in ieee80211_crypto_newkey()
161 if ((ic->ic_caps & (1<<cipher)) == 0) { in ieee80211_crypto_newkey()
172 if (cipher == IEEE80211_CIPHER_TKIP && in ieee80211_crypto_newkey()
235 if (cipher == IEEE80211_CIPHER_TKIP) in ieee80211_crypto_newkey()
360 uint32_t cipher; in ieee80211_crypto_getciphertype() local
377 cipher = key->wk_cipher->ic_cipher; in ieee80211_crypto_getciphertype()
378 ASSERT(cipher < IEEE80211_N(ciphermap)); in ieee80211_crypto_getciphertype()
[all …]
/illumos-gate/usr/src/common/crypto/modes/
H A Dctr.c60 int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) in ctr_new_keyblock()
81 cipher(ctx->ctr_keysched, (uint8_t *)ctx->ctr_cb, in ctr_new_keyblock()
98 int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) in ctr_xor()
111 ctr_new_keyblock(ctx, cipher); in ctr_xor()
169 int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) in ctr_mode_contiguous_blocks()
228 ctr_xor(ctx, inp, out_data, out_data_len, block_size, cipher); in ctr_mode_contiguous_blocks()
241 int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct), in ctr_init_ctx()
266 cipher(ctr_ctx->ctr_keysched, (uint8_t *)ctr_ctx->ctr_cb, in ctr_init_ctx()
H A Decb.c44 int (*cipher)(const void *ks, const uint8_t *pt, uint8_t *ct)) in ecb_cipher_contiguous_blocks()
88 cipher(ctx->ecb_keysched, blockp, blockp); in ecb_cipher_contiguous_blocks()
100 cipher(ctx->ecb_keysched, blockp, lastp); in ecb_cipher_contiguous_blocks()
H A Dmodes.h297 crypto_data_t *, size_t, int (*cipher)(const void *, const uint8_t *,
314 int (*cipher)(const void *, const uint8_t *, uint8_t *));
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c60 krb5_data cipher, clear; in process_chpw_request() local
81 cipher.length = 0; in process_chpw_request()
82 cipher.data = NULL; in process_chpw_request()
333 cipher.length = (req->data + req->length) - ptr; in process_chpw_request()
334 cipher.data = ptr; in process_chpw_request()
431 cipher.length = 0; in process_chpw_request()
442 &cipher, &replay)) { in process_chpw_request()
455 if (cipher.length == 0) { in process_chpw_request()
539 (void) memcpy(ptr, cipher.data, cipher.length); in process_chpw_request()
552 if (cipher.data != NULL) in process_chpw_request()
[all …]
/illumos-gate/usr/src/lib/krb5/kdb/
H A Ddecrypt_key.c81 krb5_enc_data cipher; in krb5_dbekd_decrypt_key_data() local
90 cipher.enctype = ENCTYPE_UNKNOWN; in krb5_dbekd_decrypt_key_data()
91 cipher.ciphertext.length = key_data->key_data_length[0]-2; in krb5_dbekd_decrypt_key_data()
92 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */ in krb5_dbekd_decrypt_key_data()
99 &cipher, &plain))) { in krb5_dbekd_decrypt_key_data()
H A Dencrypt_key.c84 krb5_enc_data cipher; in krb5_dbekd_encrypt_key_data() local
116 cipher.ciphertext.length = len; in krb5_dbekd_encrypt_key_data()
117 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */ in krb5_dbekd_encrypt_key_data()
120 &plain, &cipher))) { in krb5_dbekd_encrypt_key_data()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_enc.c31 aes_wrap(uint8_t *kek, int n, uint8_t *plain, uint8_t *cipher) in aes_wrap() argument
37 a = cipher; in aes_wrap()
38 r = cipher + 8; in aes_wrap()
55 r = cipher + 8; in aes_wrap()
82 aes_unwrap(uint8_t *kek, int n, uint8_t *cipher, uint8_t *plain) in aes_unwrap() argument
89 (void) memcpy(a, cipher, 8); in aes_unwrap()
91 (void) memcpy(r, cipher + 8, 8 * n); in aes_unwrap()
H A Ddriver_wifi.c196 dladm_wlan_cipher_t cipher; in wpa_driver_wifi_set_key() local
207 cipher = DLADM_WLAN_CIPHER_WEP; in wpa_driver_wifi_set_key()
211 cipher = DLADM_WLAN_CIPHER_TKIP; in wpa_driver_wifi_set_key()
215 cipher = DLADM_WLAN_CIPHER_AES_CCM; in wpa_driver_wifi_set_key()
235 status = dladm_wlan_wpa_set_key(handle, linkid, cipher, &bss, set_tx, in wpa_driver_wifi_set_key()
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dk5sealv3.c145 krb5_enc_data cipher; in gss_krb5int_make_seal_token_v3() local
202 cipher.ciphertext.data = (char *)outbuf + 16; in gss_krb5int_make_seal_token_v3()
203 cipher.ciphertext.length = bufsize - 16; in gss_krb5int_make_seal_token_v3()
204 cipher.enctype = key->enctype; in gss_krb5int_make_seal_token_v3()
205 err = krb5_c_encrypt(context, key, key_usage, 0, &plain, &cipher); in gss_krb5int_make_seal_token_v3()
442 krb5_enc_data cipher; in gss_krb5int_unseal_token_v3() local
452 cipher.enctype = key->enctype; in gss_krb5int_unseal_token_v3()
453 cipher.ciphertext.length = bodysize - 16; in gss_krb5int_unseal_token_v3()
454 cipher.ciphertext.data = (char *)ptr + 16; in gss_krb5int_unseal_token_v3()
460 &cipher, &plain); in gss_krb5int_unseal_token_v3()
/illumos-gate/usr/src/uts/common/crypto/core/
H A Dkcf_prov_lib.c200 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *), in crypto_update_iov()
214 rv = (cipher)(ctx, input->cd_raw.iov_base + input->cd_offset, in crypto_update_iov()
222 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *), in crypto_update_uio()
264 (cipher)(ctx, uiop->uio_iov[vec_idx].iov_base + offset, in crypto_update_uio()
287 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *), in crypto_update_mp()
320 (cipher)(ctx, (char *)(mp->b_rptr + offset), cur_len, in crypto_update_mp()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dchap_ms.c144 DesEncrypt(clear, key, cipher) in DesEncrypt() argument
147 u_char *cipher; /* OUT 8 octets */
164 Collapse(des_input, cipher);
167 CHAPDEBUG((LOG_INFO, "DesEncrypt: 8 octet output: %.8B", cipher));
174 DesEncrypt(clear, key, cipher) in DesEncrypt() argument
177 u_char *cipher; /* OUT 8 octets */
190 des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher, key_schedule, 1);
193 CHAPDEBUG((LOG_INFO, "DesEncrypt: 8 octet output: %.8B", cipher));
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dcrypto.c53 cipher_proc cipher; /* Routine to en/decrypt with */ member
383 stat = (*v->msg)(&buf, mesg, v->signer->cipher, keys, sig); in __mk_sig()
400 cipher_proc cipher; /* cipher routine to use */ in __verify_sig() local
412 cipher = QOP_table[qop].verifier->signer->cipher; in __verify_sig()
415 if ((stat = (*cipher)(&buf, keys, ENCIPHER)) != DH_SUCCESS) in __verify_sig()
/illumos-gate/usr/src/lib/sasl_plugins/digestmd5/
H A Ddigestmd5.c2617 cipher++;
4350 cipher++;
4352 if (cipher->name) {
4522 if ((limit >= cipher->ssf) && (musthave <= cipher->ssf) &&
4524 (!ctext->cipher || (cipher->ssf > ctext->cipher->ssf))) {
4525 ctext->cipher = cipher;
4527 cipher++;
4530 if (ctext->cipher) {
4838 ctext->cipher = text->reauth->e[val].u.c.cipher;
5021 text->reauth->e[val].u.c.cipher = ctext->cipher;
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_cfg.c1290 uint16_t cipher = 0; in smb31_config_get_encrypt_cipher() local
1312 cipher |= smb31_enc_ciphers[i].val; in smb31_config_get_encrypt_cipher()
1320 if (cipher == 0) in smb31_config_get_encrypt_cipher()
1321 cipher = SMB3_ALL_CIPHERS; in smb31_config_get_encrypt_cipher()
1323 return (cipher); in smb31_config_get_encrypt_cipher()
/illumos-gate/usr/src/cmd/sendmail/cf/m4/
H A Dcfhead.m4277 define(`_REC_TLS_', `(version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})…
307 define(`confMILTER_MACROS_HELO', ``{tls_version}, {cipher}, {cipher_bits}, {cert_subject}, {cert_is…
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd.h223 uint8_t cipher; member
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dkdc_preauth.c2117 krb5_enc_data cipher; in get_sam_edata() local
2125 cipher.ciphertext.length = 8; in get_sam_edata()
2126 cipher.ciphertext.data = outputblock; in get_sam_edata()
2129 /* XXX */ 0, 0, &plain, &cipher))) { in get_sam_edata()
/illumos-gate/usr/src/uts/common/sys/crypto/
H A Dimpl.h1359 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
1362 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
1365 int (*cipher)(void *, caddr_t, size_t, crypto_data_t *),
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlwlan.c1516 dladm_wlan_cipher_t cipher, const dladm_wlan_bssid_t *addr, in dladm_wlan_wpa_set_key() argument
1523 switch (cipher) { in dladm_wlan_wpa_set_key()

12