コンテンツにスキップ

ECCSI鍵のセットアップ

More...

Functions

Name
int wc_InitEccsiKey(EccsiKey * key, void * heap, int devId)
int wc_InitEccsiKey_ex(EccsiKey * key, int keySz, int curveId, void * heap, int devId)
void wc_FreeEccsiKey(EccsiKey * key)
int wc_MakeEccsiKey(EccsiKey * key, WC_RNG * rng)
int wc_ExportEccsiKey(EccsiKey * key, byte * data, word32 * sz)
int wc_ImportEccsiKey(EccsiKey * key, const byte * data, word32 sz)
int wc_ExportEccsiPrivateKey(EccsiKey * key, byte * data, word32 * sz)
int wc_ImportEccsiPrivateKey(EccsiKey * key, const byte * data, word32 sz)
int wc_ExportEccsiPublicKey(EccsiKey * key, byte * data, word32 * sz, int raw)
int wc_ImportEccsiPublicKey(EccsiKey * key, const byte * data, word32 sz, int trusted)
int wc_SetEccsiHash(EccsiKey * key, const byte * hash, byte hashSz)
int wc_SetEccsiPair(EccsiKey * key, const mp_int * ssk, const ecc_point * pvt)

Detailed Description

ECCSI鍵を確立するための操作。

使用前にECCSI鍵を初期化(wc_InitEccsiKey())。

P256以外の曲線を使用する場合は、使用前にECCSI鍵を初期化(wc_InitEccsiKey_ex())。

新しい鍵を作成(wc_MakeEccsiKey())、既存の鍵をインポート(wc_ImportEccsiKey())、または既存の秘密鍵(wc_ImportEccsiPrivateKey())と公開鍵(wc_ImportEccsiPublicKey())をインポート。

新しい鍵を作成した後、将来の使用のために鍵をエクスポート(wc_ExportEccsiKey())。

新しい鍵を作成した後、将来の使用のために秘密鍵をエクスポート(wc_ExportEccsiPrivateKey())。

KMSからクライアントに渡すために公開鍵をエクスポート(wc_ExportEccsiPublicKey())。

クライアントに公開鍵をインポート(wc_ImportEccsiPublicKey())。

終了時にECCSI鍵を解放(wc_FreeEccsiKey())。

Functions Documentation

function wc_InitEccsiKey

int wc_InitEccsiKey(
    EccsiKey * key,
    void * heap,
    int devId
)

function wc_InitEccsiKey_ex

int wc_InitEccsiKey_ex(
    EccsiKey * key,
    int keySz,
    int curveId,
    void * heap,
    int devId
)

function wc_FreeEccsiKey

void wc_FreeEccsiKey(
    EccsiKey * key
)

function wc_MakeEccsiKey

int wc_MakeEccsiKey(
    EccsiKey * key,
    WC_RNG * rng
)

function wc_ExportEccsiKey

int wc_ExportEccsiKey(
    EccsiKey * key,
    byte * data,
    word32 * sz
)

function wc_ImportEccsiKey

int wc_ImportEccsiKey(
    EccsiKey * key,
    const byte * data,
    word32 sz
)

function wc_ExportEccsiPrivateKey

int wc_ExportEccsiPrivateKey(
    EccsiKey * key,
    byte * data,
    word32 * sz
)

function wc_ImportEccsiPrivateKey

int wc_ImportEccsiPrivateKey(
    EccsiKey * key,
    const byte * data,
    word32 sz
)

function wc_ExportEccsiPublicKey

int wc_ExportEccsiPublicKey(
    EccsiKey * key,
    byte * data,
    word32 * sz,
    int raw
)

function wc_ImportEccsiPublicKey

int wc_ImportEccsiPublicKey(
    EccsiKey * key,
    const byte * data,
    word32 sz,
    int trusted
)

function wc_SetEccsiHash

int wc_SetEccsiHash(
    EccsiKey * key,
    const byte * hash,
    byte hashSz
)

function wc_SetEccsiPair

int wc_SetEccsiPair(
    EccsiKey * key,
    const mp_int * ssk,
    const ecc_point * pvt
)

Updated on 2025-12-12 at 03:08:17 +0000