Home
last modified time | relevance | path

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

/external/epid-sdk/ext/ipp/sources/ippcp/
Dpcphashgettag.c77 IPPFUN(IppStatus, ippsHashGetTag,(Ipp8u* pTag, int tagLen, const IppsHashState* pState))
87 if(tagLen<1||hashSize<tagLen) IPP_ERROR_RET(ippStsLengthErr);
89 cpComputeDigest(pTag, tagLen, pState);
Dpcpsha1gettag.c78 IPPFUN(IppStatus, ippsSHA1GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA1State* pState))
87 IPP_BADARG_RET((tagLen<1)||(sizeof(DigestSHA1)<tagLen), ippStsLengthErr);
98 CopyBlock(digest, pTag, tagLen);
Dpcpsha384gettag.c79 IPPFUN(IppStatus, ippsSHA384GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA384State* pState))
88 IPP_BADARG_RET((tagLen<1)||(sizeof(DigestSHA384)<tagLen), ippStsLengthErr);
102 CopyBlock(digest, pTag, tagLen);
Dpcpsha224gettag.c79 IPPFUN(IppStatus, ippsSHA224GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA224State* pState))
88 IPP_BADARG_RET((tagLen<1)||(sizeof(DigestSHA224)<tagLen), ippStsLengthErr);
102 CopyBlock(digest, pTag, tagLen);
Dpcpsha512gettag.c78 IPPFUN(IppStatus, ippsSHA512GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA512State* pState))
87 IPP_BADARG_RET((tagLen<1)||(sizeof(DigestSHA512)<tagLen), ippStsLengthErr);
103 CopyBlock(digest, pTag, tagLen);
Dpcpsha256gettag.c78 IPPFUN(IppStatus, ippsSHA256GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA256State* pState))
87 IPP_BADARG_RET((tagLen<1)||(sizeof(DigestSHA256)<tagLen), ippStsLengthErr);
101 CopyBlock(digest, pTag, tagLen);
Dpcphashgettag_rmf.c78 IPPFUN(IppStatus, ippsHashGetTag_rmf,(Ipp8u* pTag, int tagLen, const IppsHashState_rmf* pState))
87 IPP_BADARG_RET((tagLen <1) || HASH_METHOD(pState)->hashLen<tagLen, ippStsLengthErr);
Dpcpsms4authccm.h61 Ipp32u tagLen; /* length of authentication tag */ member
81 #define SMS4CCM_TAGLEN(stt) ((stt)->tagLen)
Dpcpaesauthccm.h62 Ipp32u tagLen; /* length of authentication tag */ member
82 #define AESCCM_TAGLEN(stt) ((stt)->tagLen)
/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);
530 getTagNumber(const char *tag, uint16_t tagLen) { in getTagNumber() argument
533 UBool preferredName = ((tagLen > 0) ? (tag[tagLen - 1] == '*') : (FALSE)); in getTagNumber()
542 tagLen--; in getTagNumber()
547 if (uprv_strlen(currTag) == tagLen && !uprv_strnicmp(currTag, tag, tagLen)) { in getTagNumber()
559 atag = allocString(&tagBlock, tag, tagLen); in getTagNumber()
566 else if (tagLen > 0 && strcmp(tag, ALL_TAG_STR) != 0) { in getTagNumber()
/external/icu/icu4c/source/common/
Duloc_tag.cpp302 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status);
2055 ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode* status) { in ultag_parse() argument
2076 if (tagLen < 0) { in ultag_parse()
2077 tagLen = (int32_t)uprv_strlen(tag); in ultag_parse()
2081 tagBuf = (char*)uprv_malloc(tagLen + 1); in ultag_parse()
2086 uprv_memcpy(tagBuf, tag, tagLen); in ultag_parse()
2087 *(tagBuf + tagLen) = 0; in ultag_parse()
2099 if (tagLen < MINLEN) { in ultag_parse()
2109 grandfatheredLen = tagLen; /* back up for output parsedLen */ in ultag_parse()
2111 if (tagLen < newTagLength) { in ultag_parse()
[all …]
Dulocimp.h90 int32_t tagLen,
/external/epid-sdk/ext/ipp/include/
Dippcp.h275 IPPAPI(IppStatus, ippsSMS4_CCMTagLen,(int tagLen, IppsSMS4_CCMState* pCtx))
280 IPPAPI(IppStatus, ippsSMS4_CCMGetTag,(Ipp8u* pTag, int tagLen, const IppsSMS4_CCMState* pCtx))
293 IPPAPI(IppStatus, ippsAES_CCMTagLen,(int tagLen, IppsAES_CCMState* pState))
298 IPPAPI(IppStatus, ippsAES_CCMGetTag,(Ipp8u* pTag, int tagLen, const IppsAES_CCMState* pState))
314 IPPAPI(IppStatus, ippsAES_GCMGetTag,(Ipp8u* pDstTag, int tagLen, const IppsAES_GCMState* pState))
394 IPPAPI(IppStatus, ippsSHA1GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA1State* pState))
407 IPPAPI(IppStatus, ippsSHA224GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA224State* pState))
420 IPPAPI(IppStatus, ippsSHA256GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA256State* pState))
433 IPPAPI(IppStatus, ippsSHA384GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA384State* pState))
446 IPPAPI(IppStatus, ippsSHA512GetTag,(Ipp8u* pTag, Ipp32u tagLen, const IppsSHA512State* pState))
[all …]
/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/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.cc3496 static jint evp_aead_ctx_op(JNIEnv* env, jlong evpAeadRef, jbyteArray keyArray, jint tagLen, in evp_aead_ctx_op() argument
3501 JNI_TRACE("evp_aead_ctx_op(%p, %p, %d, %p, %d, %p, %p, %d, %d, %p)", evpAead, keyArray, tagLen, in evp_aead_ctx_op()
3516 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3532 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3559 static_cast<size_t>(tagLen), nullptr)) { in evp_aead_ctx_op()
3563 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3580 evpAead, keyArray, tagLen, outArray, outOffset, nonceArray, inArray, inOffset, in evp_aead_ctx_op()
3586 jbyteArray keyArray, jint tagLen, jbyteArray outArray, in NativeCrypto_EVP_AEAD_CTX_seal() argument
3591 return evp_aead_ctx_op(env, evpAeadRef, keyArray, tagLen, outArray, outOffset, nonceArray, in NativeCrypto_EVP_AEAD_CTX_seal()
3596 jbyteArray keyArray, jint tagLen, jbyteArray outArray, in NativeCrypto_EVP_AEAD_CTX_open() argument
[all …]