Home
last modified time | relevance | path

Searched refs:KeyPair (Results 1 – 25 of 74) sorted by relevance

123

/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
H A Dadaptor_algorithm.h39 typedef struct KeyPair { struct
42 } KeyPair; argument
50 bool IsEd25519KeyPairValid(const KeyPair *keyPair);
51 void DestroyKeyPair(KeyPair *keyPair);
52 KeyPair *GenerateEd25519KeyPair(void);
53 int32_t Ed25519Sign(const KeyPair *keyPair, const Buffer *data, Buffer **sign);
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/inc/
H A Dadaptor_algorithm.h39 } KeyPair; typedef
47 bool IsEd25519KeyPairValid(const KeyPair *keyPair);
48 void DestoryKeyPair(KeyPair *keyPair);
49 KeyPair *GenerateEd25519KeyPair(void);
50 int32_t Ed25519Sign(const KeyPair *keyPair, const Buffer *data, Buffer **sign);
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.9.1/
H A Dchangelogs-security.md30 * @param { AsyncCallback<KeyPair> } callback - the callback used to return keypair.
36 generateKeyPair(callback: AsyncCallback<KeyPair>): void;
41 * @returns { Promise<KeyPair> } the promise used to return keypair.
47 generateKeyPair(): Promise<KeyPair>;
67 * @returns { Promise<KeyPair> } the promise used to return keypair.
73 convertKey(pubKey: DataBlob, priKey: DataBlob): Promise<KeyPair>;
162 generateKeyPair(callback: AsyncCallback<KeyPair>): void;
167 * @returns { Promise<KeyPair> } the promise used to return keypair.
174 generateKeyPair(): Promise<KeyPair>;
195 * @returns { Promise<KeyPair> } the promise used to return keypair.
[all …]
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.9.1/
H A Dchangelogs-security.md30 * @param { AsyncCallback<KeyPair> } callback - the callback used to return keypair.
36 generateKeyPair(callback: AsyncCallback<KeyPair>): void;
41 * @returns { Promise<KeyPair> } the promise used to return keypair.
47 generateKeyPair(): Promise<KeyPair>;
67 * @returns { Promise<KeyPair> } the promise used to return keypair.
73 convertKey(pubKey: DataBlob, priKey: DataBlob): Promise<KeyPair>;
162 generateKeyPair(callback: AsyncCallback<KeyPair>): void;
167 * @returns { Promise<KeyPair> } the promise used to return keypair.
174 generateKeyPair(): Promise<KeyPair>;
195 * @returns { Promise<KeyPair> } the promise used to return keypair.
[all …]
/ohos5.0/docs/zh-cn/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-generate-asym-key-pair-randomly.md4 以RSA和SM2为例,随机生成非对称密钥对(KeyPair),并获得二进制数据。
16 …ce/apis-crypto-architecture-kit/js-apis-cryptoFramework.md#generatekeypair-1),随机生成非对称密钥对象(KeyPair)。
18 KeyPair对象中包括公钥PubKey、私钥PriKey。
77 …ce/apis-crypto-architecture-kit/js-apis-cryptoFramework.md#generatekeypair-1),随机生成非对称密钥对象(KeyPair)。
79 KeyPair对象中包括公钥PubKey、私钥PriKey。
H A Dcrypto-key-agreement-using-dh.md9 …ecture-kit/js-apis-cryptoFramework.md#generatekeypair-1)生成密钥算法为DH、采用知名安全素数群modp1536的非对称密钥(KeyPair)。
14 …cture-kit/js-apis-cryptoFramework.md#generatesecret-1),基于传入的私钥(KeyPair.priKey)与公钥(KeyPair.pubKey)进…
H A Dcrypto-convert-binary-data-to-asym-key-pair.md4 以RSA、ECC、SM2为例,根据指定的对称密钥二进制数据,生成非对称密钥对(KeyPair),即将外部或存储的二进制数据转换为算法库的密钥对象,该对象可用于后续的加解密等操作。
28 …apis-crypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3),传入二进制密钥数据,生成非对称密钥对象(KeyPair)。
78 …-crypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3),传入公钥二进制和私钥二进制,生成非对称密钥对象(KeyPair)。
131 …s-crypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3),将上述生成的二进制密钥数据转为非对称密钥对象(KeyPair)。
169 …-crypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3),传入公钥二进制和私钥二进制,生成非对称密钥对象(KeyPair)。
H A Dcrypto-key-agreement-using-ecdh.md9 …rypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3)生成密钥算法为ECC、密钥长度为256位的非对称密钥(KeyPair)。
15 …cture-kit/js-apis-cryptoFramework.md#generatesecret-1),基于传入的私钥(KeyPair.priKey)与公钥(KeyPair.pubKey)进…
H A Dcrypto-key-agreement-using-x25519.md9 …/apis-crypto-architecture-kit/js-apis-cryptoFramework.md#convertkey-3)生成密钥算法为X25519的非对称密钥(KeyPair)。
14 …cture-kit/js-apis-cryptoFramework.md#generatesecret-1),基于传入的私钥(KeyPair.priKey)与公钥(KeyPair.pubKey)进…
H A Dcrypto-rsa-asym-encrypt-decrypt-pkcs1.md10 …yptoFramework.md#generatekeypair-1),生成RSA密钥类型为RSA1024、素数个数为2的非对称密钥对(KeyPair)。KeyPair对象中包括公钥PubKey、…
16 …-apis-cryptoFramework.md#init-1),设置模式为加密(CryptoMode.ENCRYPT_MODE),指定加密密钥(KeyPair.PubKey),初始化加密Ciph…
31 …-apis-cryptoFramework.md#init-1),设置模式为解密(CryptoMode.DECRYPT_MODE),指定解密密钥(KeyPair.PriKey)初始化解密Ciphe…
H A Dcrypto-sm2-asym-encrypt-decrypt.md10 …apis-cryptoFramework.md#generatekeypair-1),生成RSA密钥类型为SM2_256的非对称密钥对(KeyPair)。KeyPair对象中包括公钥PubKey、…
16 …-apis-cryptoFramework.md#init-1),设置模式为加密(CryptoMode.ENCRYPT_MODE),指定加密密钥(KeyPair.PubKey),初始化加密Ciph…
31 …-apis-cryptoFramework.md#init-1),设置模式为解密(CryptoMode.DECRYPT_MODE),指定解密密钥(KeyPair.PriKey)初始化解密Ciphe…
H A Dcrypto-key-generation-conversion-overview.md18 其中,密钥对象Key包括对称密钥SymKey和非对称密钥(公钥PubKey和私钥PriKey),其中公钥和私钥组成密钥对KeyPair
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c44 IAM_STATIC KeyPair *CreateEd25519KeyPair(void) in CreateEd25519KeyPair()
46 KeyPair *keyPair = Malloc(sizeof(KeyPair)); in CreateEd25519KeyPair()
67 void DestoryKeyPair(KeyPair *keyPair) in DestoryKeyPair()
81 bool IsEd25519KeyPairValid(const KeyPair *keyPair) in IsEd25519KeyPairValid()
98 KeyPair *GenerateEd25519KeyPair(void) in GenerateEd25519KeyPair()
100 KeyPair *keyPair = CreateEd25519KeyPair(); in GenerateEd25519KeyPair()
146 int32_t Ed25519Sign(const KeyPair *keyPair, const Buffer *data, Buffer **sign) in Ed25519Sign()
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/
H A Dadaptor_algorithm_test.cpp57 KeyPair keyPair2 = {};
65 KeyPair keyPair3 = {};
74 KeyPair *keyPair4 = GenerateEd25519KeyPair();
94 KeyPair *keyPair = GenerateEd25519KeyPair();
125 KeyPair *keyPair = GenerateEd25519KeyPair();
/ohos5.0/docs/en/application-dev/security/CryptoArchitectureKit/
H A Dcrypto-generate-asym-key-pair-randomly.md4 … SM2 as an example to describe how to generate an asymmetric key pair (**KeyPair**) and obtain the…
7 The **KeyPair** object created can be used for subsequent encryption and decryption operations, and…
16 …is-cryptoFramework.md#generatekeypair-1) to randomly generate an asymmetric key pair (**KeyPair**).
18 The **KeyPair** object includes a public key (**PubKey**) and a private key (**PriKey**).
77 …is-cryptoFramework.md#generatekeypair-1) to randomly generate an asymmetric key pair (**KeyPair**).
79 The **KeyPair** object includes a public key (**PubKey**) and a private key (**PriKey**).
H A Dcrypto-key-generation-conversion-overview.md18 …ric key object (**SymKey**) or an asymmetric key pair object (**KeyPair**). The **KeyPair** object…
H A Dcrypto-key-agreement-using-dh.md9 …oFramework.md#generatekeypair-1) to generate a DH asymmetric key pair (**KeyPair**) with the named…
14 …erform key agreement with the specified private key (**KeyPair.priKey**) and public key (**KeyPair
H A Dcrypto-key-agreement-using-ecdh.md9 …ture-kit/js-apis-cryptoFramework.md#convertkey-3) to generate a 256-bit ECC key pair (**KeyPair**).
15 …erform key agreement with the specified private key (**KeyPair.priKey**) and public key (**KeyPair
H A Dcrypto-key-agreement-using-x25519.md9 …t/js-apis-cryptoFramework.md#convertkey-3) to generate an X25519 asymmetric key pair (**KeyPair**).
14 …erform key agreement with the specified private key (**KeyPair.priKey**) and public key (**KeyPair
H A Dcrypto-rsa-asym-encrypt-decrypt-pkcs1.md10 …ir-1) to generate a 1024-bit RSA asymmetric key pair (**KeyPair**) with two primes. The **KeyPair*…
16 … **opMode** to **CryptoMode.ENCRYPT_MODE** (encryption) and **key** to **KeyPair.PubKey** (the key…
31 … **opMode** to **CryptoMode.DECRYPT_MODE** (decryption) and **key** to **KeyPair.PriKey** (the key…
H A Dcrypto-sm2-asym-encrypt-decrypt.md10 …neratekeypair-1) to create a 256-bit SM2 asymmetric key pair (**KeyPair**). The **KeyPair** object…
16 … **opMode** to **CryptoMode.ENCRYPT_MODE** (encryption) and **key** to **KeyPair.PubKey** (the key…
31 … **opMode** to **CryptoMode.DECRYPT_MODE** (decryption) and **key** to **KeyPair.PriKey** (the key…
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dadaptor_algorithm.c35 static KeyPair *CreateEd25519KeyPair(void) in CreateEd25519KeyPair()
37 KeyPair *keyPair = Malloc(sizeof(KeyPair)); in CreateEd25519KeyPair()
58 void DestroyKeyPair(KeyPair *keyPair) in DestroyKeyPair()
72 bool IsEd25519KeyPairValid(const KeyPair *keyPair) in IsEd25519KeyPairValid()
89 KeyPair *GenerateEd25519KeyPair(void) in GenerateEd25519KeyPair()
91 KeyPair *keyPair = CreateEd25519KeyPair(); in GenerateEd25519KeyPair()
137 int32_t Ed25519Sign(const KeyPair *keyPair, const Buffer *data, Buffer **sign) in Ed25519Sign()
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta2/
H A Djs-apidiff-security.md3 |新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(callback: AsyncCallback\<KeyPair>): void…
4 |新增|NA|类名:AsyKeyGeneratorBySpec;<br>方法or属性:generateKeyPair(): Promise\<KeyPair>;|@ohos.security.cry…
114 …k: AsyncCallback\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generateKey…
115 …generateKeyPair(): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:generate…
116 …\<KeyPair>): void;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: DataBlob…
117 …b): Promise\<KeyPair>;<br>旧版本信息:401,17620001|类名:AsyKeyGenerator;<br>方法or属性:convertKey(pubKey: Data…
/ohos5.0/drivers/peripheral/user_auth/test/unittest/base_test/src/
H A Dadaptor_algorithm_test.cpp56 KeyPair keyPair2 = {};
64 KeyPair keyPair3 = {};
73 KeyPair *keyPair4 = GenerateEd25519KeyPair();
93 KeyPair *keyPair = GenerateEd25519KeyPair();
124 KeyPair *keyPair = GenerateEd25519KeyPair();
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta3/
H A Djs-apidiff-security.md99 …Blob, callback : AsyncCallback\<KeyPair>) : void;<br>convertKey(pubKey : DataBlob, priKey : DataBl…
100 … | generateKeyPair(callback : AsyncCallback\<KeyPair>) : void;<br>generateKeyPair() : Promise\<
104 | ohos.security.cryptoFramework | KeyPair | readonly pubKey : PubKey; …
105 | ohos.security.cryptoFramework | KeyPair | readonly priKey : PriKey; …

123