Searched refs:cctx (Results 1 – 3 of 3) sorted by relevance
| /rk3399_rockchip-uboot/tools/ |
| H A D | mxsimage.c | 359 struct sb_cmd_ctx *cctx) in sb_encrypt_tag() argument 362 struct sb_command *cmd = &cctx->payload; in sb_encrypt_tag() 365 (uint8_t *)&cctx->c_payload, sizeof(*cmd)); in sb_encrypt_tag() 366 EVP_DigestUpdate(md_ctx, &cctx->c_payload, sizeof(*cmd)); in sb_encrypt_tag() 395 struct sb_cmd_ctx *cctx; in sb_encrypt_image() local 400 cctx = sctx->cmd_head; in sb_encrypt_image() 404 while (cctx) { in sb_encrypt_image() 405 ccmd = &cctx->payload; in sb_encrypt_image() 407 sb_encrypt_tag(ictx, cctx); in sb_encrypt_image() 412 sb_aes_crypt(ictx, cctx->data, cctx->data, in sb_encrypt_image() [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | sha256.c | 56 sha_context cctx; in sha256_starts() local 63 cctx.algo = algo; in sha256_starts() 64 cctx.length = ctx->length; in sha256_starts() 65 crypto_sha_init(ctx->cdev, &cctx); in sha256_starts() 282 sha_context cctx; in sha256_finish() local 285 cctx.algo = CRYPTO_SHA256; in sha256_finish() 286 cctx.length = ctx->length; in sha256_finish() 287 crypto_sha_final(ctx->cdev, &cctx, digest); in sha256_finish()
|
| H A D | sha1.c | 71 sha_context cctx; in sha1_starts() local 78 cctx.algo = algo; in sha1_starts() 79 cctx.length = ctx->length; in sha1_starts() 80 crypto_sha_init(ctx->cdev, &cctx); in sha1_starts() 325 sha_context cctx; in sha1_finish() local 328 cctx.algo = CRYPTO_SHA1; in sha1_finish() 329 cctx.length = ctx->length; in sha1_finish() 330 crypto_sha_final(ctx->cdev, &cctx, output); in sha1_finish()
|