Home
last modified time | relevance | path

Searched defs:ctx (Results 1 – 25 of 47) sorted by relevance

12

/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c133 int crypto_sha_init(struct udevice *dev, sha_context *ctx) in crypto_sha_init()
159 int crypto_sha_final(struct udevice *dev, sha_context *ctx, u8 *output) in crypto_sha_final()
202 int crypto_hmac_init(struct udevice *dev, sha_context *ctx, in crypto_hmac_init()
229 int crypto_hmac_final(struct udevice *dev, sha_context *ctx, u8 *output) in crypto_hmac_final()
239 int crypto_sha_csum(struct udevice *dev, sha_context *ctx, in crypto_sha_csum()
257 int crypto_sha_regions_csum(struct udevice *dev, sha_context *ctx, in crypto_sha_regions_csum()
281 int crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, u8 *sign, u8 *output) in crypto_rsa_verify()
294 int crypto_ec_verify(struct udevice *dev, ec_key *ctx, u8 *hash, u32 hash_len, u8 *sign) in crypto_ec_verify()
307 int crypto_cipher(struct udevice *dev, cipher_context *ctx, in crypto_cipher()
321 int crypto_mac(struct udevice *dev, cipher_context *ctx, in crypto_mac()
[all …]
/rk3399_rockchip-uboot/tools/rockchip/
H A Dsha.c58 static void SHA1_Transform(SHA_CTX *ctx) in SHA1_Transform()
154 void SHA_update(SHA_CTX *ctx, const void *data, int len) in SHA_update()
178 const uint8_t *SHA_final(SHA_CTX *ctx) in SHA_final()
203 static void SHA1_transform(SHA_CTX *ctx) in SHA1_transform()
254 void SHA_update(SHA_CTX *ctx, const void *data, int len) in SHA_update()
269 const uint8_t *SHA_final(SHA_CTX *ctx) in SHA_final()
297 void SHA_init(SHA_CTX *ctx) in SHA_init()
312 SHA_CTX ctx; in SHA() local
H A Dresource_tool.c50 void sha1_starts (sha1_context * ctx) in sha1_starts()
62 static void sha1_process(sha1_context *ctx, const unsigned char data[64]) in sha1_process()
224 void sha1_update(sha1_context *ctx, const unsigned char *input, in sha1_update()
272 void sha1_finish (sha1_context * ctx, unsigned char output[20]) in sha1_finish()
305 sha1_context ctx; in sha1_csum() local
319 void sha256_starts(sha256_context * ctx) in sha256_starts()
334 static void sha256_process(sha256_context *ctx, const uint8_t data[64]) in sha256_process()
477 void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length) in sha256_update()
519 void sha256_finish(sha256_context * ctx, uint8_t digest[32]) in sha256_finish()
555 sha256_context ctx; in sha256_csum() local
/rk3399_rockchip-uboot/lib/
H A Dsha1.c67 void sha1_starts (sha1_context * ctx) in sha1_starts()
96 static void __maybe_unused sha1_process_one(sha1_context *ctx, const unsigned char data[64]) in sha1_process_one()
250 __weak void sha1_process(sha1_context *ctx, const unsigned char *data, in sha1_process()
265 void sha1_update(sha1_context *ctx, const unsigned char *input, in sha1_update()
317 void sha1_finish (sha1_context * ctx, unsigned char output[20]) in sha1_finish()
361 sha1_context ctx; in sha1_csum() local
380 sha1_context ctx; in sha1_csum_wd() local
418 sha1_context ctx; in sha1_hmac() local
487 sha1_context ctx; in sha1_self_test() local
H A Dsha256.c52 void sha256_starts(sha256_context * ctx) in sha256_starts()
84 static void sha256_process_one(sha256_context *ctx, const uint8_t data[64]) in sha256_process_one()
215 __weak void sha256_process(sha256_context *ctx, const unsigned char *data, in sha256_process()
227 void sha256_update(sha256_context *ctx, const uint8_t *input, uint32_t length) in sha256_update()
274 void sha256_finish(sha256_context * ctx, uint8_t digest[32]) in sha256_finish()
321 sha256_context ctx; in sha256_csum() local
340 sha256_context ctx; in sha256_csum_wd() local
H A Dsha512.c75 static int __sha512_starts(sha512_context *ctx, int is384) in __sha512_starts()
107 int sha512_starts(sha512_context *ctx) in sha512_starts()
158 static int sha512_process(sha512_context *ctx, const unsigned char data[128]) in sha512_process()
236 int sha512_update(sha512_context *ctx, const unsigned char *input, size_t ilen) in sha512_update()
281 int sha512_finish(sha512_context *ctx, unsigned char output[64]) in sha512_finish()
341 sha512_context ctx; in sha512_csum() local
H A Dmd5.c59 MD5Init(struct MD5Context *ctx) in MD5Init()
75 MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len) in MD5Update()
124 MD5Final(unsigned char digest[16], struct MD5Context *ctx) in MD5Final()
/rk3399_rockchip-uboot/common/
H A Dhash.c36 sha1_context *ctx = malloc(sizeof(sha1_context)); in hash_init_sha1() local
42 static int hash_update_sha1(struct hash_algo *algo, void *ctx, const void *buf, in hash_update_sha1()
49 static int hash_finish_sha1(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_sha1()
64 sha256_context *ctx = malloc(sizeof(sha256_context)); in hash_init_sha256() local
70 static int hash_update_sha256(struct hash_algo *algo, void *ctx, in hash_update_sha256()
77 static int hash_finish_sha256(struct hash_algo *algo, void *ctx, void in hash_finish_sha256()
91 uint32_t *ctx = malloc(sizeof(uint32_t)); in hash_init_crc32() local
97 static int hash_update_crc32(struct hash_algo *algo, void *ctx, in hash_update_crc32()
104 static int hash_finish_crc32(struct hash_algo *algo, void *ctx, void *dest_buf, in hash_finish_crc32()
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_sha256.c42 void avb_sha256_init(AvbSHA256Ctx* ctx) { in avb_sha256_init()
48 void avb_sha256_update(AvbSHA256Ctx* ctx, const uint8_t* data, size_t len) { in avb_sha256_update()
52 uint8_t* avb_sha256_final(AvbSHA256Ctx* ctx) { in avb_sha256_final()
133 void avb_sha256_init(AvbSHA256Ctx* ctx) { in avb_sha256_init()
154 static void SHA256_transform(AvbSHA256Ctx* ctx, in SHA256_transform()
353 void avb_sha256_update(AvbSHA256Ctx* ctx, const uint8_t* data, size_t len) { in avb_sha256_update()
384 uint8_t* avb_sha256_final(AvbSHA256Ctx* ctx) { in avb_sha256_final()
H A Davb_sha512.c135 void avb_sha512_init(AvbSHA512Ctx* ctx) { in avb_sha512_init()
169 static void SHA512_transform(AvbSHA512Ctx* ctx, in SHA512_transform()
335 void avb_sha512_update(AvbSHA512Ctx* ctx, const uint8_t* data, size_t len) { in avb_sha512_update()
375 uint8_t* avb_sha512_final(AvbSHA512Ctx* ctx) { in avb_sha512_final()
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dxhci-omap.c56 struct omap_xhci *ctx = &omap; in xhci_hcd_init() local
89 struct omap_xhci *ctx = &omap; in xhci_hcd_stop() local
H A Dxhci-fsl.c29 struct fsl_xhci ctx; member
178 struct fsl_xhci *ctx = &fsl_xhci; in xhci_hcd_init() local
211 struct fsl_xhci *ctx = &fsl_xhci; in xhci_hcd_stop() local
H A Dxhci-mem.c123 static void xhci_free_container_ctx(struct xhci_container_ctx *ctx) in xhci_free_container_ctx()
419 struct xhci_container_ctx *ctx; in xhci_alloc_container_ctx() local
613 *xhci_get_input_control_ctx(struct xhci_container_ctx *ctx) in xhci_get_input_control_ctx()
627 struct xhci_container_ctx *ctx) in xhci_get_slot_ctx()
645 struct xhci_container_ctx *ctx, in xhci_get_ep_ctx()
H A Dxhci-rcar.c44 static int xhci_rcar_download_fw(struct rcar_xhci *ctx, const u32 *fw_data, in xhci_rcar_download_fw()
89 struct rcar_xhci *ctx = dev_get_priv(dev); in xhci_rcar_probe() local
H A Dxhci-exynos5.c208 struct exynos_xhci *ctx = dev_get_priv(dev); in xhci_usb_probe() local
233 struct exynos_xhci *ctx = dev_get_priv(dev); in xhci_usb_remove() local
H A Dehci-exynos.c217 struct exynos_ehci *ctx = dev_get_priv(dev); in ehci_usb_probe() local
236 struct exynos_ehci *ctx = dev_get_priv(dev); in ehci_usb_remove() local
/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_v1.c31 sha_context *ctx; member
78 static int rockchip_crypto_sha_init(struct udevice *dev, sha_context *ctx) in rockchip_crypto_sha_init()
177 sha_context *ctx, u8 *output) in rockchip_crypto_sha_final()
211 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify()
269 static int rockchip_crypto_rsa_verify(struct udevice *dev, rsa_key *ctx, in rockchip_crypto_rsa_verify()
H A Dcrypto_ce.c275 static int rk_sha_init(struct udevice *dev, sha_context *ctx, in rk_sha_init()
381 static int rockchip_crypto_sha_init(struct udevice *dev, sha_context *ctx) in rockchip_crypto_sha_init()
391 static int rockchip_crypto_sha_final(struct udevice *dev, sha_context *ctx, u8 *output) in rockchip_crypto_sha_final()
422 static int rockchip_crypto_hmac_init(struct udevice *dev, sha_context *ctx, u8 *key, u32 key_len) in rockchip_crypto_hmac_init()
432 static int rockchip_crypto_hmac_final(struct udevice *dev, sha_context *ctx, u8 *output) in rockchip_crypto_hmac_final()
708 u32 ce_algo, u32 ce_mode, cipher_context *ctx) in rk_set_symm_td_buf_key()
751 static int rk_crypto_cipher(struct udevice *dev, cipher_context *ctx, in rk_crypto_cipher()
894 static int rockchip_crypto_cipher(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_cipher()
900 static int rockchip_crypto_mac(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_mac()
906 static int rockchip_crypto_ae(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_ae()
[all …]
H A Dcrypto_v2.c359 static void hw_hash_clean_ctx(struct rk_hash_ctx *ctx) in hw_hash_clean_ctx()
516 int rk_hash_update(void *ctx, const u8 *data, u32 data_len) in rk_hash_update()
539 int rk_hash_final(void *ctx, u8 *digest, size_t len) in rk_hash_final()
598 static int rockchip_crypto_sha_init(struct udevice *dev, sha_context *ctx) in rockchip_crypto_sha_init()
657 sha_context *ctx, u8 *output) in rockchip_crypto_sha_final()
705 sha_context *ctx, u8 *key, u32 key_len) in rockchip_crypto_hmac_init()
740 sha_context *ctx, u8 *output) in rockchip_crypto_hmac_final()
1293 int rockchip_crypto_cipher(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_cipher()
1353 int rockchip_crypto_mac(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_mac()
1400 int rockchip_crypto_ae(struct udevice *dev, cipher_context *ctx, in rockchip_crypto_ae()
[all …]
/rk3399_rockchip-uboot/drivers/crypto/fsl/
H A Dfsl_hash.c88 struct sha_ctx *ctx = hash_ctx; in caam_hash_update() local
132 struct sha_ctx *ctx = hash_ctx; in caam_hash_finish() local
203 int hw_sha_update(struct hash_algo *algo, void *ctx, const void *buf, in hw_sha_update()
209 int hw_sha_finish(struct hash_algo *algo, void *ctx, void *dest_buf, in hw_sha_finish()
/rk3399_rockchip-uboot/lib/rsa/
H A Drsa-checksum.c26 void *ctx; in rsa_hash_calculate() local
63 sha_context ctx; in hw_rsa_hash_calculate() local
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/
H A Dsuspend.c12 void cpu_suspend_save(struct pm_ctx *ctx, unsigned long sp) in cpu_suspend_save()
/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Dsha256_ce_glue.c14 void sha256_process(sha256_context *ctx, const unsigned char *data, in sha256_process()
H A Dsha1_ce_glue.c14 void sha1_process(sha1_context *ctx, const unsigned char *data, in sha1_process()
/rk3399_rockchip-uboot/common/spl/
H A Dspl_boot_image.c153 sha1_context ctx; in spl_hash_android() local
205 sha_context ctx; in spl_hash_android() local

12