|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include "crypto_pke_struct.h"

结构体 | |
| struct | rsa_pkcs1_pack |
| struct | rsa_pkcs1_hash_info |
| struct | pke_hash_properties_type |
| struct | sm2_sign_verify_hash_pack |
| #define BOUND_VALUE_1 1 |
| #define BYTE_BITS 8 |
| #define DRV_PKE_SM2_LEN_IN_BYTES 32 |
| #define DRV_WORD_WIDTH 4 |
| #define ECC_KEY_LEN_IN_BYTE (ECC_KEY_LEN_IN_WORD * 4) |
| #define ECC_KEY_LEN_IN_BYTE_X2 (ECC_KEY_LEN_IN_BYTE * 2) |
| #define ECC_KEY_LEN_IN_WORD 0x12 |
| #define ECC_TRY_CNT 8 |
| #define ENTLA_LEN 2 |
| #define HASH_SIZE_SHA_1 20 |
| #define HASH_SIZE_SHA_224 28 |
| #define HASH_SIZE_SHA_256 32 |
| #define HASH_SIZE_SHA_384 48 |
| #define HASH_SIZE_SHA_512 64 |
| #define HASH_SIZE_SHA_MAX 64 |
| #define HASH_SIZE_SHA_MAX 64 |
| #define MAX_LOW_2BITS 3 |
| #define MAX_LOW_3BITS 7 |
| #define MAX_LOW_4BITS 0xF |
| #define MAX_LOW_8BITS 0xFF |
| #define PKE_U16_MAX 0xFFFF |
| #define REGISTER_WIDTH 8 |
| #define RSA_MAX_KEY_LEN 512 |
| #define RSA_MIN_KEY_LEN 32 |
| #define RSA_PAD_X12 0x12 |
| #define RSA_PAD_X55 0x55 |
| #define RSA_PAD_XBC 0xBC |
| #define RSA_PADLEN_1 1 |
| #define RSA_PADLEN_11 11 |
| #define RSA_PADLEN_19 19 |
| #define RSA_PADLEN_2 2 |
| #define RSA_PADLEN_3 3 |
| #define RSA_PADLEN_51 51 |
| #define RSA_PADLEN_8 8 |
| #define RSA_PRIVATE 0xA5 /* private key operation */ |
| #define RSA_PUBLIC 0x5A /* public key operation */ |
| #define SHA1_BLOCK_LENGTH 64 |
Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
Description: cipher driver pke inner header.
History:
2023-03-22, Create file.
| #define SHA1_RESULT_LENGTH 20 |
| #define SHA224_BLOCK_LENGTH 64 |
| #define SHA224_RESULT_LENGTH 28 |
| #define SHA256_BLOCK_LENGTH 64 |
| #define SHA256_RESULT_LENGTH 32 |
| #define SHA384_BLOCK_LENGTH 128 |
| #define SHA384_RESULT_LENGTH 48 |
| #define SHA512_BLOCK_LENGTH 128 |
| #define SHA512_RESULT_LENGTH 64 |
| #define SHIFT_16BITS 16 |
| #define SHIFT_24BITS 24 |
| #define SHIFT_4BITS 4 |
| #define SHIFT_8BITS 8 |
| #define SM2_PC_UNCOMPRESS 0x04 |
| #define SM2_TRY_CNT 8 |
| #define SM3_BLOCK_LENGTH 64 |
| #define SM3_RESULT_LENGTH 32 |
| #define WORD_INDEX_0 0 |
| #define WORD_INDEX_1 1 |
| #define WORD_INDEX_2 2 |
| #define WORD_INDEX_3 3 |