/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/ |
H A D | hmac_md5.c | 47 const krb5_data *input, krb5_data *output) 127 ret = krb5_hmac (context, &krb5int_hash_md5, &ks, 1, &md5tmp, output); 44 k5_hmac_md5_hash(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *iv, const krb5_data *input, krb5_data *output) argument
|
H A D | k5_md5des.c | 51 const krb5_data *input, krb5_data *output) 66 if (output->length != (CONFLENGTH+MD5_CKSUM_LENGTH)) 126 (CK_BYTE_PTR)(output->data + CONFLENGTH), 136 (void) memcpy(output->data, conf, CONFLENGTH); 142 (krb5_pointer) output->data, 143 (krb5_pointer) output->data, output->length, 49 k5_md5des_hash(krb5_context context, krb5_const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | base64.c | 91 The encoding process represents 24-bit groups of input bits as output 99 output string. 135 output will be an integral multiple of 4 characters 138 here, the final unit of encoded output will be two 141 here, the final unit of encoded output will be three 149 u_char output[4]; local 158 output[0] = input[0] >> 2; 159 output[1] = ((input[0] & 0x03) << 4) + (input[1] >> 4); 160 output[2] = ((input[1] & 0x0f) << 2) + (input[2] >> 6); 161 output[ [all...] |
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | symbindrep.c | 33 static FILE *output = stdout; variable 49 (void) fprintf(output, 56 (void) fprintf(output, 102 (void) fprintf(output, "%-28s %-28s %s\n", (char *)(*refcook), 117 (void) fflush(output);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | hmac.c | 45 krb5_const krb5_data *input, krb5_data *output) 53 if (output == NULL || output->data == NULL) { 54 KRB5_LOG0(KRB5_INFO, "krb5_hmac() NULL output"); 70 mac.cd_length = output->length; 71 mac.cd_raw.iov_base = (char *)output->data; 72 mac.cd_raw.iov_len = output->length; 111 krb5_data *output) 134 if (output == NULL) { 135 KRB5_LOG0(KRB5_ERR, "krb5_hmac() error output 44 krb5_hmac(krb5_context context, const krb5_keyblock *key, krb5_const krb5_data *input, krb5_data *output) argument 106 krb5_hmac(krb5_context context, krb5_const struct krb5_hash_provider *hash, krb5_const krb5_keyblock *key, krb5_const unsigned int icount, krb5_const krb5_data *input, krb5_data *output) argument [all...] |
H A D | encrypt.c | 177 const krb5_data *input, krb5_enc_data *output) 191 output->magic = KV5M_ENC_DATA; 192 output->kvno = 0; 193 output->enctype = key->enctype; 212 key, usage, ivec, input, &output->ciphertext)); 175 krb5_c_encrypt(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_enc_data *output) argument
|
H A D | combine_keys.c | 40 * rnd = n-fold(R1 | R2) [ Note: output size of nfold must be appropriately 83 unsigned char *r1, *r2, *combined, *rnd, *output; local 139 if ((output = (unsigned char *) malloc(keylength)) == NULL) { 214 tkey.contents = output; 242 * the existing keys as the output key, _or_ pass in a blank keyblock 270 printf("output ="); 284 memset(output, 0, keylength); 290 free(output);
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/keyhash_provider/ |
H A D | k_hmac_md5.c | 49 const krb5_data *input, krb5_data *output) 133 ret = krb5_hmac (context, &ks, &md5tmp, output); 135 ret = krb5_hmac (context, &krb5int_hash_md5, &ks, 1, &md5tmp, output); 46 k5_hmac_md5_hash(krb5_context context, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *iv, const krb5_data *input, krb5_data *output) argument
|
H A D | k5_kmd5des.c | 63 krb5_const krb5_data *input, krb5_data *output) 78 if (output->length != (CONFLENGTH + MD5_CKSUM_LENGTH)) 97 /* Save the pointer to the beginning of the output buffer */ 98 outptr = (char *)output->data; 101 * Move the output ptr ahead so we can write the hash 104 output->data = output->data + CONFLENGTH; 107 if (k5_ef_hash(context, 2, hash_input, output)) { 112 /* restore the original ptr to the output data */ 113 output 59 k5_md5des_hash(krb5_context context, krb5_const krb5_keyblock *key, krb5_keyusage usage, krb5_const krb5_data *ivec, krb5_const krb5_data *input, krb5_data *output) argument [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/old/ |
H A D | old_decrypt.c | 50 krb5_data output, cksum, crcivec; local 57 /* Verify input and output lengths. */ 65 output.length = input->length; 67 if ((output.data = (char *) MALLOC(output.length)) == NULL) { 73 output.length = input->length; 75 output.data = arg_output->data; 100 if ((ret = ((*(enc->decrypt))(context, key, ivec, input, &output)))) 105 (void) memcpy(orig_cksum, output.data+blocksize, hashsize); 106 (void) memset(output [all...] |
H A D | old_encrypt.c | 59 krb5_data *output) 71 if (output->length < enclen) 74 output->length = enclen; 78 (void) memset(output->data, 0, output->length); 81 datain.data = (char *) output->data; 85 (void) memcpy(output->data+blocksize+hashsize, input->data, input->length); 90 datain.data = output->data+blocksize; 92 if ((ret = ((*(hash->hash))(context, 1, output, &datain)))) 106 if ((ret = ((*(enc->encrypt))(context, key, ivec, output, outpu 52 krb5_old_encrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument [all...] |
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | list_rqs.c | 49 FILE *output; local 82 output = fdopen(fd, "w"); 90 fprintf (output, dgettext(TEXT_DOMAIN, "Available %s requests:\n\n"), 111 fputs(buffer, output); 125 fputs(buffer, output); 128 fclose(output);
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | pkcs11_uri.c | 51 * Gets a hexadecimal string of the xx:xx:xx-like format and fills the output 53 * error (missing ':', not a hexadecimal character (eg. 'z'), output buffer 60 * number of bytes returned via the output parameter 63 read_id(char *str, unsigned char *output, int out_len) argument 69 (void) memset(output, 0, out_len); 72 /* Counter for the used output bytes. */ 89 output[n] = (unsigned char)x1;
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | cmd.c | 51 * Description: Executes the given command and returns the output written to 55 * case that the command output is expected to be lengthy. 59 * - int *output_filedes - The file descriptor to which the stdout output 61 * - int *err_filedes - The file descriptor to which the stderr output 67 * execution of a command with a large amount of output (ex: ls of a large 82 int output[2]; local 86 if (pipe(output) == -1) { 106 close(output[0]); 110 * Close stdout and dup to output[1] 116 if (dup(output[ 181 int output[2]; local [all...] |
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctmerg.c | 33 * -a output in tacct.h/ascii (instead of tacct.h) 36 * -t output single record that totals all input 38 * -v output in verbose tacct.h/ascii 42 * or all records if -t], writes to std. output 72 void output(struct tacct *); 135 output(&tt); 186 output(&tc); 206 output(struct tacct *tp) function
|
H A D | acctprc2.c | 34 * sorts in uid/name order, writes tacct.h records to output 59 void output(void); 72 output(); 143 output(void) function
|
H A D | acctdusg.c | 68 static void output(void); 124 output(); 181 output(void) function
|
H A D | acctprc.c | 35 * writes std. output (tacct format) 63 void output(void); 104 output(); 170 output(void) function
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/dk/ |
H A D | dk_decrypt.c | 46 krb5_data *output, 56 krb5_data *output) 59 ivec, input, output, 0); 69 krb5_data *output) 72 ivec, input, output, 96 / 8); 82 krb5_data *output, size_t hmacsize) 114 /* Verify input and output lengths. */ 117 if (output->length < input->length - blocksize - hmacsize) 174 if (output->length < plainlen) { 179 output 50 krb5_dk_decrypt( krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument 63 krb5int_aes_dk_decrypt( krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument 76 krb5_dk_decrypt_maybe_trunc_hmac( krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output, size_t hmacsize) argument [all...] |
H A D | dk_encrypt.c | 63 krb5_data *output) 92 if (output->length < enclen) 116 d2.data = output->data; 133 d2.data = output->data+plainlen; 135 output->length = enclen; 188 const krb5_data *input, krb5_data *output) 196 if (hashsize < output->length) 209 (void) memset(output->data, 0, output->length); 211 /* truncate the HMAC output accordingl 58 krb5_dk_encrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument 185 trunc_hmac(krb5_context context, const struct krb5_hash_provider *hash, const krb5_keyblock *ki, int num, const krb5_data *input, krb5_data *output) argument 220 krb5int_aes_dk_encrypt(krb5_context context, const struct krb5_enc_provider *enc, const struct krb5_hash_provider *hash, const krb5_keyblock *key, krb5_keyusage usage, const krb5_data *ivec, const krb5_data *input, krb5_data *output) argument [all...] |
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_crypt.c | 222 krb5_data input, output; local 265 output.data = (void *) usage_key.contents; 266 output.length = usage_key.length; 268 code = krb5_hmac(context, longterm_key, &input, &output); 271 longterm_key, 1, &input, &output); 278 output.data = (void *) seq_enc_key.contents; 280 code = krb5_hmac(context, &usage_key, &input, &output); 283 &usage_key, 1, &input, &output); 290 output.data = (void * ) output_buf; 291 output [all...] |
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | pnic.c | 44 * discovering the output length then you're expecting a fixed amount 50 void *output, uint16_t output_max_length, 68 /* Retrieve output length */ 79 if ( output != NULL ) { 81 printf ( "pnic_command %#hx: output buffer too small " 86 /* Retrieve output data */ 88 ((char*)output)[i] = 97 void *output, uint16_t output_max_length, 102 output, output_max_length, 48 pnic_command_quiet( struct nic *nic, uint16_t command, void *input, uint16_t input_length, void *output, uint16_t output_max_length, uint16_t *output_length ) argument 95 pnic_command( struct nic *nic, uint16_t command, void *input, uint16_t input_length, void *output, uint16_t output_max_length, uint16_t *output_length ) argument
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | hunt6.c | 44 char res[100], *ar[50], output[TXTLEN], *mput; local 77 if (!auxil(res, output)) { 91 len = corout(res, output, rprog, "", TXTLEN); 95 strncpy(output, mput, TXTLEN); 103 fprintf(stderr, "item %d of %d, tag %s len %d output\n%s\n..\n", 104 i, nf, res, len, output); 115 ar[na++] = output; 133 fputs(output, stdout); 135 strcpy(soutput, output); 145 auxil(char *res, char *output) argument [all...] |
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 49 #define output output64 macro 52 #define output output32 macro 77 * output section descriptor for each. Note, we assign section indexes 202 * The .strtab requires room for the output file name (STT_FILE). 212 * Having captured all input data, create the output file. 215 output(const char *prog, int fd, const char *ofile, ushort_t mach, function 254 * Create a new ELF descriptor for the new output file. 275 * the output ELF header is modified to reflect the target, causing 276 * libelf to produce the output object using the correct byte order 460 * Write the output fil [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | reqexec.c | 53 static int do_exec(int update, char *script, char *output, 322 do_exec(int update, char *script, char *output, char *inport, char *alt_user) argument 338 * - otherwise, output an error message and return failure 366 echoDebug(DBG_DO_EXEC_REQUEST_USER, script, output, uname, instuid, 369 (void) chown(output, instuid, instgid); 385 "-x", tmp_script, output, NULL); 388 tmp_script, output, NULL);
|