| /OK3568_Linux_fs/external/security/librkcrypto/demo/ |
| H A D | demo_rsa.c | 127 uint8_t *enc_buf = NULL; in demo_rsa_pub_enc() local 141 enc_buf = (uint8_t *)malloc(nbytes); in demo_rsa_pub_enc() 142 if (!enc_buf) { 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() 167 res = rk_rsa_priv_decrypt(&priv_key, padding, enc_buf, out_len, dec_buf, &out_len); in demo_rsa_pub_enc() 180 if (enc_buf) in demo_rsa_pub_enc() 181 free(enc_buf); in demo_rsa_pub_enc() 202 uint8_t *enc_buf = NULL; in demo_rsa_priv_enc() local 217 enc_buf = (uint8_t *)malloc(nbytes); in demo_rsa_priv_enc() 218 if (!enc_buf) { in demo_rsa_priv_enc() [all …]
|
| /OK3568_Linux_fs/external/security/librkcrypto/test/ |
| H A D | test_rsa.c | 610 uint8_t *enc_buf = NULL; in test_rsa_pub_enc() local 627 enc_buf = (uint8_t *)malloc(nbytes); in test_rsa_pub_enc() 628 if (!enc_buf) { 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() 657 res = openssl_decrypt(enc_buf, out_len, dec_buf, &out_len, in test_rsa_pub_enc() 672 res = openssl_encrypt(data, data_len, enc_buf, &out_len, in test_rsa_pub_enc() 680 res = rk_rsa_priv_decrypt(&priv_key, padding, enc_buf, out_len, dec_buf, &out_len); in test_rsa_pub_enc() 688 test_dump_hex("result", enc_buf, out_len); in test_rsa_pub_enc() 698 if (enc_buf) in test_rsa_pub_enc() 699 free(enc_buf); in test_rsa_pub_enc() [all …]
|
| /OK3568_Linux_fs/kernel/net/ceph/ |
| H A D | auth_x.c | 504 void *enc_buf = xi->auth_authorizer.enc_buf; in ceph_x_build_request() local 505 struct ceph_x_challenge_blob *blob = enc_buf + in ceph_x_build_request() 519 ret = ceph_x_encrypt(&xi->secret, enc_buf, CEPHX_AU_ENC_BUF_LEN, in ceph_x_build_request() 526 for (u = (u64 *)enc_buf; u + 1 <= (u64 *)(enc_buf + ret); u++) in ceph_x_build_request() 653 auth->authorizer_reply_buf = au->enc_buf; in ceph_x_create_authorizer() 733 void *p = au->enc_buf; in ceph_x_verify_authorizer_reply() 808 void *enc_buf = au->enc_buf; in calc_signature() local 818 } __packed *sigblock = enc_buf + ceph_x_encrypt_offset(); in calc_signature() 826 ret = ceph_x_encrypt(&au->session_key, enc_buf, in calc_signature() 831 *psig = *(__le64 *)(enc_buf + sizeof(u32)); in calc_signature() [all …]
|
| H A D | auth_x.h | 37 char enc_buf[CEPHX_AU_ENC_BUF_LEN] __aligned(8); member
|
| /OK3568_Linux_fs/kernel/drivers/media/pci/solo6x10/ |
| H A D | solo6x10-v4l2-enc.c | 507 struct vb2_buffer *vb, struct solo_enc_buf *enc_buf) in solo_enc_fillbuf() argument 510 const vop_header *vh = enc_buf->vh; in solo_enc_fillbuf() 528 if (solo_is_motion_on(solo_enc) && enc_buf->motion) { in solo_enc_fillbuf() 535 .region_mask = enc_buf->motion ? 1 : 0, in solo_enc_fillbuf() 549 struct solo_enc_buf *enc_buf) in solo_enc_handle_one() argument 555 if (solo_enc->type != enc_buf->type) in solo_enc_handle_one() 568 solo_enc_fillbuf(solo_enc, &vb->vb.vb2_buf, enc_buf); in solo_enc_handle_one() 582 struct solo_enc_buf enc_buf; in solo_handle_ring() local 601 enc_buf.type = SOLO_ENC_TYPE_EXT; in solo_handle_ring() 603 enc_buf.type = SOLO_ENC_TYPE_STD; in solo_handle_ring() [all …]
|
| /OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/utils/ |
| H A D | mpp_encoder.h | 69 int Encode(void* mpp_buf, char* enc_buf, int max_size); 70 int GetHeader(char* enc_buf, int max_size);
|
| H A D | mpp_encoder.cpp | 460 int MppEncoder::GetHeader(char* enc_buf, int max_size) { in GetHeader() argument 462 void* out_ptr = enc_buf; in GetHeader() 497 int MppEncoder::Encode(void* mpp_buf, char* enc_buf, int max_size) { in Encode() argument 499 void* out_ptr = enc_buf; in Encode() 657 if (enc_buf != nullptr && max_size > 0) { in Encode()
|
| /OK3568_Linux_fs/buildroot/package/vtun/ |
| H A D | 0003-openssl11.patch | 138 lfd_free(enc_buf); enc_buf = NULL; 162 *out = enc_buf;
|
| /OK3568_Linux_fs/external/mpp/test/ |
| H A D | mpi_rc2_test.c | 163 void *enc_buf = mpp_buffer_get_ptr(mpp_frame_get_buffer(frame_in)); in mpi_rc_cmp_frame() local 170 if (!enc_buf) { in mpi_rc_cmp_frame() 207 RK_U8 *enc_buf = (RK_U8 *)mpp_buffer_get_ptr(mpp_frame_get_buffer(frame_in)); in mpi_rc_calc_psnr() local 209 RK_U8 *enc_buf_y = enc_buf; in mpi_rc_calc_psnr() 347 pixel *enc_buf = in mpi_rc_calc_ssim() local 351 pixel *enc_buf_y = enc_buf; in mpi_rc_calc_ssim()
|