/macosx-10.10/Security-57031.1.35/Security/utilities/Regressions/ |
H A D | su-13-cfnumber-der.c | 40 uint8_t encoded[20]; member in struct:test_case 45 { .value = 0, .encoded_size = 3, .encoded = { 0x02, 0x01, 0x00 }, }, 46 { .value = 1, .encoded_size = 3, .encoded = { 0x02, 0x01, 0x01 }, }, 47 { .value = 128, .encoded_size = 4, .encoded = { 0x02, 0x02, 0x00, 0x80 }, }, 48 { .value = -1, .encoded_size = 3, .encoded = { 0x02, 0x01, 0xFF }, }, 49 { .value = -129, .encoded_size = 4, .encoded = { 0x02, 0x02, 0xFF, 0x7F }, }, 50 { .value = 1000, .encoded_size = 4, .encoded = { 0x02, 0x02, 0x03, 0xE8, }, }, 51 { .value = 65280, .encoded_size = 5, .encoded = { 0x02, 0x03, 0x00, 0xFF, 0x00 }, }, 52 { .value = 41234576, .encoded_size = 6, .encoded = { 0x02, 0x04, 0x02, 0x75, 0x30, 0x90 }, }, 53 { .value = -412343576, .encoded_size = 6, .encoded 64 uint8_t* encoded = der_encode_plist(initialValue, NULL, buffer, buffer_end); local [all...] |
H A D | su-14-cfarray-der.c | 40 uint8_t encoded[20]; member in struct:test_case 46 .encoded_size = 9, .encoded = { 0x30, 0x07, 0x0C, 0x05, 0x46, 0x69, 0x72, 0x73, 0x74, }, }, 48 .encoded_size = 17, .encoded = { 0x30, 0x0F, 0x0C, 0x05, 0x46, 0x69, 0x72, 0x73, 0x74, 0x0C, 0x06, 0x53, 0x45, 0x43, 0x4F, 0x4E, 0x44, }, }, 50 .encoded_size = 2, .encoded = { 0x30, 0x00, } }, 65 uint8_t* encoded = der_encode_plist(testValue, NULL, buffer, buffer_end); local 67 ok(encoded != NULL && 68 (thisCase->encoded_size == (buffer_end - encoded)) && 69 (memcmp(encoded, thisCase->encoded, thisCase->encoded_size) == 0)); 71 encoded [all...] |
H A D | su-12-cfboolean-der.c | 44 uint8_t* encoded = der_encode_plist(value, NULL, buffer, buffer_end); local 46 ok(encoded != NULL && 47 (der_size == (buffer_end - encoded)) && 48 (memcmp(encoded, expected_der, der_size) == 0)); 50 encoded = der_encode_boolean(value, NULL, buffer, buffer_end); 52 ok(encoded != NULL && 53 (der_size == (buffer_end - encoded)) && 54 (memcmp(encoded, expected_der, der_size) == 0)); 57 printf(".size = %d, .res = { ", (buffer_end - encoded)); 58 for(int c = 0; c < (buffer_end - encoded); [all...] |
H A D | su-10-cfstring-der.c | 58 uint8_t* encoded = der_encode_string(thisCase->str, NULL, buffer, buffer_end); local 60 ok(encoded != NULL && 61 (thisCase->size == (buffer_end - encoded)) && 62 (memcmp(encoded, thisCase->res, thisCase->size) == 0)); 67 &decoded, NULL, encoded, buffer_end); 72 encoded = der_encode_plist(thisCase->str, NULL, buffer, buffer_end); 74 ok(encoded != NULL && 75 (thisCase->size == (buffer_end - encoded)) && 76 (memcmp(encoded, thisCase->res, thisCase->size) == 0)); 81 &decoded_type, NULL, encoded, buffer_en [all...] |
H A D | su-15-cfdictionary-der.c | 42 uint8_t encoded[256]; member in struct:test_case 49 .encoded_size = 25, .encoded = { 0x31, 0x17, 0x30, 0x15, 0x0C, 0x05, 0x46, 0x69, 0x72, 0x73, 0x74, 0x0C, 0x0C, 0x46, 0x69, 0x72, 0x73, 0x74, 0x20, 0x56, 0x61, 0x6C, 0x75, 0x65, 0x21, }, 53 .encoded_size = 51, .encoded = { 0x31, 0x31, 65 uint8_t* encoded = der_encode_plist(testValue, NULL, buffer, buffer_end); local 67 ok(encoded != NULL && 68 (expected_size == (buffer_end - encoded)) && 69 (memcmp(encoded, expected_data, expected_size) == 0)); 71 encoded = der_encode_dictionary(testValue, NULL, buffer, buffer_end); 73 ok(encoded != NULL && 74 (expected_size == (buffer_end - encoded)) [all...] |
H A D | su-16-cfdate-der.c | 92 return fail("[%d] encoded date %@ expected %s not a generalized time", testnumber, string_create_with_hex(der, der_end), expected); 94 return fail("[%d] Trailing garbage in encoded string after generalized time got: %@ expected: %s", testnumber, string_create_with_hex(der, der_end), expected); 96 return fail("[%d] encoded date len %zu != %zu got: %.*s expected: %s", testnumber, dlen , elen, (int)dlen, (char *)body, expected); 98 return fail("[%d] encoded got: %.*s expected: %s", testnumber, (int)dlen, (char *)body, expected); 100 return pass("[%d] properly encoded %s", testnumber, expected); 124 uint8_t* encoded = der_encode_plist(initialValue, &error, buffer, buffer_end); local 128 ok(encoded != NULL, "[%d] der_encode_plist failed: %@", testnumber, error)); 129 ok_der_date_is(testnumber, thisCase->expected, encoded, buffer_end); 133 encoded = der_encode_date(initialValue, &error, buffer, buffer_end); 137 ok(encoded ! [all...] |
H A D | su-11-cfdata-der.c | 103 uint8_t* encoded = der_encode_plist(start, NULL, buffer, buffer_end); local 105 ok(encoded != NULL && 106 (thisCase->result_size == (buffer_end - encoded)) && 107 (memcmp(encoded, thisCase->result, thisCase->result_size) == 0)); 109 encoded = der_encode_data(start, NULL, buffer, buffer_end); 111 ok(encoded != NULL && 112 (thisCase->result_size == (buffer_end - encoded)) && 113 (memcmp(encoded, thisCase->result, thisCase->result_size) == 0)); 116 printf(".size = %d, .res = { ", (buffer_end - encoded)); 117 for(int c = 0; c < (buffer_end - encoded); [all...] |
/macosx-10.10/JavaScriptCore-7600.1.17/runtime/ |
H A D | MatchResult.h | 38 explicit ALWAYS_INLINE MatchResult(EncodedMatchResult encoded) argument 41 uint64_t encoded; member in union:MatchResult::u 47 value.encoded = encoded;
|
/macosx-10.10/OpenSSH-189/openssh/ |
H A D | uuencode.c | 37 * Encode binary 'src' of length 'srclength', writing base64-encoded text 50 * Decode base64-encoded 'src' into buffer 'target' of 'targsize' bytes. 58 char *encoded, *p; local 61 encoded = xstrdup(src); 63 for (p = encoded; *p == ' ' || *p == '\t'; p++) 69 len = __b64_pton(encoded, target, targsize); 70 xfree(encoded);
|
H A D | gss-genr.c | 57 char *encoded; member in struct:__anon3188 100 char *mechs, *encoded; local 107 for (i = 0; gss_enc2oid[i].encoded != NULL; i++) 108 xfree(gss_enc2oid[i].encoded); 132 encoded = xmalloc(EVP_MD_size(evp_md) * 2); 134 encoded, EVP_MD_size(evp_md) * 2); 141 buffer_append(&buf, encoded, enclen); 145 buffer_append(&buf, encoded, enclen); 149 buffer_append(&buf, encoded, enclen); 152 gss_enc2oid[oidpos].encoded [all...] |
/macosx-10.10/Security-57031.1.35/Security/include/security_smime/ |
H A D | cmsattr.c | 64 SecCmsAttributeCreate(PRArenaPool *poolp, SECOidTag oidtag, CSSM_DATA_PTR value, Boolean encoded) argument 95 attr->encoded = encoded; 209 Boolean encoded; local 217 if (encoding && attribute->encoded) 218 /* we're encoding, and the attribute value is already encoded. */ 230 encoded = PR_TRUE; 236 /* these guys need to stay DER-encoded */ 239 encoded = PR_TRUE; 246 encoded 419 SecCmsAttributeArraySetAttr(PLArenaPool *poolp, SecCmsAttribute ***attrs, SECOidTag type, CSSM_DATA_PTR value, Boolean encoded) argument [all...] |
/macosx-10.10/Security-57031.1.35/Security/libsecurity_smime/lib/ |
H A D | cmsattr.c | 64 SecCmsAttributeCreate(PRArenaPool *poolp, SECOidTag oidtag, CSSM_DATA_PTR value, Boolean encoded) argument 95 attr->encoded = encoded; 209 Boolean encoded; local 217 if (encoding && attribute->encoded) 218 /* we're encoding, and the attribute value is already encoded. */ 230 encoded = PR_TRUE; 236 /* these guys need to stay DER-encoded */ 239 encoded = PR_TRUE; 246 encoded 419 SecCmsAttributeArraySetAttr(PLArenaPool *poolp, SecCmsAttribute ***attrs, SECOidTag type, CSSM_DATA_PTR value, Boolean encoded) argument [all...] |
/macosx-10.10/Security-57031.1.35/libsecurity_smime/Security/ |
H A D | cmsattr.c | 67 SecCmsAttributeCreate(PRArenaPool *poolp, SECOidTag oidtag, SecAsn1Item * value, Boolean encoded) argument 98 attr->encoded = encoded; 212 Boolean encoded; local 220 if (encoding && attribute->encoded) 221 /* we're encoding, and the attribute value is already encoded. */ 233 encoded = PR_TRUE; 239 /* these guys need to stay DER-encoded */ 242 encoded = PR_TRUE; 249 encoded 422 SecCmsAttributeArraySetAttr(PLArenaPool *poolp, SecCmsAttribute ***attrs, SECOidTag type, SecAsn1Item * value, Boolean encoded) argument [all...] |
/macosx-10.10/Security-57031.1.35/libsecurity_smime/lib/ |
H A D | cmsattr.c | 67 SecCmsAttributeCreate(PRArenaPool *poolp, SECOidTag oidtag, SecAsn1Item * value, Boolean encoded) argument 98 attr->encoded = encoded; 212 Boolean encoded; local 220 if (encoding && attribute->encoded) 221 /* we're encoding, and the attribute value is already encoded. */ 233 encoded = PR_TRUE; 239 /* these guys need to stay DER-encoded */ 242 encoded = PR_TRUE; 249 encoded 422 SecCmsAttributeArraySetAttr(PLArenaPool *poolp, SecCmsAttribute ***attrs, SECOidTag type, SecAsn1Item * value, Boolean encoded) argument [all...] |
/macosx-10.10/Security-57031.1.35/libsecurity_smime/security_smime/ |
H A D | cmsattr.c | 67 SecCmsAttributeCreate(PRArenaPool *poolp, SECOidTag oidtag, SecAsn1Item * value, Boolean encoded) argument 98 attr->encoded = encoded; 212 Boolean encoded; local 220 if (encoding && attribute->encoded) 221 /* we're encoding, and the attribute value is already encoded. */ 233 encoded = PR_TRUE; 239 /* these guys need to stay DER-encoded */ 242 encoded = PR_TRUE; 249 encoded 422 SecCmsAttributeArraySetAttr(PLArenaPool *poolp, SecCmsAttribute ***attrs, SECOidTag type, SecAsn1Item * value, Boolean encoded) argument [all...] |
/macosx-10.10/Heimdal-398.1.2/lib/wind/ |
H A D | idn-lookup.c | 65 char encoded[1024]; local 89 ep = encoded; 96 len = sizeof(encoded) - (ep - encoded); 108 printf("Converted \"%s\" into \"%s\"\n", name, encoded); 112 ret = getaddrinfo(encoded, NULL, &hints, &ai);
|
/macosx-10.10/ruby-106/ruby/test/rexml/ |
H A D | test_encoding.rb | 14 @encoded = "<?xml version='1.0' encoding='ISO-8859-3'?>"+ 19 # Given an encoded document, try to write out to that encoding 21 doc = Document.new( @encoded ) 24 assert_equal( @encoded, out ) 27 # Given an encoded document, try to change the encoding and write it out 29 doc = Document.new( @encoded ) 40 # * Given an encoded document, try to write it to a different encoding 42 doc = Document.new( @encoded ) 48 # * Given a non-encoded document, change the encoding 55 assert_equal( @encoded, ou [all...] |
/macosx-10.10/WebInspectorUI-7600.1.17/UserInterface/Models/ |
H A D | SourceCodeRevision.js | 69 set contentIsBase64Encoded(encoded) 71 this._contentIsBase64Encoded = encoded || false;
|
/macosx-10.10/WebKit2-7600.1.25/WebProcess/WebCoreSupport/ |
H A D | WebContextMenuClient.cpp | 82 String encoded = encodeWithURLEscapeSequences(searchString); local 83 encoded.replace("%20", "+"); 85 String url = "http://www.google.com/search?q=" + encoded + "&ie=UTF-8&oe=UTF-8";
|
/macosx-10.10/llvmCore-3425.0.34/lib/Target/NVPTX/ |
H A D | NVPTXutil.cpp | 73 char encoded[16]; local 76 int retval = encode_leb128(temp64.x, &nbytes, encoded, 16); 87 temp64.a[i] = encoded[i];
|
/macosx-10.10/apr-32/apr-util/apr-util/encoding/ |
H A D | apr_base64.c | 198 APU_DECLARE(int) apr_base64_encode(char *encoded, const char *string, int len) argument 201 return apr_base64_encode_binary(encoded, (const unsigned char *) string, len); 206 p = encoded; 230 return p - encoded; 237 APU_DECLARE(int) apr_base64_encode_binary(char *encoded, argument 243 p = encoded; 267 return (int)(p - encoded);
|
/macosx-10.10/Security-57031.1.35/Security/sec/securityd/ |
H A D | SecOCSPRequest.c | 115 SecAsn1Item encoded; local 117 kSecAsn1OCSPSignedRequestTemplate, &encoded), errOut); 118 der = CFDataCreate(kCFAllocatorDefault, encoded.Data, 119 encoded.Length);
|
/macosx-10.10/ruby-106/ruby/lib/xmlrpc/ |
H A D | base64.rb | 10 # be transmitted base64-encoded and not as a raw-string. 37 # Returns the base64 encoded internal string. 38 def encoded method in class:XMLRPC.Base64
|
/macosx-10.10/apache-793/httpd/modules/filters/ |
H A D | mod_data.c | 134 /* buffer big enough for 8000 encoded bytes (6000 raw bytes) and terminator */ 136 char encoded[((sizeof(ctx->overflow)) / 3) * 4 + 1]; local 145 len = apr_base64_encode_binary(encoded, ctx->overflow, 147 apr_brigade_write(ctx->bb, NULL, NULL, encoded, len - 1); 202 len = apr_base64_encode_binary(encoded, ctx->overflow, 204 apr_brigade_write(ctx->bb, NULL, NULL, encoded, len - 1);
|
/macosx-10.10/cups-408/cups/examples/ |
H A D | ppdx.c | 20 * ppdxReadData() - Read encoded data from a ppd_file_t *. 21 * ppdxWriteData() - Writes encoded data to stderr using PPD: messages. 42 /* Max length of each chunk when Base64-encoded */ 46 * 'ppdxReadData()' - Read encoded data from a ppd_file_t *. 184 * 'ppdxWriteData()' - Writes encoded data to stderr using PPD: messages. 198 encoded[PPDX_MAX_VALUE + 1], local 253 httpEncode64_2(encoded, sizeof(encoded), buffer, len); 256 encoded); 258 fprintf(stderr, "DEBUG: *%s%04x: \"%s\"\n", name, chunk, encoded); [all...] |