Home
last modified time | relevance | path

Searched refs:enc (Results 1 – 14 of 14) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Denc28j60.c66 static void enc_bset(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bset() argument
72 spi_xfer(enc->slave, 2 * 8, dout, NULL, in enc_bset()
76 static void enc_bclr(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bclr() argument
82 spi_xfer(enc->slave, 2 * 8, dout, NULL, in enc_bclr()
94 static void enc_set_bank(enc_dev_t *enc, const u16 reg) in enc_set_bank() argument
98 if (newbank == 0 || newbank == enc->bank) in enc_set_bank()
102 enc_bclr(enc, CTL_REG_ECON1, in enc_set_bank()
106 enc_bset(enc, CTL_REG_ECON1, ENC_ECON1_BSEL0); in enc_set_bank()
107 enc_bclr(enc, CTL_REG_ECON1, ENC_ECON1_BSEL1); in enc_set_bank()
110 enc_bclr(enc, CTL_REG_ECON1, ENC_ECON1_BSEL0); in enc_set_bank()
[all …]
/rk3399_rockchip-uboot/cmd/
H A Daes.c35 int enc; in do_aes() local
41 enc = 1; in do_aes()
43 enc = 0; in do_aes()
62 if (enc) in do_aes()
H A Dblob.c59 int enc, ret = 0; in do_blob() local
65 enc = 1; in do_blob()
67 enc = 0; in do_blob()
80 if (enc) in do_blob()
H A Dcrypto.c380 ulong *MBps, bool enc) in test_cipher_perf() argument
418 data_size, enc); in test_cipher_perf()
H A DKconfig1442 blob enc - encapsulating data as a cryptgraphic blob
1447 blob enc src dst len km
/rk3399_rockchip-uboot/include/
H A Dcrypto.h125 const u8 *in, u8 *out, u32 len, bool enc);
138 const u8 *in, u8 *out, u32 len, bool enc);
292 const u8 *in, u8 *out, u32 len, bool enc);
336 const u8 *in, u8 *out, u32 len, bool enc);
/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_v2.c902 u32 algo, u32 mode, bool enc) in hw_cipher_init() argument
951 if (!enc) in hw_cipher_init()
1165 const u8 *iv, u32 iv_len, u32 mode, bool enc) in hw_aes_init() argument
1196 CRYPTO_AES, mode, enc); in hw_aes_init()
1200 const u8 *iv, u32 iv_len, u32 mode, bool enc) in hw_sm4_init() argument
1223 CRYPTO_SM4, mode, enc); in hw_sm4_init()
1227 const u8 *iv, const u8 *in, u8 *out, u32 len, bool enc) in rk_crypto_des() argument
1247 CRYPTO_DES, mode, enc); in rk_crypto_des()
1261 const u8 *in, u8 *out, u32 len, bool enc) in rk_crypto_aes() argument
1271 ret = hw_aes_init(0, key, twk_key, key_len, iv, iv_len, mode, enc); in rk_crypto_aes()
[all …]
H A Dcrypto_ce.c752 const u8 *in, u8 *out, u32 len, bool enc, in rk_crypto_cipher() argument
777 hw_ctx->td->ctrl.is_dec = !enc; in rk_crypto_cipher()
895 const u8 *in, u8 *out, u32 len, bool enc) in rockchip_crypto_cipher() argument
897 return rk_crypto_cipher(dev, ctx, in, out, len, enc, NULL, 0, NULL); in rockchip_crypto_cipher()
915 const u8 *in, u8 *out, u32 len, bool enc) in rockchip_crypto_fw_cipher() argument
927 return rk_crypto_cipher(dev, &cipher_ctx, in, out, len, enc, NULL, 0, NULL); in rockchip_crypto_fw_cipher()
/rk3399_rockchip-uboot/env/
H A Dcommon.c141 static int env_aes_cbc_crypt(env_t *env, const int enc) in env_aes_cbc_crypt() argument
158 if (enc) in env_aes_cbc_crypt()
166 static inline int env_aes_cbc_crypt(env_t *env, const int enc) in env_aes_cbc_crypt() argument
/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c308 const u8 *in, u8 *out, u32 len, bool enc) in crypto_cipher() argument
318 return ops->cipher_crypt(dev, ctx, in, out, len, enc); in crypto_cipher()
351 const u8 *in, u8 *out, u32 len, bool enc) in crypto_fw_cipher() argument
377 return ops->cipher_fw_crypt(dev, ctx, in, out, len, enc); in crypto_fw_cipher()
/rk3399_rockchip-uboot/lib/lzma/
H A Dlzma.txt492 CLzmaEncHandle enc;
494 enc = LzmaEnc_Create(&g_Alloc);
495 if (enc == 0)
507 res = LzmaEnc_SetProps(enc, &props);
516 res = LzmaEnc_WriteProperties(enc, header, &headerSize);
523 res = LzmaEnc_Encode(enc, &outStream.funcTable, &inStream.funcTable,
527 LzmaEnc_Destroy(enc, &g_Alloc, &g_Alloc);
/rk3399_rockchip-uboot/tools/env/
H A Dfw_env.c114 static int env_aes_cbc_crypt(char *data, const int enc, uint8_t *key);
980 static int env_aes_cbc_crypt(char *payload, const int enc, uint8_t *key) in env_aes_cbc_crypt() argument
993 if (enc) in env_aes_cbc_crypt()
/rk3399_rockchip-uboot/tools/
H A Dmxsimage.c204 static int sb_aes_init(struct sb_image_ctx *ictx, uint8_t *iv, int enc) in sb_aes_init() argument
214 ret = EVP_CipherInit(ctx, EVP_aes_128_cbc(), ictx->image_key, iv, enc); in sb_aes_init()
253 static int sb_aes_reinit(struct sb_image_ctx *ictx, int enc) in sb_aes_reinit() argument
263 return sb_aes_init(ictx, iv, enc); in sb_aes_reinit()
/rk3399_rockchip-uboot/drivers/video/
H A Dcfb_console.c1126 int cnt, int enc) in draw_bitmap() argument
1137 off = enc ? &enc_off : &i; in draw_bitmap()