!1407 1120 revert_1290

Merge pull request !1407 from zww/1120_revert
This commit is contained in:
openharmony_ci 2024-11-20 08:08:44 +00:00 committed by Gitee
commit a569657dcd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 2 deletions

View File

@ -254,7 +254,6 @@ static int32_t EncodeTlvAndGetLength(uint8_t **buf, uint32_t *outLength, uint32_
uint32_t length = 0; /* length of the payload */
uint32_t tmp;
HKS_IF_NULL_LOGE_RETURN(*buf, HKS_ERROR_INVALID_ARGUMENT, "invalid input param");
HKS_ASN1_DECODE_BYTE(*buf, tmp); /* get type */
if ((*buf)[0] < ASN_1_MIN_VAL_1_EXTRA_LEN_BYTE) {
/* Current byte tells the length */

View File

@ -134,7 +134,6 @@ static int32_t Asn1GetObj(struct HksBlob *next, struct HksAsn1Obj *obj, const st
uint8_t *buf = data->data;
uint32_t length = 0;
obj->header.data = buf;
HKS_IF_NULL_LOGE_RETURN(buf, HKS_ERROR_INVALID_ARGUMENT, "invalid input param");
HKS_ASN1_DECODE_BYTE(buf, obj->header.type);
if (buf[0] < ASN_1_MIN_VAL_1_EXTRA_LEN_BYTE) {
HKS_ASN1_DECODE_BYTE(buf, length);