1/* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15import * as param from '../publicParam'; 16 17let HuksHmac = { 18 HuksKeyAlg: { 19 tag: param.HksTag.HKS_TAG_ALGORITHM, 20 value: param.HksKeyAlg.HKS_ALG_HMAC, 21 }, 22 HuksKeyPurpose: { 23 tag: param.HksTag.HKS_TAG_PURPOSE, 24 value: param.HksKeyPurpose.HKS_KEY_PURPOSE_MAC, 25 }, 26 HuksKeySIZE: { 27 tag: param.HksTag.HKS_TAG_KEY_SIZE, 28 value: param.HksKeySize.HKS_RSA_KEY_SIZE_512, 29 }, 30 HuksTagDigestSHA1: { 31 tag: param.HksTag.HKS_TAG_DIGEST, 32 value: param.HksKeyDigest.HKS_DIGEST_SHA1, 33 }, 34 HuksTagDigestSHA224: { 35 tag: param.HksTag.HKS_TAG_DIGEST, 36 value: param.HksKeyDigest.HKS_DIGEST_SHA224, 37 }, 38 HuksTagDigestSHA256: { 39 tag: param.HksTag.HKS_TAG_DIGEST, 40 value: param.HksKeyDigest.HKS_DIGEST_SHA256, 41 }, 42 HuksTagDigestSHA384: { 43 tag: param.HksTag.HKS_TAG_DIGEST, 44 value: param.HksKeyDigest.HKS_DIGEST_SHA384, 45 }, 46 HuksTagDigestSHA512: { 47 tag: param.HksTag.HKS_TAG_DIGEST, 48 value: param.HksKeyDigest.HKS_DIGEST_SHA512, 49 }, 50 HuksTagDigestSM3: { 51 tag: param.HksTag.HKS_TAG_DIGEST, 52 value: param.HksKeyDigest.HKS_DIGEST_SM3, 53 }, 54}; 55export { HuksHmac }; 56