Home
last modified time | relevance | path

Searched refs:pub_key (Results 1 – 25 of 50) sorted by relevance

12

/OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/
H A Ddh.h49 MP_t pub_key; member
56 … vp; dhm_free(&_dh->ctx); MP_free(_dh->p); MP_free(_dh->g); MP_free(_dh->pub_key); MP_free(_dh->pr…
65 MP_new(dh->pub_key); in MDH_generate_key()
67 MP_set(dh->pub_key, &dh->ctx.GX); in MDH_generate_key()
100 MP_t pub_key; member
106 …P_free(((MDH*)(dh))->p); MP_free(((MDH*)(dh))->g); MP_free(((MDH*)(dh))->pub_key); MP_free(((MDH*)…
128 dh->pub_key = calloc(1, sizeof(*dh->pub_key)); in MDH_generate_key()
129 if (!dh->pub_key) in MDH_generate_key()
131 mpz_init2(dh->pub_key, 1); in MDH_generate_key()
132 if (!dh->pub_key) { in MDH_generate_key()
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/demo/
H A Ddemo_rsa.c132 rk_rsa_pub_key_pack pub_key; in demo_rsa_pub_enc() local
157 test_init_pubkey(&pub_key); in demo_rsa_pub_enc()
160 res = rk_rsa_pub_encrypt(&pub_key, padding, plain, sizeof(plain), enc_buf, &out_len); in demo_rsa_pub_enc()
208 rk_rsa_pub_key_pack pub_key; in demo_rsa_priv_enc() local
233 test_init_pubkey(&pub_key); in demo_rsa_priv_enc()
243 res = rk_rsa_pub_decrypt(&pub_key, padding, enc_buf, out_len, dec_buf, &out_len); in demo_rsa_priv_enc()
283 rk_rsa_pub_key_pack pub_key; in demo_rsa_sign_data() local
299 test_init_pubkey(&pub_key); in demo_rsa_sign_data()
310 res = rk_rsa_verify(&pub_key, padding, data, sizeof(data), NULL, sign, sign_len); in demo_rsa_sign_data()
341 rk_rsa_pub_key_pack pub_key; in demo_rsa_sign_digest() local
[all …]
/OK3568_Linux_fs/buildroot/package/ibrdtnd/
H A D0001-ibrdtnd-added-openssl-compatibility.patch37 + const BIGNUM *pub_key, *p, *g;
45 - write(request, state.dh->pub_key);
49 + DH_get0_key(state.dh, &pub_key, NULL);
51 + write(request, pub_key);
70 BIGNUM* pub_key = BN_new();
71 read(data, &pub_key);
86 + BN_free(pub_key);
96 - write(response, state.dh->pub_key);
175 +void DH_get0_key(const DH *dh, const BIGNUM **pub_key, const BIGNUM **priv_key)
177 + if (pub_key != NULL)
[all …]
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Decdsa.c533 mbedtls_ecp_point pub_key; in rk_ecdsa_verify() local
536 mbedtls_ecp_point_init( &pub_key); in rk_ecdsa_verify()
541 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pub_key.X, key->x, key->x_len) ); in rk_ecdsa_verify()
542 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &pub_key.Y, key->y, key->y_len) ); in rk_ecdsa_verify()
543 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &pub_key.Z, 1 )); in rk_ecdsa_verify()
545 if(mbedtls_ecp_check_pubkey( &grp, &pub_key) != 0) in rk_ecdsa_verify()
572 if( ( ret = mbedtls_ecdsa_verify( &grp, hash, hash_len, &pub_key, &r, &s ) ) != 0 ) in rk_ecdsa_verify()
582 mbedtls_ecp_point_free( &pub_key); in rk_ecdsa_verify()
629 mbedtls_ecp_point pub_key; in rk_ecdsa_verify2() local
632 mbedtls_ecp_point_init( &pub_key); in rk_ecdsa_verify2()
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Decrdsa.c43 struct ecc_point pub_key; member
95 !ctx->pub_key.x || in ecrdsa_verify()
98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify()
138 ecc_point_mult_shamir(&cc, z1, &ctx->curve->g, z2, &ctx->pub_key, in ecrdsa_verify()
241 ctx->pub_key = ECC_POINT_INIT(ctx->_pubp[0], ctx->_pubp[1], ndigits); in ecrdsa_set_pub_key()
242 vli_from_le64(ctx->pub_key.x, ctx->key, ndigits); in ecrdsa_set_pub_key()
243 vli_from_le64(ctx->pub_key.y, ctx->key + ndigits * sizeof(u64), in ecrdsa_set_pub_key()
246 if (ecc_is_pubkey_valid_partial(ctx->curve, &ctx->pub_key)) in ecrdsa_set_pub_key()
260 return ctx->pub_key.ndigits * sizeof(u64); in ecrdsa_max_size()
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/
H A Drk_atags.c372 struct tag_pub_key pub_key; in atags_set_pub_key() local
377 memset(&pub_key, 0, sizeof(struct tag_pub_key)); in atags_set_pub_key()
378 pub_key.len = len; in atags_set_pub_key()
379 pub_key.flag = flag; in atags_set_pub_key()
380 memcpy(pub_key.data, data, len); in atags_set_pub_key()
382 return atags_set_tag(ATAG_PUB_KEY, &pub_key); in atags_set_pub_key()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-connectivity/wvdial/wvstreams/
H A D0001-Forward-port-to-OpenSSL-1.1.x.patch122 - return BN_num_bytes(info->pub_key);
123 + const BIGNUM *pub_key = NULL;
124 + DH_get0_key(info, &pub_key, NULL);
125 + return BN_num_bytes(pub_key);
130 - int key_len = BN_num_bytes(info->pub_key);
131 + const BIGNUM *pub_key = NULL;
132 + DH_get0_key(info, &pub_key, NULL);
134 + int key_len = BN_num_bytes(pub_key);
140 - BN_bn2bin(info->pub_key, foo);
141 + BN_bn2bin(pub_key, foo);
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/libavb_atx/
H A Davb_atx_validate.c86 struct rk_pub_key pub_key; in verify_permanent_attributes() local
93 memset(&pub_key, 0, sizeof(struct rk_pub_key)); in verify_permanent_attributes()
94 ret = rk_avb_get_pub_key(&pub_key); in verify_permanent_attributes()
115 rsa_key.n = (u32 *)&pub_key.rsa_n; in verify_permanent_attributes()
116 rsa_key.e = (u32 *)&pub_key.rsa_e; in verify_permanent_attributes()
118 rsa_key.c = (u32 *)&pub_key.rsa_c; in verify_permanent_attributes()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/host/openssl/include/openssl/
H A Ddh.h121 int (*compute_key) (unsigned char *key, const BIGNUM *pub_key, DH *dh);
145 BIGNUM *pub_key; /* g^x % p */ member
238 int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key, int *codes);
240 int DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh);
241 int DH_compute_key_padded(unsigned char *key, const BIGNUM *pub_key, DH *dh);
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/include/openssl/
H A Ddh.h98 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
187 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
253 BIGNUM *pub_key; // g^x mod p member
/OK3568_Linux_fs/external/security/rk_tee_user/v1/export-user_ta/host_include/openssl/
H A Ddh.h98 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
187 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
253 BIGNUM *pub_key; // g^x mod p member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/include/openssl/
H A Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
105 const EC_POINT *pub_key,
H A Ddh.h116 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
240 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
316 BIGNUM *pub_key; // g^x mod p member
H A Ddsa.h130 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
418 BIGNUM *pub_key; // y public key member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/host_include/openssl/
H A Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
105 const EC_POINT *pub_key,
H A Ddh.h116 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
240 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
316 BIGNUM *pub_key; // g^x mod p member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/openssl/
H A Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
105 const EC_POINT *pub_key,
H A Ddh.h116 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
240 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
316 BIGNUM *pub_key; // g^x mod p member
H A Ddsa.h130 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
418 BIGNUM *pub_key; // y public key member
/OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm64/include/openssl/
H A Decdh.h89 void *out, size_t outlen, const EC_POINT *pub_key, const EC_KEY *priv_key,
105 const EC_POINT *pub_key,
H A Ddh.h116 OPENSSL_EXPORT int DH_set0_key(DH *dh, BIGNUM *pub_key, BIGNUM *priv_key);
240 OPENSSL_EXPORT int DH_check_pub_key(const DH *dh, const BIGNUM *pub_key,
316 BIGNUM *pub_key; // g^x mod p member
H A Ddsa.h130 OPENSSL_EXPORT int DSA_set0_key(DSA *dsa, BIGNUM *pub_key, BIGNUM *priv_key);
418 BIGNUM *pub_key; // y public key member
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_rsa.c613 rk_rsa_pub_key_pack pub_key; in test_rsa_pub_enc() local
641 test_init_pubkey(&pub_key, nbits); in test_rsa_pub_enc()
644 res = rk_rsa_pub_encrypt(&pub_key, padding, data, data_len, enc_buf, &out_len); in test_rsa_pub_enc()
725 rk_rsa_pub_key_pack pub_key; in test_rsa_priv_enc() local
753 test_init_pubkey(&pub_key, nbits); in test_rsa_priv_enc()
764 res = rk_rsa_pub_decrypt(&pub_key, padding, enc_buf, out_len, dec_buf, &out_len); in test_rsa_priv_enc()
809 rk_rsa_pub_key_pack pub_key; in test_rsa_sign_common() local
819 test_init_pubkey(&pub_key, nbits); in test_rsa_sign_common()
860 res = rk_rsa_verify(&pub_key, padding, in, in_len, hash, sign, sign_len); in test_rsa_sign_common()
868 res = rk_rsa_verify(&pub_key, padding, in, in_len, hash, sign, sign_len); in test_rsa_sign_common()
/OK3568_Linux_fs/kernel/crypto/asymmetric_keys/
H A Dasym_tpm.c339 static uint32_t derive_pub_key(const void *pub_key, uint32_t len, uint8_t *buf) in derive_pub_key() argument
351 memcpy(cur + 1, pub_key, len); in derive_pub_key()
412 der_pub_key_len = derive_pub_key(tk->pub_key, tk->pub_key_len, in tpm_key_query()
466 der_pub_key_len = derive_pub_key(tk->pub_key, tk->pub_key_len, in tpm_key_encrypt()
761 der_pub_key_len = derive_pub_key(tk->pub_key, tk->pub_key_len, in tpm_key_verify_signature()
817 const void *pub_key; in extract_key_parameters() local
888 pub_key = cur + 4; in extract_key_parameters()
891 tk->pub_key = pub_key; in extract_key_parameters()
/OK3568_Linux_fs/kernel/include/crypto/
H A Dasym_tpm_subtype.h11 const void *pub_key; /* pointer inside blob to the public key bytes */ member

12