| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
| H A D | enc_helper.c | 39 cipher->ciphertext.length = enclen; 42 if ((cipher->ciphertext.data = (char *) malloc(enclen)) == NULL) { 43 cipher->ciphertext.length = 0; 48 free(cipher->ciphertext.data); 49 cipher->ciphertext.data = NULL;
|
| H A D | encode_kdc.c | 42 dec_rep->enc_part.ciphertext is allocated and filled in. 102 (void) memset(dec_rep->enc_part.ciphertext.data, 0, \ 103 dec_rep->enc_part.ciphertext.length); \ 104 free(dec_rep->enc_part.ciphertext.data); \ 105 dec_rep->enc_part.ciphertext.length = 0; \ 106 dec_rep->enc_part.ciphertext.data = 0;}
|
| H A D | mk_rep.c | 86 memset(reply.enc_part.ciphertext.data, 0, reply.enc_part.ciphertext.length); 87 free(reply.enc_part.ciphertext.data); 88 reply.enc_part.ciphertext.length = 0; 89 reply.enc_part.ciphertext.data = 0;
|
| H A D | decrypt_tk.c | 53 scratch.length = ticket->enc_part.ciphertext.length; 54 if (!(scratch.data = malloc(ticket->enc_part.ciphertext.length)))
|
| H A D | kdc_rep_dc.c | 55 scratch.length = dec_rep->enc_part.ciphertext.length; 56 if (!(scratch.data = malloc(dec_rep->enc_part.ciphertext.length))) {
|
| H A D | mk_priv.c | 71 privmsg.enc_part.ciphertext.length = enclen; 72 if (!(privmsg.enc_part.ciphertext.data = 73 malloc(privmsg.enc_part.ciphertext.length))) { 102 memset(privmsg.enc_part.ciphertext.data, 0, 103 privmsg.enc_part.ciphertext.length); 104 free(privmsg.enc_part.ciphertext.data); 105 privmsg.enc_part.ciphertext.length = 0; 106 privmsg.enc_part.ciphertext.data = 0;
|
| H A D | send_tgs.c | 94 request.authenticator.ciphertext.data = 0; 117 memset(request.authenticator.ciphertext.data, 0, 118 request.authenticator.ciphertext.length); 119 free(request.authenticator.ciphertext.data); 214 krb5_xfree(tgsreq.authorization_data.ciphertext.data); 339 if (tgsreq.authorization_data.ciphertext.data) { 340 memset(tgsreq.authorization_data.ciphertext.data, 0, 341 tgsreq.authorization_data.ciphertext.length); 342 krb5_xfree(tgsreq.authorization_data.ciphertext.data);
|
| H A D | copy_tick.c | 109 retval = krb5_copy_data(context, &from->enc_part.ciphertext, &scratch); 115 tempto->enc_part.ciphertext = *scratch; 119 krb5_xfree(tempto->enc_part.ciphertext.data);
|
| H A D | mk_cred.c | 42 * data to the ciphertext area. 45 pencdata->ciphertext.data = scratch->data; 46 pencdata->ciphertext.length = scratch->length; 57 memset(pencdata->ciphertext.data, 0, pencdata->ciphertext.length); 58 free(pencdata->ciphertext.data); 59 pencdata->ciphertext.length = 0; 60 pencdata->ciphertext.data = 0;
|
| H A D | mk_req_ext.c | 144 request.authenticator.ciphertext.data = 0; 266 if (request.authenticator.ciphertext.data) { 267 (void) memset(request.authenticator.ciphertext.data, 0, 268 request.authenticator.ciphertext.length); 269 free(request.authenticator.ciphertext.data);
|
| /illumos-gate/usr/src/uts/common/crypto/io/ |
| H A D | blowfish.c | 337 crypto_data_t *ciphertext, crypto_req_handle_t req) 354 BLOWFISH_ARG_INPLACE(plaintext, ciphertext); 360 if (ciphertext->cd_length < plaintext->cd_length) { 361 ciphertext->cd_length = plaintext->cd_length; 368 ret = blowfish_encrypt_update(ctx, plaintext, ciphertext, req); 378 blowfish_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext, argument 390 if ((ciphertext->cd_length & (BLOWFISH_BLOCK_LEN - 1)) != 0) 396 BLOWFISH_ARG_INPLACE(ciphertext, plaintext); 402 if (plaintext->cd_length < ciphertext->cd_length) { 403 plaintext->cd_length = ciphertext 336 blowfish_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 420 blowfish_encrypt_update(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 483 blowfish_decrypt_update(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_req_handle_t req) argument 594 blowfish_encrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument 681 blowfish_decrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument [all...] |
| H A D | aes.c | 406 crypto_data_t *ciphertext, crypto_req_handle_t req) 424 AES_ARG_INPLACE(plaintext, ciphertext); 447 if (ciphertext->cd_length < length_needed) { 448 ciphertext->cd_length = length_needed; 452 saved_length = ciphertext->cd_length; 453 saved_offset = ciphertext->cd_offset; 458 ret = aes_encrypt_update(ctx, plaintext, ciphertext, req); 470 * it to existing ciphertext. So, need to adjust the left over 475 ciphertext->cd_offset = ciphertext 405 aes_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 520 aes_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_req_handle_t req) argument 635 aes_encrypt_update(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 710 aes_decrypt_update(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_req_handle_t req) argument 959 aes_encrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument 1089 aes_decrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument [all...] |
| H A D | rsa.c | 524 crypto_data_t *ciphertext, crypto_req_handle_t req) 532 RSA_ARG_INPLACE(plaintext, ciphertext); 541 ciphertext); 553 crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, 560 RSA_ARG_INPLACE(plaintext, ciphertext); 563 ciphertext)); 589 crypto_data_t *plaintext, crypto_data_t *ciphertext) 618 if (ciphertext->cd_length < modulus_len) { 619 ciphertext->cd_length = modulus_len; 641 /* copy out to ciphertext */ 523 rsaprov_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 551 rsa_encrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument 588 rsa_encrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext) argument 695 rsaprov_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_req_handle_t req) argument 718 rsa_decrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument 734 rsa_decrypt_common(rsa_mech_type_t mech_type, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext) argument [all...] |
| /illumos-gate/usr/src/uts/common/des/ |
| H A D | des_crypt.c | 530 crypto_data_t *ciphertext, crypto_req_handle_t req) 547 DES_ARG_INPLACE(plaintext, ciphertext); 553 if (ciphertext->cd_length < plaintext->cd_length) { 554 ciphertext->cd_length = plaintext->cd_length; 561 ret = des_encrypt_update(ctx, plaintext, ciphertext, req); 571 des_decrypt(crypto_ctx_t *ctx, crypto_data_t *ciphertext, argument 583 if ((ciphertext->cd_length & (DES_BLOCK_LEN - 1)) != 0) 589 DES_ARG_INPLACE(ciphertext, plaintext); 595 if (plaintext->cd_length < ciphertext->cd_length) { 596 plaintext->cd_length = ciphertext 529 des_encrypt(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 613 des_encrypt_update(crypto_ctx_t *ctx, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 675 des_decrypt_update(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_req_handle_t req) argument 737 des_encrypt_final(crypto_ctx_t *ctx, crypto_data_t *ciphertext, crypto_req_handle_t req) argument 785 des_encrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument 888 des_decrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument [all...] |
| /illumos-gate/usr/src/uts/common/crypto/api/ |
| H A D | kcf_cipher.c | 61 * CRYPTO_INVALID_CIPHERTEXT: bogus 'ciphertext' argument. 297 * ciphertext: Storage for the encrypted message. The length needed 308 * When complete and successful, 'ciphertext' will contain the encrypted 320 crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, 340 plaintext, ciphertext, tmpl); 355 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, 402 plaintext, ciphertext, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq)); 406 mech, key, plaintext, ciphertext, spi_ctx_tmpl); 459 * ciphertext: Storage for the encrypted message part. 474 crypto_data_t *ciphertext, crypto_call_req_ 318 crypto_encrypt_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_data_t *plaintext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, crypto_call_req_t *crq) argument 354 crypto_encrypt(crypto_mechanism_t *mech, crypto_data_t *plaintext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *ciphertext, crypto_call_req_t *crq) argument 473 crypto_encrypt_update(crypto_context_t context, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument 533 crypto_encrypt_final(crypto_context_t context, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument 599 crypto_decrypt_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_data_t *ciphertext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext, crypto_call_req_t *crq) argument 636 crypto_decrypt(crypto_mechanism_t *mech, crypto_data_t *ciphertext, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *plaintext, crypto_call_req_t *crq) argument 755 crypto_decrypt_update(crypto_context_t context, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_call_req_t *cr) argument 852 crypto_encrypt_single(crypto_context_t context, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_call_req_t *cr) argument 887 crypto_decrypt_single(crypto_context_t context, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_call_req_t *cr) argument [all...] |
| /illumos-gate/usr/src/lib/crypt_modules/bsdbf/ |
| H A D | bcrypt.c | 200 uint8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; local 279 cdata[i] = Blowfish_stream2word(ciphertext, 287 ciphertext[4 * i + 3] = cdata[i] & 0xff; 289 ciphertext[4 * i + 2] = cdata[i] & 0xff; 291 ciphertext[4 * i + 1] = cdata[i] & 0xff; 293 ciphertext[4 * i + 0] = cdata[i] & 0xff; 307 encode_base64((uint8_t *)encrypted + strlen(encrypted), ciphertext,
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
| H A D | kfree.c | 64 if (val->enc_part.ciphertext.data) { 65 krb5_xfree(val->enc_part.ciphertext.data); 66 val->enc_part.ciphertext.data = 0; 78 if (val->authenticator.ciphertext.data) { 79 krb5_xfree(val->authenticator.ciphertext.data); 80 val->authenticator.ciphertext.data = 0; 165 if (val->enc_part.ciphertext.data) { 166 krb5_xfree(val->enc_part.ciphertext.data); 167 val->enc_part.ciphertext.data = 0; 353 if (val->enc_part.ciphertext [all...] |
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
| H A D | old_api_glue.c | 68 outputd.ciphertext.length = outlen; 69 outputd.ciphertext.data = outptr; 93 /* size is the length of the input ciphertext data */ 95 inputd.ciphertext.length = size; 97 inputd.ciphertext.data = (char*)inptr; 308 enc_data->ciphertext.length = enclen; 309 if ((enc_data->ciphertext.data = malloc(enclen)) == NULL) 313 free(enc_data->ciphertext.data); 334 data->length = enc_data->ciphertext.length;
|
| /illumos-gate/usr/src/lib/krb5/kdb/ |
| H A D | decrypt_key.c | 91 cipher.ciphertext.length = key_data->key_data_length[0]-2; 92 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */
|
| H A D | encrypt_key.c | 116 cipher.ciphertext.length = len; 117 cipher.ciphertext.data = (char *)ptr; /* SUNWresync121 XXX */
|
| /illumos-gate/usr/src/uts/common/sys/crypto/ |
| H A D | impl.h | 680 #define KCF_PROV_ENCRYPT(pd, ctx, plaintext, ciphertext, req) ( \ 682 KCF_PROV_CIPHER_OPS(pd)->encrypt(ctx, plaintext, ciphertext, req) : \ 685 #define KCF_PROV_ENCRYPT_UPDATE(pd, ctx, plaintext, ciphertext, req) ( \ 688 ciphertext, req) : \ 691 #define KCF_PROV_ENCRYPT_FINAL(pd, ctx, ciphertext, req) ( \ 693 KCF_PROV_CIPHER_OPS(pd)->encrypt_final(ctx, ciphertext, req) : \ 696 #define KCF_PROV_ENCRYPT_ATOMIC(pd, session, mech, key, plaintext, ciphertext, \ 700 (pd)->pd_prov_handle, session, mech, key, plaintext, ciphertext, \ 710 #define KCF_PROV_DECRYPT(pd, ctx, ciphertext, plaintext, req) ( \ 712 KCF_PROV_CIPHER_OPS(pd)->decrypt(ctx, ciphertext, plaintex [all...] |
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
| H A D | decrypt.c | 74 key, usage, ivec, &input->ciphertext, output));
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
| H A D | util_crypt.c | 155 outputd.ciphertext.length = length; 156 outputd.ciphertext.data = out; 200 inputd.ciphertext.length = length; 201 inputd.ciphertext.data = (char *)in; /* Solaris Kerberos */
|
| /illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/ |
| H A D | k5_arcfour.c | 84 krb5_data d1, d2, d3, salt, plaintext, checksum, ciphertext, confounder; local 173 ciphertext.length=krb5_roundup(input->length+CONFOUNDERLENGTH,blocksize); 174 ciphertext.data=output->data+hashsize; 248 ret = (*(enc->encrypt))(context, &k3, ivec, &plaintext, &ciphertext); 280 krb5_data d1,d2,d3,salt,ciphertext,plaintext,checksum; local 354 ciphertext.length=input->length-hashsize; 355 ciphertext.data=input->data+hashsize; 357 plaintext.length=ciphertext.length; 412 ret=(*(enc->decrypt))(context, &k3, ivec, &ciphertext, &plaintext);
|
| /illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
| H A D | do_tgs_req.c | 437 if (request->authorization_data.ciphertext.data) { 440 scratch.length = request->authorization_data.ciphertext.length; 442 malloc(request->authorization_data.ciphertext.length))) { 684 if (ticket_reply.enc_part.ciphertext.data) { 685 memset(ticket_reply.enc_part.ciphertext.data, 0, 686 ticket_reply.enc_part.ciphertext.length); 687 free(ticket_reply.enc_part.ciphertext.data); 688 ticket_reply.enc_part.ciphertext.data = NULL; 692 if (reply.enc_part.ciphertext.data) { 693 memset(reply.enc_part.ciphertext [all...] |