Home
last modified time | relevance | path

Searched refs:scheme (Results 1 – 25 of 449) sorted by relevance

12345678910>>...18

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/
DPBEPBKDF2.java125 private int scheme; field in PBEPBKDF2.BasePBKDF2
132 public BasePBKDF2(String name, int scheme) in BasePBKDF2() argument
134 this(name, scheme, SHA1); in BasePBKDF2()
140 String name, int scheme, int digest, int keySizeInBits, int ivSizeInBits) in BasePBKDF2() argument
145 this.scheme = scheme; in BasePBKDF2()
154 private BasePBKDF2(String name, int scheme, int digest) { in BasePBKDF2() argument
155 this(name, scheme, digest, 0, 0); in BasePBKDF2()
176 this.algName, this.algOid, scheme, defaultDigest, keySizeInBits, in engineGenerateSecret()
212 … CipherParameters param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
214 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
[all …]
DDES.java296 private int scheme; field in DES.DESPBEKeyFactory
305 int scheme, in DESPBEKeyFactory() argument
313 this.scheme = scheme; in DESPBEKeyFactory()
330 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
335 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
339 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
354 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DChallenge.java22 private final String scheme; field in Challenge
25 public Challenge(String scheme, String realm) { in Challenge() argument
26 this.scheme = scheme; in Challenge()
32 return scheme; in getScheme()
42 && equal(scheme, ((Challenge) o).scheme) in equals()
49 result = 31 * result + (scheme != null ? scheme.hashCode() : 0); in hashCode()
54 return scheme + " realm=\"" + realm + "\""; in toString()
DHttpUrl.java274 private final String scheme; field in HttpUrl
309 this.scheme = builder.scheme; in HttpUrl()
361 public String scheme() { in scheme() method in HttpUrl
362 return scheme; in scheme()
366 return scheme.equals("https"); in isHttps()
372 int usernameStart = scheme.length() + 3; // "://".length() == 3. in encodedUsername()
384 int passwordStart = url.indexOf(':', scheme.length() + 3) + 1; in encodedPassword()
421 public static int defaultPort(String scheme) { in defaultPort() argument
422 if (scheme.equals("http")) { in defaultPort()
424 } else if (scheme.equals("https")) { in defaultPort()
[all …]
/external/apache-http/src/org/apache/http/auth/
DAuthScope.java83 private final String scheme; field in AuthScope
112 final String realm, final String scheme) in AuthScope() argument
117 this.scheme = (scheme == null) ? ANY_SCHEME: scheme.toUpperCase(Locale.ENGLISH); in AuthScope()
164 this.scheme = authscope.getScheme(); in AuthScope()
192 return this.scheme; in getScheme()
204 if (LangUtils.equals(this.scheme, that.scheme)) { in match()
207 if (this.scheme != ANY_SCHEME && that.scheme != ANY_SCHEME) { in match()
254 && LangUtils.equals(this.scheme, that.scheme); in equals()
263 if (this.scheme != null) { in toString()
264 buffer.append(this.scheme.toUpperCase(Locale.ENGLISH)); in toString()
[all …]
/external/libcups/cups/
Dhttp-support.c161 const char *scheme, /* I - Scheme name */ in httpAssembleURI() argument
175 if (!uri || urilen < 1 || !scheme || port < 0) in httpAssembleURI()
188 ptr = http_copy_encode(uri, scheme, end, NULL, NULL, 0); in httpAssembleURI()
193 if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel")) in httpAssembleURI()
441 const char *scheme, /* I - Scheme name */ in httpAssembleURIf() argument
457 if (!uri || urilen < 1 || !scheme || port < 0 || !resourcef) in httpAssembleURIf()
479 return (httpAssembleURI(encoding, uri, urilen, scheme, username, host, in httpAssembleURIf()
896 char *scheme, /* O - Scheme [32] (http, https, etc.) */ in httpSeparate() argument
902 httpSeparateURI(HTTP_URI_CODING_ALL, uri, scheme, 32, username, in httpSeparate()
920 char *scheme, /* O - Scheme (http, https, etc.) */ in httpSeparate2() argument
[all …]
Dtesthttp.c31 *scheme, /* Scheme string */ member
226 char scheme[HTTP_MAX_URI], /* Scheme from URI */ in main() local
393 uri_tests[i].uri, scheme, sizeof(scheme), in main()
398 strcmp(scheme, uri_tests[i].scheme) || in main()
419 if (strcmp(scheme, uri_tests[i].scheme)) in main()
421 scheme, uri_tests[i].scheme); in main()
460 uri_tests[i].scheme, in main()
570 uri_status = httpSeparateURI(HTTP_URI_CODING_ALL, argv[2], scheme, in main()
571 sizeof(scheme), username, sizeof(username), in main()
575 printf("scheme = \"%s\"\n", scheme); in main()
[all …]
Dppd-localize.c239 const char *scheme, /* I - URI scheme or NULL for text */ in ppdLocalizeIPPReason() argument
260 if (!ppd || !reason || (scheme && !*scheme) || in ppdLocalizeIPPReason()
280 if (lang && (!scheme || !strcmp(scheme, "text"))) in ppdLocalizeIPPReason()
354 if (!scheme || !strcmp(scheme, "text")) in ppdLocalizeIPPReason()
434 schemelen = strlen(scheme); in ppdLocalizeIPPReason()
435 if (scheme[schemelen - 1] == ':') /* Force scheme to be just the name */ in ppdLocalizeIPPReason()
440 if ((!strncmp(valptr, scheme, schemelen) && valptr[schemelen] == ':') || in ppdLocalizeIPPReason()
441 (*valptr == '/' && !strcmp(scheme, "file"))) in ppdLocalizeIPPReason()
/external/tpm2/
DCryptUtil.c628 TPMT_SIG_SCHEME *scheme, // IN: signing scheme in CryptSignHMAC() argument
637 digestSize = CryptStartHMAC2B(scheme->details.hmac.hashAlg, in CryptSignHMAC()
646 signature->signature.hmac.hashAlg = scheme->details.hmac.hashAlg; in CryptSignHMAC()
704 TPMT_KEYEDHASH_SCHEME *scheme; in CryptGenerateKeyedHash() local
712 scheme = &publicArea->parameters.keyedHashDetail.scheme; in CryptGenerateKeyedHash()
715 if(scheme->scheme == TPM_ALG_NULL) in CryptGenerateKeyedHash()
717 else if(scheme->scheme == TPM_ALG_XOR) in CryptGenerateKeyedHash()
718 hashAlg = scheme->details.xor_.hashAlg; in CryptGenerateKeyedHash()
720 hashAlg = scheme->details.hmac.hashAlg; in CryptGenerateKeyedHash()
936 TPMT_RSA_DECRYPT *scheme // IN: a sign or decrypt scheme in CryptSelectRSAScheme() argument
[all …]
DZGen_2Phase.c31 TPM_ALG_ID scheme; in TPM2_ZGen_2Phase() local
49 scheme = eccKey->publicArea.parameters.asymDetail.scheme.scheme; in TPM2_ZGen_2Phase()
50 if(scheme != TPM_ALG_NULL) in TPM2_ZGen_2Phase()
52 if(scheme != in->inScheme) in TPM2_ZGen_2Phase()
56 scheme = in->inScheme; in TPM2_ZGen_2Phase()
57 if(scheme == TPM_ALG_NULL) in TPM2_ZGen_2Phase()
80 scheme, in TPM2_ZGen_2Phase()
DAttest_spt.c28 TPMT_SIG_SCHEME *scheme, // IN/OUT: scheme to be used for signing in FillInAttestInfo() argument
35 result = CryptSelectSignScheme(signHandle, scheme); in FillInAttestInfo()
54 if(CryptIsSchemeAnonymous(scheme->scheme)) in FillInAttestInfo()
92 if(CryptIsSchemeAnonymous(scheme->scheme)) in FillInAttestInfo()
123 TPMT_SIG_SCHEME *scheme, // IN: sign scheme in SignAttestInfo() argument
160 hashAlg = scheme->details.any.hashAlg; in SignAttestInfo()
178 scheme, in SignAttestInfo()
DObject_spt.c354 keyScheme = &publicArea->parameters.asymDetail.scheme; in SchemeChecks()
365 && keyScheme->scheme != TPM_ALG_NULL) in SchemeChecks()
370 && keyScheme->scheme == TPM_ALG_NULL) in SchemeChecks()
380 if( keyScheme->scheme != TPM_ALG_NULL in SchemeChecks()
382 && !CryptIsSignScheme(keyScheme->scheme) in SchemeChecks()
385 && !CryptIsDecryptScheme(keyScheme->scheme) in SchemeChecks()
400 if(curveScheme->scheme != TPM_ALG_NULL) in SchemeChecks()
402 if(keyScheme->scheme != curveScheme->scheme) in SchemeChecks()
413 if(publicArea->parameters.eccDetail.kdf.scheme != TPM_ALG_NULL) in SchemeChecks()
426 if(publicArea->parameters.asymDetail.scheme.scheme != TPM_ALG_NULL) in SchemeChecks()
[all …]
DECDH_ZGen.c44 if( eccKey->publicArea.parameters.eccDetail.scheme.scheme != TPM_ALG_ECDH in TPM2_ECDH_ZGen()
45 && eccKey->publicArea.parameters.eccDetail.scheme.scheme != TPM_ALG_NULL) in TPM2_ECDH_ZGen()
DRSA_Encrypt.c31 TPMT_RSA_DECRYPT *scheme; in TPM2_RSA_Encrypt() local
58 scheme = CryptSelectRSAScheme(in->keyHandle, &in->inScheme); in TPM2_RSA_Encrypt()
59 if(scheme == NULL) in TPM2_RSA_Encrypt()
67 scheme, in->message.t.size, in->message.t.buffer, in TPM2_RSA_Encrypt()
DRSA_Decrypt.c33 TPMT_RSA_DECRYPT *scheme; in TPM2_RSA_Decrypt() local
66 scheme = CryptSelectRSAScheme(in->keyHandle, &in->inScheme); in TPM2_RSA_Decrypt()
67 if(scheme == NULL) in TPM2_RSA_Decrypt()
76 scheme, in->cipherText.t.size, in TPM2_RSA_Decrypt()
DCryptUtil_fp.h70 TPMT_RSA_DECRYPT *scheme, // IN: selects the padding scheme
96 TPM_ALG_ID scheme, // IN: the key exchange scheme
107 TPMT_RSA_DECRYPT *scheme, // IN: selects the padding scheme
231 BOOL CryptIsDecryptScheme(TPMI_ALG_ASYM_SCHEME scheme);
233 TPM_ALG_ID scheme // IN: the scheme algorithm to test
235 BOOL CryptIsSignScheme(TPMI_ALG_ASYM_SCHEME scheme);
236 BOOL CryptIsSplitSign(TPM_ALG_ID scheme // IN: the algorithm selector
280 TPMT_RSA_DECRYPT *scheme // IN: a sign or decrypt scheme
284 TPMT_SIG_SCHEME *scheme // IN/OUT: signing scheme
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBESecretKeyFactory.java17 private int scheme; field in PBESecretKeyFactory
26 int scheme, in PBESecretKeyFactory() argument
34 this.scheme = scheme; in PBESecretKeyFactory()
51 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null); in engineGenerateSecret()
56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize); in engineGenerateSecret()
60 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); in engineGenerateSecret()
63 … return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param); in engineGenerateSecret()
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DUriLoader.java27 final String scheme = model.getScheme(); in getResourceFetcher() local
30 if (isLocalUri(scheme)) { in getResourceFetcher()
37 } else if (urlLoader != null && ("http".equals(scheme) || "https".equals(scheme))) { in getResourceFetcher()
48 private static boolean isLocalUri(String scheme) { in isLocalUri() argument
49 return ContentResolver.SCHEME_FILE.equals(scheme) in isLocalUri()
50 || ContentResolver.SCHEME_CONTENT.equals(scheme) in isLocalUri()
51 || ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme); in isLocalUri()
/external/pdfium/third_party/libtiff/
Dtif_compress.c161 TIFFSetCompressionScheme(TIFF* tif, int scheme) in TIFFSetCompressionScheme() argument
163 const TIFFCodec *c = TIFFFindCODEC((uint16) scheme); in TIFFSetCompressionScheme()
172 return (c ? (*c->init)(tif, scheme) : 1); in TIFFSetCompressionScheme()
187 TIFFFindCODEC(uint16 scheme) in TIFFFindCODEC() argument
193 if (cd->info->scheme == scheme) in TIFFFindCODEC()
196 if (c->scheme == scheme) in TIFFFindCODEC()
202 TIFFRegisterCODEC(uint16 scheme, const char* name, TIFFInitMethod init) in TIFFRegisterCODEC() argument
212 cd->info->scheme = scheme; in TIFFRegisterCODEC()
273 if (TIFFIsCODECConfigured(c->scheme)) { in TIFFGetConfiguredCODECs()
/external/robolectric/v1/src/main/java/android/net/
DUri__FromAndroid.java477 private volatile String scheme = NOT_CACHED; field in Uri__FromAndroid.StringUri
481 boolean cached = (scheme != NOT_CACHED); in getScheme()
482 return cached ? scheme : (scheme = parseScheme()); in getScheme()
727 .scheme(getScheme()) in buildUpon()
734 .scheme(getScheme()) in buildUpon()
757 public static Uri__FromAndroid fromParts(String scheme, String ssp, in fromParts() argument
759 if (scheme == null) { in fromParts()
766 return new OpaqueUri(scheme, Part.fromDecoded(ssp), in fromParts()
778 private final String scheme; field in Uri__FromAndroid.OpaqueUri
782 private OpaqueUri(String scheme, Part ssp, Part fragment) { in OpaqueUri() argument
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPBES2Parameters.java17 private EncryptionScheme scheme; field in PBES2Parameters
37 this.scheme = encScheme; in PBES2Parameters()
55 scheme = EncryptionScheme.getInstance(e.nextElement()); in PBES2Parameters()
65 return scheme; in getEncryptionScheme()
73 v.add(scheme); in toASN1Primitive()
/external/nist-sip/java/gov/nist/javax/sip/header/
DAuthenticationHeader.java84 protected String scheme; field in AuthenticationHeader
89 this.scheme = ParameterNames.DIGEST; in AuthenticationHeader()
147 this.scheme = challenge.scheme; in setChallenge()
158 return this.scheme + SP + parameters.encode(); in encodeBody()
169 public void setScheme(String scheme) { in setScheme() argument
170 this.scheme = scheme; in setScheme()
180 return scheme; in getScheme()
DCredentials.java54 protected String scheme; field in Credentials
82 return scheme; in getScheme()
90 scheme = s; in setScheme()
102 String retval = scheme; in encode()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DWebPlatformUrlTest.java70 if (!testData.scheme.isEmpty() && !HTTP_URL_SCHEMES.contains(testData.scheme)) { in httpUrl()
71 System.err.println("Ignoring unsupported scheme " + testData.scheme); in httpUrl()
109 String effectivePort = url.port() != HttpUrl.defaultPort(url.scheme()) in testHttpUrl()
117 assertEquals("scheme", testData.scheme, url.scheme()); in testHttpUrl()
/external/chromium-trace/catapult/telemetry/third_party/websocket-client/websocket/
D_url.py43 scheme, url = url.split(":", 1)
45 parsed = urlparse(url, scheme="ws")
55 if scheme == "ws":
58 elif scheme == "wss":
63 raise ValueError("scheme %s is invalid" % scheme)

12345678910>>...18