Home
last modified time | relevance | path

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

12345

/third_party/node/test/fixtures/wpt/WebCryptoAPI/encrypt_decrypt/
Daes_cbc_vectors.js204 keyLengths.forEach(function(keyLength) { argument
206 name: "AES-CBC " + keyLength.toString() + "-bit key",
207 keyBuffer: keyBytes[keyLength],
211 result: ciphertext[keyLength]
217 keyLengths.forEach(function(keyLength) { argument
220 name: "AES-CBC " + keyLength.toString() + "-bit key, 64-bit IV",
221 keyBuffer: keyBytes[keyLength],
225 result: ciphertext[keyLength]
232 name: "AES-CBC " + keyLength.toString() + "-bit key, 192-bit IV",
233 keyBuffer: keyBytes[keyLength],
[all …]
Daes_gcm_vectors.js29 keyLengths.forEach(function(keyLength) { argument
33 var result = new Uint8Array(ciphertext[keyLength].byteLength + byteCount);
34 result.set(ciphertext[keyLength], 0);
35 result.set(tag[keyLength].slice(0, byteCount), ciphertext[keyLength].byteLength);
37 …name: "AES-GCM " + keyLength.toString() + "-bit key, " + tagLength.toString() + "-bit tag, " + (iv…
38 keyBuffer: keyBytes[keyLength],
45 var noadresult = new Uint8Array(ciphertext[keyLength].byteLength + byteCount);
46 noadresult.set(ciphertext[keyLength], 0);
47 …noadresult.set(tag_with_empty_ad[keyLength].slice(0, byteCount), ciphertext[keyLength].byteLength);
49 …name: "AES-GCM " + keyLength.toString() + "-bit key, no additional data, " + tagLength.toString() …
[all …]
Daes_ctr_vectors.js89 keyLengths.forEach(function(keyLength) { argument
91 name: "AES-CTR " + keyLength.toString() + "-bit key",
92 keyBuffer: keyBytes[keyLength],
96 result: ciphertext[keyLength]
102 keyLengths.forEach(function(keyLength) { argument
104 name: "AES-CTR " + keyLength.toString() + "-bit key, 0-bit counter",
105 keyBuffer: keyBytes[keyLength],
109 result: ciphertext[keyLength]
113 name: "AES-CTR " + keyLength.toString() + "-bit key, 129-bit counter",
114 keyBuffer: keyBytes[keyLength],
[all …]
/third_party/node/test/fixtures/crypto/
Daes_gcm.js87 kKeyLengths.forEach((keyLength) => {
91 new Uint8Array(kCiphertext[keyLength].byteLength + byteCount);
92 result.set(kCiphertext[keyLength], 0);
93 result.set(tag[keyLength].slice(0, byteCount),
94 kCiphertext[keyLength].byteLength);
96 keyBuffer: kKeyBytes[keyLength],
103 new Uint8Array(kCiphertext[keyLength].byteLength + byteCount);
104 noadresult.set(kCiphertext[keyLength], 0);
105 noadresult.set(tag_with_empty_ad[keyLength].slice(0, byteCount),
106 kCiphertext[keyLength].byteLength);
[all …]
Daes_cbc.js87 kKeyLengths.forEach((keyLength) => {
89 keyBuffer: kKeyBytes[keyLength],
92 result: kCipherText[keyLength]
97 kKeyLengths.forEach((keyLength) => {
99 keyBuffer: kKeyBytes[keyLength],
105 result: kCipherText[keyLength]
112 keyBuffer: kKeyBytes[keyLength],
115 result: kCipherText[keyLength]
121 kKeyLengths.forEach(function(keyLength) { argument
128 new Uint8Array(kCipherText[keyLength].byteLength);
[all …]
Daes_ctr.js72 kKeyLengths.forEach((keyLength) => {
74 keyBuffer: kKeyBytes[keyLength],
77 result: kCiphertext[keyLength]
82 kKeyLengths.forEach((keyLength) => {
84 keyBuffer: kKeyBytes[keyLength],
87 result: kCiphertext[keyLength]
91 keyBuffer: kKeyBytes[keyLength],
94 result: kCiphertext[keyLength]
/third_party/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()
/third_party/node/deps/icu-small/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()
/third_party/skia/third_party/externals/icu/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()
/third_party/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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()
/third_party/skia/src/gpu/
DGrProgramDesc.h120 uint32_t keyLength() const { in keyLength() function
162 static bool BuildFromData(GrProgramDesc* desc, const void* keyData, size_t keyLength) { in BuildFromData() argument
163 if (!SkTFitsIn<int>(keyLength) || !SkIsAlign4(keyLength)) { in BuildFromData()
166 desc->fKey.reset(keyLength / 4); in BuildFromData()
167 memcpy(desc->fKey.begin(), keyData, keyLength); in BuildFromData()
/third_party/node/test/parallel/
Dtest-crypto-getcipherinfo.js31 assert.strictEqual(info.keyLength, 16);
49 () => getCipherInfo('aes-192-cbc', { keyLength: len }), { property
58 assert(!getCipherInfo('aes-128-cbc', { keyLength: 12 })); property
59 assert(getCipherInfo('aes-128-cbc', { keyLength: 16 })); property
Dtest-crypto.js126 const { ivLength, keyLength, mode } = crypto.getCipherInfo(algo);
133 crypto.randomBytes(keyLength),
/third_party/node/deps/openssl/openssl/crypto/asn1/
Dp5_scrypt.c28 ASN1_OPT(SCRYPT_PARAMS, keyLength, ASN1_INTEGER),
179 sparam->keyLength = ASN1_INTEGER_new(); in pkcs5_scrypt_set()
180 if (sparam->keyLength == NULL) in pkcs5_scrypt_set()
182 if (ASN1_INTEGER_set_int64(sparam->keyLength, keylen) == 0) in pkcs5_scrypt_set()
246 if (sparam->keyLength) { in PKCS5_v2_scrypt_keyivgen_ex()
248 if ((ASN1_INTEGER_get_uint64(&spkeylen, sparam->keyLength) == 0) in PKCS5_v2_scrypt_keyivgen_ex()
/third_party/openssl/crypto/asn1/
Dp5_scrypt.c28 ASN1_OPT(SCRYPT_PARAMS, keyLength, ASN1_INTEGER),
179 sparam->keyLength = ASN1_INTEGER_new(); in pkcs5_scrypt_set()
180 if (sparam->keyLength == NULL) in pkcs5_scrypt_set()
182 if (ASN1_INTEGER_set_int64(sparam->keyLength, keylen) == 0) in pkcs5_scrypt_set()
246 if (sparam->keyLength) { in PKCS5_v2_scrypt_keyivgen_ex()
248 if ((ASN1_INTEGER_get_uint64(&spkeylen, sparam->keyLength) == 0) in PKCS5_v2_scrypt_keyivgen_ex()
/third_party/node/lib/internal/crypto/
Dcipher.js311 let keyLength, ivLength;
314 ({ keyLength, ivLength } = options);
315 if (keyLength !== undefined)
316 validateInt32(keyLength, 'options.keyLength');
321 const ret = _getCipherInfo({}, nameOrNid, keyLength, ivLength);
/third_party/node/deps/icu-small/source/common/
Dulocbuilder.cpp80 ULocaleBuilder* builder, const char* key, int32_t keyLength, in ulocbld_setUnicodeLocaleKeyword() argument
84 STRING_PIECE(key, keyLength), STRING_PIECE(type, typeLength)); in ulocbld_setUnicodeLocaleKeyword()
Dloadednormalizer2impl.cpp333 int32_t keyLength= static_cast<int32_t>(uprv_strlen(name)+1); in getInstance() local
334 char *nameCopy=(char *)uprv_malloc(keyLength); in getInstance()
339 uprv_memcpy(nameCopy, name, keyLength); in getInstance()
/third_party/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()
/third_party/skia/third_party/externals/icu/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()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DUResource.java57 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
60 length = keyLength; in Key()
/third_party/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()
/third_party/icu/icu4c/source/test/intltest/
Dcollationtest.cpp1366 int32_t keyLength; in getCollationKey() local
1367 const uint8_t *keyBytes = key.getByteArray(keyLength); in getCollationKey()
1368 if(keyLength == 0 || keyBytes[keyLength - 1] != 0) { in getCollationKey()
1388 for(int32_t i = 0; i < (keyLength - 1); ++i) { in getCollationKey()
1420 if(keyLength != parts.length() || uprv_memcmp(keyBytes, parts.data(), keyLength) != 0) { in getCollationKey()
1529 int32_t keyLength; in getDifferenceLevel() local
1530 const uint8_t *bytes = key.getByteArray(keyLength); in getDifferenceLevel()
/third_party/skia/experimental/graphite/src/
DResourceProvider.h60 return SkOpts::hash_fn(desc.asKey(), desc.keyLength(), 0); in operator()

12345