/titanic_41/usr/src/uts/common/io/ |
H A D | cryptmod.c | 286 tmi->enc_data.method = CRYPT_METHOD_NONE; in cryptmodopen() 311 cleanup(&tmi->enc_data); in cryptmodclose() 444 savedbytes = tmi->enc_data.bytes % CFB_BLKSZ; in des_cfb_encrypt() 455 if (!(tmi->enc_data.bytes % CFB_BLKSZ)) { in des_cfb_encrypt() 457 retval = kef_crypt(&tmi->enc_data, in des_cfb_encrypt() 458 tmi->enc_data.block, in des_cfb_encrypt() 460 tmi->enc_data.blocklen, in des_cfb_encrypt() 481 tmi->enc_data.block[tmi->enc_data.bytes % CFB_BLKSZ]; in des_cfb_encrypt() 483 tmi->enc_data.bytes++; in des_cfb_encrypt() 487 if (!(tmi->enc_data.bytes % CFB_BLKSZ)) { in des_cfb_encrypt() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | old_api_glue.c | 287 krb5_enc_data *enc_data) in krb5_encrypt_data() argument 305 enc_data->magic = KV5M_ENC_DATA; in krb5_encrypt_data() 306 enc_data->kvno = 0; in krb5_encrypt_data() 307 enc_data->enctype = key->enctype; in krb5_encrypt_data() 308 enc_data->ciphertext.length = enclen; in krb5_encrypt_data() 309 if ((enc_data->ciphertext.data = malloc(enclen)) == NULL) in krb5_encrypt_data() 312 if ((ret = krb5_c_encrypt(context, key, 0, ivec?&ivecd:0, data, enc_data))) in krb5_encrypt_data() 313 free(enc_data->ciphertext.data); in krb5_encrypt_data() 319 krb5_pointer ivec, krb5_enc_data *enc_data, in krb5_decrypt_data() argument 334 data->length = enc_data->ciphertext.length; in krb5_decrypt_data() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | preauth2.c | 632 krb5_enc_data enc_data; in pa_enc_timestamp() local 669 tmp, &enc_data); in pa_enc_timestamp() 672 enc_data.enctype, enc_data.kvno, in pa_enc_timestamp() 673 0xff & enc_data.ciphertext.data[0], in pa_enc_timestamp() 674 0xff & enc_data.ciphertext.data[1]); in pa_enc_timestamp() 680 krb5_xfree(enc_data.ciphertext.data); in pa_enc_timestamp() 684 ret = encode_krb5_enc_data(&enc_data, &tmp); in pa_enc_timestamp() 686 krb5_xfree(enc_data.ciphertext.data); in pa_enc_timestamp() 789 krb5_enc_data * enc_data; in pa_sam() local 985 enc_data = &sam_response.sam_enc_nonce_or_ts; in pa_sam() [all …]
|
H A D | preauth.c | 282 krb5_enc_data enc_data; in obtain_enc_ts_padata() local 292 enc_data.ciphertext.data = 0; in obtain_enc_ts_padata() 296 scratch, &enc_data))) in obtain_enc_ts_padata() 302 if ((retval = encode_krb5_enc_data(&enc_data, &scratch)) != 0) in obtain_enc_ts_padata() 325 if (enc_data.ciphertext.data) in obtain_enc_ts_padata() 326 krb5_xfree(enc_data.ciphertext.data); in obtain_enc_ts_padata()
|
/titanic_41/usr/src/lib/libkmf/libkmf/common/ |
H A D | pem_encode.c | 151 (void) memcpy(&(ctx->enc_data[ctx->num]), in, inl); in PEM_EncodeUpdate() 157 (void) memcpy(&(ctx->enc_data[ctx->num]), in, i); in PEM_EncodeUpdate() 160 j = PEM_EncodeBlock(out, ctx->enc_data, ctx->length); in PEM_EncodeUpdate() 179 (void) memcpy(&(ctx->enc_data[0]), in, inl); in PEM_EncodeUpdate() 190 ret = PEM_EncodeBlock(out, ctx->enc_data, ctx->num); in PEM_EncodeFinal() 330 d = ctx->enc_data; in PEM_DecodeUpdate() 459 i = PEM_DecodeBlock(out, ctx->enc_data, ctx->num); in PEM_DecodeFinal()
|
/titanic_41/usr/src/lib/libkmf/include/ |
H A D | pem_encode.h | 103 unsigned char enc_data[80]; /* data to encode */ member
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | cryptmod.h | 214 struct cipher_data_t enc_data; member
|
/titanic_41/usr/src/cmd/krb5/krb5kdc/ |
H A D | kdc_preauth.c | 1250 krb5_enc_data *enc_data = 0; in verify_enc_timestamp() local 1263 if ((retval = decode_krb5_enc_data(&scratch, &enc_data)) != 0) in verify_enc_timestamp() 1266 enc_ts_data.length = enc_data->ciphertext.length; in verify_enc_timestamp() 1274 &start, enc_data->enctype, in verify_enc_timestamp() 1282 key.enctype = enc_data->enctype; in verify_enc_timestamp() 1285 0, enc_data, &enc_ts_data); in verify_enc_timestamp() 1309 if (enc_data) { in verify_enc_timestamp() 1310 krb5_free_data_contents(context, &enc_data->ciphertext); in verify_enc_timestamp() 1311 free(enc_data); in verify_enc_timestamp()
|
/titanic_41/usr/src/lib/krb5/plugins/preauth/pkinit/ |
H A D | pkinit_crypto_openssl.c | 1533 unsigned char *p = NULL, *signed_data = NULL, *enc_data = NULL; in cms_envelopeddata_create() local 1574 prepare_enc_data(signed_data, signed_data_len, &enc_data, in cms_envelopeddata_create() 1576 retval = BIO_write(in, enc_data, enc_data_len); in cms_envelopeddata_create() 1605 p7->d.enveloped->enc_data->content_type = in cms_envelopeddata_create() 1610 p7->d.enveloped->enc_data->content_type = in cms_envelopeddata_create() 1638 if (enc_data != NULL) in cms_envelopeddata_create() 1639 free(enc_data); in cms_envelopeddata_create() 6513 enc_alg=p7->d.enveloped->enc_data->algorithm; 6514 data_body=p7->d.enveloped->enc_data->enc_data; 6522 xalg=p7->d.enveloped->enc_data->algorithm;
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | p12lib.c | 2090 (uchar_t *)x->enc_data, in pem_info() 2108 p = (uchar_t *)x->enc_data; in pem_info() 2120 p = (uchar_t *)x->enc_data; in pem_info()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/include/ |
H A D | krb5.h | 777 krb5_enc_data *enc_data); 782 krb5_data *enc_data);
|