Home
last modified time | relevance | path

Searched refs:keyLength (Results 1 – 25 of 40) sorted by relevance

12

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLAeadCipherAES.java35 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
36 switch (keyLength) { in checkSupportedKeySize()
41 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
124 long getEVP_AEAD(int keyLength) throws InvalidKeyException { in getEVP_AEAD() argument
125 if (keyLength == 16) { in getEVP_AEAD()
127 } else if (keyLength == 32) { in getEVP_AEAD()
130 throw new RuntimeException("Unexpected key length: " + keyLength); in getEVP_AEAD()
138 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
139 if (keyLength != 16) { // 128 bits in checkSupportedKeySize()
141 "Unsupported key size: " + keyLength + " bytes (must be 16)"); in checkSupportedKeySize()
[all …]
DOpenSSLEvpCipherAES.java62 String getCipherName(int keyLength, Mode mode) { in getCipherName() argument
63 return "aes-" + (keyLength * 8) + "-" + mode.toString().toLowerCase(Locale.US); in getCipherName()
119 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
120 switch (keyLength) { in checkSupportedKeySize()
126 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
180 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
181 if (keyLength != 16) { // 128 bits in checkSupportedKeySize()
182 throw new InvalidKeyException("Unsupported key size: " + keyLength + " bytes"); in checkSupportedKeySize()
235 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
236 if (keyLength != 32) { // 256 bits in checkSupportedKeySize()
[all …]
DOpenSSLAeadCipherChaCha20.java29 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
30 if (keyLength != 32) { in checkSupportedKeySize()
31 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
54 long getEVP_AEAD(int keyLength) throws InvalidKeyException { in getEVP_AEAD() argument
55 if (keyLength == 32) { in getEVP_AEAD()
58 throw new RuntimeException("Unexpected key length: " + keyLength); in getEVP_AEAD()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLAeadCipherAES.java39 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
40 switch (keyLength) { in checkSupportedKeySize()
45 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
131 long getEVP_AEAD(int keyLength) throws InvalidKeyException { in getEVP_AEAD() argument
132 if (keyLength == 16) { in getEVP_AEAD()
134 } else if (keyLength == 32) { in getEVP_AEAD()
137 throw new RuntimeException("Unexpected key length: " + keyLength); in getEVP_AEAD()
148 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
149 if (keyLength != 16) { // 128 bits in checkSupportedKeySize()
151 "Unsupported key size: " + keyLength + " bytes (must be 16)"); in checkSupportedKeySize()
[all …]
DOpenSSLEvpCipherAES.java66 String getCipherName(int keyLength, Mode mode) { in getCipherName() argument
67 return "aes-" + (keyLength * 8) + "-" + mode.toString().toLowerCase(Locale.US); in getCipherName()
147 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
148 switch (keyLength) { in checkSupportedKeySize()
154 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
232 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
233 if (keyLength != 16) { // 128 bits in checkSupportedKeySize()
234 throw new InvalidKeyException("Unsupported key size: " + keyLength + " bytes"); in checkSupportedKeySize()
311 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
312 if (keyLength != 32) { // 256 bits in checkSupportedKeySize()
[all …]
DOpenSSLAeadCipherChaCha20.java33 void checkSupportedKeySize(int keyLength) throws InvalidKeyException { in checkSupportedKeySize() argument
34 if (keyLength != 32) { in checkSupportedKeySize()
35 throw new InvalidKeyException("Unsupported key size: " + keyLength in checkSupportedKeySize()
58 long getEVP_AEAD(int keyLength) throws InvalidKeyException { in getEVP_AEAD() argument
59 if (keyLength == 32) { in getEVP_AEAD()
62 throw new RuntimeException("Unexpected key length: " + keyLength); in getEVP_AEAD()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
DPBKDF2Params.java37 private final ASN1Integer keyLength; field in PBKDF2Params
85 int keyLength) in PBKDF2Params() argument
87 this(salt, iterationCount, keyLength, null); in PBKDF2Params()
101 int keyLength, in PBKDF2Params() argument
107 if (keyLength > 0) in PBKDF2Params()
109 this.keyLength = new ASN1Integer(keyLength); in PBKDF2Params()
113 this.keyLength = null; in PBKDF2Params()
148 keyLength = ASN1Integer.getInstance(o); in PBKDF2Params()
160 keyLength = null; in PBKDF2Params()
174 keyLength = null; in PBKDF2Params()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/
DPBKDF2Params.java39 private final ASN1Integer keyLength; field in PBKDF2Params
87 int keyLength) in PBKDF2Params() argument
89 this(salt, iterationCount, keyLength, null); in PBKDF2Params()
103 int keyLength, in PBKDF2Params() argument
109 if (keyLength > 0) in PBKDF2Params()
111 this.keyLength = new ASN1Integer(keyLength); in PBKDF2Params()
115 this.keyLength = null; in PBKDF2Params()
150 keyLength = ASN1Integer.getInstance(o); in PBKDF2Params()
162 keyLength = null; in PBKDF2Params()
176 keyLength = null; in PBKDF2Params()
[all …]
/external/skia/src/gpu/
DGrProgramDesc.h35 uint32_t keyLength() const { in keyLength() function
41 uint32_t keyLength = other.keyLength();
42 fKey.reset(SkToInt(keyLength));
43 memcpy(fKey.begin(), other.fKey.begin(), keyLength);
48 if (this->keyLength() != that.keyLength()) {
52 SkASSERT(SkIsAlign4(this->keyLength()));
53 int l = this->keyLength() >> 2;
95 static bool BuildFromData(GrProgramDesc* desc, const void* keyData, size_t keyLength) { in BuildFromData() argument
96 if (!SkTFitsIn<int>(keyLength)) { in BuildFromData()
99 desc->fKey.reset(SkToInt(keyLength)); in BuildFromData()
[all …]
DGrProgramDesc.cpp257 header->fInitialKeyLength = desc->keyLength(); in Build()
259 if (header->fInitialKeyLength != desc->keyLength()) { in Build()
/external/skqp/src/gpu/
DGrProgramDesc.h55 uint32_t keyLength() const { in keyLength() function
61 uint32_t keyLength = other.keyLength();
62 fKey.reset(SkToInt(keyLength));
63 memcpy(fKey.begin(), other.fKey.begin(), keyLength);
68 if (this->keyLength() != that.keyLength()) {
72 SkASSERT(SkIsAlign4(this->keyLength()));
73 int l = this->keyLength() >> 2;
/external/icu/icu4c/source/i18n/
Drbt_rule.cpp86 keyLength = input.length() - anteContextLength; in TransliterationRule()
94 keyLength = postContextPos - anteContextLength; in TransliterationRule()
131 if (keyLength > 0) { in TransliterationRule()
132 key = new StringMatcher(pattern, anteContextLength, anteContextLength + keyLength, in TransliterationRule()
141 int32_t postContextLength = pattern.length() - keyLength - anteContextLength; in TransliterationRule()
144 postContext = new StringMatcher(pattern, anteContextLength + keyLength, pattern.length(), in TransliterationRule()
171 keyLength(other.keyLength), in TransliterationRule()
305 keyLength <= r2.keyLength && in masks()
315 (right == right2 && keyLength <= r2.keyLength)) && in masks()
534 int32_t limit = anteContextLength + keyLength; in addSourceSetTo()
Drbt_rule.h127 int32_t keyLength; variable
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTransliterationRule.java107 private int keyLength; field in TransliterationRule
174 keyLength = input.length() - anteContextLength; in TransliterationRule()
180 keyLength = postContextPos - anteContextLength; in TransliterationRule()
210 if (keyLength > 0) { in TransliterationRule()
211 … key = new StringMatcher(pattern.substring(anteContextLength, anteContextLength + keyLength), in TransliterationRule()
215 int postContextLength = pattern.length() - keyLength - anteContextLength; in TransliterationRule()
218 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
323 keyLength <= r2.keyLength && in masks()
333 (right == right2 && keyLength <= r2.keyLength)) && in masks()
561 int limit = anteContextLength + keyLength; in addSourceTargetSet()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRule.java106 private int keyLength; field in TransliterationRule
173 keyLength = input.length() - anteContextLength; in TransliterationRule()
179 keyLength = postContextPos - anteContextLength; in TransliterationRule()
209 if (keyLength > 0) { in TransliterationRule()
210 … key = new StringMatcher(pattern.substring(anteContextLength, anteContextLength + keyLength), in TransliterationRule()
214 int postContextLength = pattern.length() - keyLength - anteContextLength; in TransliterationRule()
217 postContext = new StringMatcher(pattern.substring(anteContextLength + keyLength), in TransliterationRule()
322 keyLength <= r2.keyLength && in masks()
332 (right == right2 && keyLength <= r2.keyLength)) && in masks()
560 int limit = anteContextLength + keyLength; in addSourceTargetSet()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
DHMac.java121 int keyLength = key.length; in init() local
123 if (keyLength > blockLength) in init()
125 digest.update(key, 0, keyLength); in init()
128 keyLength = digestSize; in init()
132 System.arraycopy(key, 0, inputPad, 0, keyLength); in init()
135 for (int i = keyLength; i < inputPad.length; i++) in init()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/macs/
DHMac.java123 int keyLength = key.length; in init() local
125 if (keyLength > blockLength) in init()
127 digest.update(key, 0, keyLength); in init()
130 keyLength = digestSize; in init()
134 System.arraycopy(key, 0, inputPad, 0, keyLength); in init()
137 for (int i = keyLength; i < inputPad.length; i++) in init()
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/internal/ws/
DWebSocketProtocol.java88 int keyLength = key.length; in toggleMask() local
90 int keyIndex = (int) (frameBytesRead % keyLength); in toggleMask()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestReferenceStringSearch.java196 private int keyLength; field in TestReferenceStringSearch.DirectStringSearch
210 main: for (; textToSearchIn.hasCharAt(textPosition + keyLength - 1); ++textPosition) { in searchForwards()
212 for (int i = 0; i < keyLength; ++i) { in searchForwards()
227 + keyLength); in searchForwards()
246 keyLength = key.length(); in setKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DBlowfishEngine.java456 int keyLength = key.length; in setKey() local
469 if (keyIndex >= keyLength) in setKey()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DBlowfishEngine.java458 int keyLength = key.length; in setKey() local
471 if (keyIndex >= keyLength) in setKey()
/external/icu/icu4c/source/common/
Dloadednormalizer2impl.cpp309 int32_t keyLength= static_cast<int32_t>(uprv_strlen(name)+1); in getInstance() local
310 char *nameCopy=(char *)uprv_malloc(keyLength); in getInstance()
315 uprv_memcpy(nameCopy, name, keyLength); in getInstance()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUResource.java54 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
57 length = keyLength; in Key()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUResource.java57 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
60 length = keyLength; in Key()
/external/skqp/src/gpu/vk/
DGrVkPipelineStateBuilder.cpp408 int keyLength = desc->key().count(); in Build() local
409 SkASSERT(0 == (keyLength % 4)); in Build()
410 desc->fShaderKeyLength = SkToU32(keyLength); in Build()

12