/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | combine_keys.c | 37 * R1 = DR(Key1, n-fold(Key2)) [ Output is length of Key1 ] 38 * R2 = DR(Key2, n-fold(Key1)) [ Output is length of Key2 ] 94 if (key1->length != key2->length || key1->enctype != key2->enctype) 152 input.length = key2->length; 168 input.length = key1->length; 186 * n-fold to reduce them to a length appropriate for the random-to-key 211 randbits.length [all...] |
H A D | verify_checksum.c | 57 indata.length = cksum->length; 71 if (cksum->length != hashsize) 74 computed.length = hashsize; 78 FREE(computed.contents, computed.length); 84 FREE(computed.contents, computed.length);
|
H A D | hmac.c | 64 dd.cd_length = input->length; 66 dd.cd_raw.iov_len = input->length; 70 mac.cd_length = output->length; 72 mac.cd_raw.iov_len = output->length; 142 if (key->length > blocksize) 144 if (output->length < hashsize) 170 for (i=0; i<key->length; i++) 176 hashin[0].length = blocksize; 181 hashout.length = hashsize; 193 for (i=0; i<key->length; [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | copy_key.c | 55 from->length > 0) 60 to->length = from->length; 63 if (from->length > 0) 64 (void) memcpy(to->contents, from->contents, from->length); 100 if (!(new_key->contents = (krb5_octet *)MALLOC(from->length))) {
|
/opensolaris-onvv-gate/usr/src/lib/libgss/ |
H A D | g_glue.c | 47 * length, decode the length updating the buffer to point to the character 49 * bytes that made up the DER encoding of the length originally pointed to 57 int length, new_length; local 67 * If the High order bit is not set then the length is just the value 72 return (*p); /* return the length */ 77 * the number of bytes that contain the DER encoding of the length. 83 /* See if the supplied buffer contains enough bytes for the length. */ 88 * Calculate a multibyte length. The length i 129 gssint_put_der_length(unsigned int length, unsigned char **buf, unsigned int max_len) argument 196 int length; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libdns_sd/java/com/apple/dnssd/ |
H A D | TXTRecord.java | 58 a packed array of bytes, each preceded by a length byte. Each string 100 int valLen = (value != null) ? value.length : 0; 109 for ( int i=0; i < keyBytes.length; i++) 113 if ( keyBytes.length + valLen >= 255) 127 int valLen = (value != null) ? value.length : 0; 132 for ( int i=0; i < index && insertion < fBytes.length; i++) 135 avLen = (byte) ( keyBytes.length + valLen + (value != null ? 1 : 0)); 136 newLen = (byte) ( avLen + oldBytes.length + 1); 140 int secondHalfLen = oldBytes.length - insertion; 143 System.arraycopy( keyBytes, 0, fBytes, insertion + 1, keyBytes.length); [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | aes_provider.c | 52 if (input->length < BLOCK_SIZE) 55 ASSERT(input->length == output->length); 63 * it better have a data pointer and a proper length. 65 if (ivec->data == NULL || ivec->length != BLOCK_SIZE) { 67 ASSERT(ivec->length == BLOCK_SIZE); 69 "ivec->data = %p ivec->length = %d", 70 (void *)ivec->data, ivec->length); 77 nblocks = (input->length + BLOCK_SIZE - 1) / BLOCK_SIZE; 80 partialamount = input->length 595 long length; local 855 CK_ULONG length; local [all...] |
H A D | des.c | 47 if (key->length != 8) 49 if ((input->length%8) != 0) 51 if (ivec && (ivec->length != 8)) 53 if (input->length != output->length) 57 (krb5_pointer) output->data, input->length, 87 if (key->length != 8) 89 if (randombits->length != 7) 93 key->length = 8; 99 (void) memcpy(key->contents, randombits->data, randombits->length); [all...] |
/opensolaris-onvv-gate/usr/src/common/smbsrv/ |
H A D | smb_netbios_util.c | 52 * of labels. Each label is represented as a one octet length 55 * domain name is terminated by a length byte of zero. The 56 * high order two bits of the length field must be zero, and 57 * the remaining six bits of the length field limit the label 60 * To simplify implementations, the total length of label 61 * octets and label length octets that make up a domain name is 111 * name. The bytes following the label length count are the characters 113 * label, which is the encoded NetBIOS name, until a zero (0x00) length 114 * count. The zero length count represents the root label, which is 117 * A label length coun 222 unsigned int length, bytes; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | SLPTokenizer.java | 83 if (str.length() < 1) { 94 for (int j = 0; j < str.length(); j++) 126 if (str.length() < 1) { 130 if (index >= str.length()) { 137 for (int i = index; i < str.length(); i++) { 176 if (index >= str.length()) throw new NoSuchElementException(); 193 while (index < str.length()) { 215 while (index < str.length()) { 219 if (sb.length() != 0) { 233 if (sb.length() [all...] |
H A D | Opaque.java | 84 String string = str.substring(OPAQUE_HEADER.length()); 89 int i, n = string.length(); 161 if (cbyte.length != bytes.length) { 170 for (i = 0; i < cbyte.length; i++) { 182 int i, n = bytes.length; 198 if (str.length() < 2) {
|
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/des/ |
H A D | f_cbc.c | 33 mit_des_cbc_encrypt(context, in, out, length, key, ivec, encrypt) 37 long length; 86 (CK_ULONG)length, (CK_BYTE_PTR)out, 87 (CK_ULONG_PTR)&length); 90 (CK_ULONG)length, (CK_BYTE_PTR)out, 91 (CK_ULONG_PTR)&length); 103 (void) memset(out, 0, length); 127 * of 8 bytes, but only the first "length" bytes returned into the 136 long length, krb5_keyblock *key, 147 ivdata.length 133 mit_des_cbc_encrypt(krb5_context context, const mit_des_cblock *in, mit_des_cblock *out, long length, krb5_keyblock *key, mit_des_cblock ivec, int encrypt) argument [all...] |
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_decode.c | 47 #define length (tinfo.length) macro 69 for (i = 0; i < length; i++) { 74 if (n < 0 && length > sizeof (long)) 76 else if (length > sizeof (long) + 1) /* allow extra octet for positive */ 94 for (i = 0, n = 0; i < length; i++) { 100 else if (length > sizeof (long) + 1) 130 for (i = 0; i < length; i++) { 157 retval = asn1buf_remove_octetstring(buf, length, val); 159 *retlen = length; [all...] |
H A D | asn1buf.c | 80 buf->bound = code->data + code->length - 1; 84 asn1_error_code asn1buf_imbed(asn1buf *subbuf, const asn1buf *buf, const unsigned int length, const int indef) argument 89 if (length > (size_t)(buf->bound + 1 - buf->next)) return ASN1_OVERRUN; 90 subbuf->bound = subbuf->base + length - 1; 98 unsigned int length, int indef, int seqindef) 103 /* sequence was encoded as definite length */ 106 retval = asn1buf_skiptail(subbuf, length, indef); 116 asn1_error_code asn1buf_skiptail(asn1buf *buf, const unsigned int length, const int indef) argument 124 if (length <= buf->bound - buf->next + 1) 125 buf->next += length; 96 asn1buf_sync(asn1buf *buf, asn1buf *subbuf, asn1_class asn1class, asn1_tagnum lasttag, unsigned int length, int indef, int seqindef) argument 175 int length; local 187 int length; local 293 unsigned int length = asn1buf_len(buf); local 322 unsigned int length = asn1buf_len(buf); local [all...] |
H A D | asn1_k_encode.c | 49 length: length of the most-recently produced encoding 50 sum: cumulative length of the entire encoding */ 57 { unsigned int length;\ 58 retval = asn1_make_sequence(buf,sum,&length);\ 61 sum += length; } 70 { unsigned int length; \ 71 retval = encoder(buf,value,&length); \ 74 sum += length;\ 75 retval = asn1_make_etag(buf,CONTEXT_SPECIFIC,tag,length, 1507 unsigned int length; local 1526 unsigned int length; local 1531 unsigned int length; local 1570 unsigned int length; local 1638 unsigned int length; local 1694 unsigned int length; local 1744 unsigned int length; local 1823 unsigned int length; local 1843 unsigned int length; local [all...] |
/opensolaris-onvv-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | k5sealv3.c | 150 if (SIZE_MAX - 300 < message->length) 152 ec_max = SIZE_MAX - message->length - 300; 163 plain.length = message->length + 16 + ec; 164 plain.data = MALLOC(plain.length); 170 ctx->enc->enctype, plain.length, &tlen))) { 171 FREE(plain.data, plain.length); 179 FREE(plain.data, plain.length); 197 (void) memcpy(plain.data, message->value, message->length); 198 (void) memset(plain.data + message->length, ' [all...] |
H A D | k5unseal.c | 98 message_buffer->length = 0; 269 token.length = tmsglen; 274 * pad length, so we know it can not be more than the blocksize. 289 token.length = tmsglen - conflen - plain[tmsglen-1]; 292 if (token.length) { 293 if ((token.value = (void *) xmalloc(token.length)) == NULL) { 300 (void) memcpy(token.value, plain+conflen, token.length); 308 plainlen = token.length; 311 token.length = 0; 314 plainlen = token.length; [all...] |
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | auth.c | 95 chan.initiator_address.length = temp_buf.length; 96 chan.initiator_address.value = malloc(temp_buf.length); 98 temp_buf.length); 102 chan.acceptor_address.length = temp_buf.length; 103 chan.acceptor_address.value = malloc(temp_buf.length); 105 temp_buf.length); 107 chan.application_data.length = 0; 130 send_tok.length 295 size_t length; local [all...] |
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/asn1/ |
H A D | d2i_pr.c | 76 long length) 97 (const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */ 107 (const unsigned char **)pp,length)) == NULL) /* TMP UGLY CAST */ 117 (const unsigned char **)pp, length)) == NULL) 139 long length) 149 inkey = d2i_ASN1_SET_OF_ASN1_TYPE(NULL, &p, length, d2i_ASN1_TYPE, 160 return d2i_PrivateKey(keytype, a, pp, length); 75 d2i_PrivateKey(int type, EVP_PKEY **a, const unsigned char **pp, long length) argument 138 d2i_AutoPrivateKey(EVP_PKEY **a, const unsigned char **pp, long length) argument
|
/opensolaris-onvv-gate/usr/src/common/openssl/crypto/objects/ |
H A D | obj_lib.c | 82 r->data=OPENSSL_malloc(o->length); 85 memcpy(r->data,o->data,o->length); 86 r->length=o->length; 124 ret=(a->length-b->length); 126 return(memcmp(a->data,b->data,a->length));
|
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | old_api_glue.c | 54 ivecd.length = blocksize; 58 /* size is the length of the input cleartext data */ 59 inputd.length = size; 68 outputd.ciphertext.length = outlen; 89 ivecd.length = blocksize; 93 /* size is the length of the input ciphertext data */ 95 inputd.ciphertext.length = size; 102 outputd.length = size; 139 data.length = keyblock->length; 186 krb5_encrypt_size(size_t length, krb5_enctype crypto) argument [all...] |
/opensolaris-onvv-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/server/ |
H A D | Valid.java | 89 if (cstr.length() > validcommentlength) 114 if (pn.length() == 0) 116 if (pn.length() > validlocalprinternamelength) 149 if (pn.length() == 0) 151 if (pn.length() > validremoteprinternamelength) 188 if (dev.length() == 0) 218 if ((dir.length() == 0) || (dir.length() > validmakelength)) 244 if (pt.length() == 0) 279 if (d.length() [all...] |
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/ |
H A D | k5_md5des.c | 62 if (key->length != 8) 66 if (output->length != (CONFLENGTH+MD5_CKSUM_LENGTH)) 71 data.length = CONFLENGTH; 78 xorkey.length = key->length; 79 xorkey.contents = (krb5_octet *)malloc(key->length); 83 (void) memcpy(xorkey.contents, key->contents, xorkey.length); 85 for (i=0; i<xorkey.length; i++) 119 (CK_BYTE_PTR)input->data, (CK_ULONG)input->length)) != CKR_OK) { 143 (krb5_pointer) output->data, output->length, [all...] |
/opensolaris-onvv-gate/usr/src/cmd/vi/port/ |
H A D | printf.c | 60 #define MAXINT 32767 /* largest normal length positive integer */ 77 int length,mask1,nbits,n; local 105 /* length modifier: -1 for h, 1 for l, 0 for none */ 106 length = 0; 164 length = 2; 168 length--; 197 length = 1; 203 if (length > 0) 246 length = 1; 252 if (length > 372 int npad, length; local [all...] |
/opensolaris-onvv-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/hash_provider/ |
H A D | hash_ef_generic.c | 20 CK_ULONG outlen = output->length; 32 (CK_ULONG)input[i].length)) != CKR_OK) { 47 output->length = outlen; 77 inlen = K5ROUNDUP(input->length, 8); 80 if (inlen != input->length) { 93 if (inlen != input->length) { 95 (void) memcpy(inbuf, input->data, input->length); 105 output->length = 8; 108 if (inlen != input->length && inbuf != NULL)
|