Home
last modified time | relevance | path

Searched refs:tagLen (Results 1 – 10 of 10) sorted by relevance

/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DChannelCrypterNettyTestBase.java76 int tagLen = client.getSuffixLength(); in frameDecryptOfEncrypt() local
80 Collections.singletonList(out.slice(out.readerIndex(), out.readableBytes() - tagLen)); in frameDecryptOfEncrypt()
81 frameDecrypt.tag = out.slice(out.readerIndex() + out.readableBytes() - tagLen, tagLen); in frameDecryptOfEncrypt()
144 int tagLen = client.getSuffixLength(); in encryptDecryptComposite() local
148 ByteBuf cipher1 = getDirectBuffer(outLen - lastLen - tagLen, ref); in encryptDecryptComposite()
150 cipher1.writeBytes(out, 0, outLen - lastLen - tagLen); in encryptDecryptComposite()
151 cipher2.writeBytes(out, outLen - tagLen - lastLen, lastLen); in encryptDecryptComposite()
154 frameDecrypt.tag = out.slice(out.readerIndex() + out.readableBytes() - tagLen, tagLen); in encryptDecryptComposite()
/external/ppp/pppd/plugins/rp-pppoe/
Dcommon.c49 UINT16_t tagType, tagLen; in parsePacket() local
71 tagLen = (curTag[2] << 8) + curTag[3]; in parsePacket()
75 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) { in parsePacket()
76 error("Invalid PPPoE tag length (%u)", tagLen); in parsePacket()
79 func(tagType, tagLen, curTag+TAG_HDR_SIZE, extra); in parsePacket()
80 curTag = curTag + TAG_HDR_SIZE + tagLen; in parsePacket()
Dpppoe-discovery.c266 UINT16_t tagType, tagLen; in parsePacket() local
290 tagLen = (curTag[2] << 8) + curTag[3]; in parsePacket()
294 if ((curTag - packet->payload) + tagLen + TAG_HDR_SIZE > len) { in parsePacket()
295 fprintf(stderr, "Invalid PPPoE tag length (%u)\n", tagLen); in parsePacket()
298 func(tagType, tagLen, curTag+TAG_HDR_SIZE, extra); in parsePacket()
299 curTag = curTag + TAG_HDR_SIZE + tagLen; in parsePacket()
/external/icu/icu4c/source/tools/gencnval/
Dgencnval.c184 getTagNumber(const char *tag, uint16_t tagLen);
529 getTagNumber(const char *tag, uint16_t tagLen) { in getTagNumber() argument
532 UBool preferredName = ((tagLen > 0) ? (tag[tagLen - 1] == '*') : (FALSE)); in getTagNumber()
541 tagLen--; in getTagNumber()
546 if (uprv_strlen(currTag) == tagLen && !uprv_strnicmp(currTag, tag, tagLen)) { in getTagNumber()
558 atag = allocString(&tagBlock, tag, tagLen); in getTagNumber()
565 else if (tagLen > 0 && strcmp(tag, ALL_TAG_STR) != 0) { in getTagNumber()
/external/icu/icu4c/source/common/
Duloc_tag.cpp304 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status);
2015 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status) { in ultag_parse() argument
2035 if (tagLen < 0) { in ultag_parse()
2036 tagLen = (int32_t)uprv_strlen(tag); in ultag_parse()
2040 tagBuf = (char*)uprv_malloc(tagLen + 1); in ultag_parse()
2045 uprv_memcpy(tagBuf, tag, tagLen); in ultag_parse()
2046 *(tagBuf + tagLen) = 0; in ultag_parse()
2059 if (tagLen < MINLEN) { in ultag_parse()
2071 if (tagLen < checkGrandfatheredLen) { in ultag_parse()
2074 if (tagLen > checkGrandfatheredLen && tagBuf[checkGrandfatheredLen] != '-') { in ultag_parse()
[all …]
Dulocimp.h114 int32_t tagLen,
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/charsetdet/
DDetectingViewer.java192 int tagLen = tag.length; in openTag() local
196 for (b = 0; b < tagLen && b < bufRem; b += 1) { in openTag()
202 return b == tagLen; in openTag()
/external/mesa3d/include/android_stub/log/
Dlogprint.h64 size_t tagLen; member
/external/libese/third_party/NXPNFC_P61_JCOP_Kit/src/
DAla.cpp2345 UINT8 tagLen = 0; in Write_Response_To_OutFile() local
2375 tagLen = tag44off+2; in Write_Response_To_OutFile()
2382 tagLen = tag44off+2; in Write_Response_To_OutFile()
2399 tagLen = tag44off+3; in Write_Response_To_OutFile()
2407 tagLen = tag44off+3; in Write_Response_To_OutFile()
2426 tagLen = tag44off+4; in Write_Response_To_OutFile()
2452 while(tempLen < tagLen) in Write_Response_To_OutFile()
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc3514 static jint evp_aead_ctx_op(JNIEnv* env, jlong evpAeadRef, jbyteArray keyArray, jint tagLen, in evp_aead_ctx_op() argument
3519 JNI_TRACE("evp_aead_ctx_op(%p, %p, %d, %p, %d, %p, %p, %d, %d, %p)", evpAead, keyArray, tagLen, in evp_aead_ctx_op()
3534 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3549 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3575 static_cast<size_t>(tagLen), nullptr)) { in evp_aead_ctx_op()
3580 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3597 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3603 jbyteArray keyArray, jint tagLen, jbyteArray outArray, in NativeCrypto_EVP_AEAD_CTX_seal() argument
3608 return evp_aead_ctx_op(env, evpAeadRef, keyArray, tagLen, outArray, outOffset, nonceArray, in NativeCrypto_EVP_AEAD_CTX_seal()
3613 jbyteArray keyArray, jint tagLen, jbyteArray outArray, in NativeCrypto_EVP_AEAD_CTX_open() argument
[all …]