Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/modes/ecb/
A Decb_decrypt.c27 int ecb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_ECB *ecb) in ecb_decrypt() argument
32 LTC_ARGCHK(ecb != NULL); in ecb_decrypt()
33 if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) { in ecb_decrypt()
36 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_decrypt()
41 if (cipher_descriptor[ecb->cipher]->accel_ecb_decrypt != NULL) { in ecb_decrypt()
42 …return cipher_descriptor[ecb->cipher]->accel_ecb_decrypt(ct, pt, len / cipher_descriptor[ecb->ciph… in ecb_decrypt()
45 if ((err = cipher_descriptor[ecb->cipher]->ecb_decrypt(ct, pt, &ecb->key)) != CRYPT_OK) { in ecb_decrypt()
48 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt()
49 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt()
50 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_decrypt()
A Decb_encrypt.c27 int ecb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_ECB *ecb) in ecb_encrypt() argument
32 LTC_ARGCHK(ecb != NULL); in ecb_encrypt()
33 if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) { in ecb_encrypt()
36 if (len % cipher_descriptor[ecb->cipher]->block_length) { in ecb_encrypt()
41 if (cipher_descriptor[ecb->cipher]->accel_ecb_encrypt != NULL) { in ecb_encrypt()
42 …return cipher_descriptor[ecb->cipher]->accel_ecb_encrypt(pt, ct, len / cipher_descriptor[ecb->ciph… in ecb_encrypt()
45 if ((err = cipher_descriptor[ecb->cipher]->ecb_encrypt(pt, ct, &ecb->key)) != CRYPT_OK) { in ecb_encrypt()
48 pt += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt()
49 ct += cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt()
50 len -= cipher_descriptor[ecb->cipher]->block_length; in ecb_encrypt()
A Decb_done.c23 int ecb_done(symmetric_ECB *ecb) in ecb_done() argument
26 LTC_ARGCHK(ecb != NULL); in ecb_done()
28 if ((err = cipher_is_valid(ecb->cipher)) != CRYPT_OK) { in ecb_done()
31 cipher_descriptor[ecb->cipher]->done(&ecb->key); in ecb_done()
A Decb_start.c29 int ecb_start(int cipher, const unsigned char *key, int keylen, int num_rounds, symmetric_ECB *ecb) in ecb_start() argument
33 LTC_ARGCHK(ecb != NULL); in ecb_start()
38 ecb->cipher = cipher; in ecb_start()
39 ecb->blocklen = cipher_descriptor[cipher]->block_length; in ecb_start()
40 return cipher_descriptor[cipher]->setup(key, keylen, num_rounds, &ecb->key); in ecb_start()
/optee_os/core/crypto/
A Daes-cts.c35 struct crypto_cipher_ctx *ecb; member
59 res = crypto_cipher_init(c->ecb, mode, key1, key1_len, key2, key2_len, in cts_init()
194 return cbc_cts_update(c->cbc, c->ecb, c->mode, last_block, data, len, in cts_update()
203 crypto_cipher_final(c->ecb); in cts_final()
211 crypto_cipher_free_ctx(c->ecb); in cts_free_ctx()
222 crypto_cipher_copy_state(dst->ecb, src->ecb); in cts_copy_state()
242 res = crypto_aes_ecb_alloc_ctx(&c->ecb); in crypto_aes_cts_alloc_ctx()
254 crypto_cipher_free_ctx(c->ecb); in crypto_aes_cts_alloc_ctx()
A Dsub.mk37 srcs-$(CFG_CRYPTO_ECB) += sm4-ecb.c
/optee_os/out/arm/core/lib/libtomcrypt/src/modes/ecb/
A D.ecb_decrypt.o.cmd1ecb/ecb_decrypt.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarc…
A D.ecb_done.o.cmd1ecb/ecb_done.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64…
A D.ecb_encrypt.o.cmd1ecb/ecb_encrypt.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarc…
A D.ecb_start.o.cmd1ecb/ecb_start.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch6…
A D.ecb_decrypt.o.d1 out/arm/core/lib/libtomcrypt/src/modes/ecb/ecb_decrypt.o: \
2 core/lib/libtomcrypt/src/modes/ecb/ecb_decrypt.c \
A D.ecb_done.o.d1 out/arm/core/lib/libtomcrypt/src/modes/ecb/ecb_done.o: \
2 core/lib/libtomcrypt/src/modes/ecb/ecb_done.c \
A D.ecb_encrypt.o.d1 out/arm/core/lib/libtomcrypt/src/modes/ecb/ecb_encrypt.o: \
2 core/lib/libtomcrypt/src/modes/ecb/ecb_encrypt.c \
A D.ecb_start.o.d1 out/arm/core/lib/libtomcrypt/src/modes/ecb/ecb_start.o: \
2 core/lib/libtomcrypt/src/modes/ecb/ecb_start.c \
/optee_os/out/arm/core/crypto/
A D.sm4-ecb.o.cmd1ecb.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc…
A D.sm4-ecb.o.d1 out/arm/core/crypto/sm4-ecb.o: core/crypto/sm4-ecb.c \
/optee_os/out/arm/core/lib/libtomcrypt/
A D.ecb.o.cmd1ecb.o := /usr/bin/ccache /home/test/workspace/code/optee_3.16/build/../toolchains/aarch64/bin/aarc…
A D.ecb.o.d1 out/arm/core/lib/libtomcrypt/ecb.o: core/lib/libtomcrypt/ecb.c \
/optee_os/core/lib/libtomcrypt/src/modes/
A Dsub.mk3 subdirs-$(_CFG_CORE_LTC_ECB) += ecb
/optee_os/core/lib/libtomcrypt/
A Decb.c21 unsigned long len, symmetric_ECB *ecb);
A Dsub.mk117 srcs-$(_CFG_CORE_LTC_ECB) += ecb.c
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h865 int keylen, int num_rounds, symmetric_ECB *ecb);
866 int ecb_encrypt(const unsigned char *pt, unsigned char *ct, unsigned long len, symmetric_ECB *ecb);
867 int ecb_decrypt(const unsigned char *ct, unsigned char *pt, unsigned long len, symmetric_ECB *ecb);
868 int ecb_done(symmetric_ECB *ecb);
/optee_os/out/arm/core/
A D.tee.elf.cmd1 …m/core/crypto/sm3-hmac.o out/arm/core/crypto/sm4.o out/arm/core/crypto/sm4-ecb.o out/arm/core/cryp…
A Dtee.map31 out/arm/core/lib/libtomcrypt/libtomcrypt.a(ecb.o)
3268 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3269 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3270 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3271 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3272 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3273 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3274 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3275 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
3276 .group 0x0000000000000000 0xc out/arm/core/crypto/sm4-ecb.o
[all …]
A Dtee.dmp663 0000000000000000 l df *ABS* 0000000000000000 sm4-ecb.c
1439 0000000000000000 l df *ABS* 0000000000000000 ecb.c
28731 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:25
28739 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:25
28746 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:24
28748 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:25
28750 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:24
28752 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:25
28760 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:75
28766 /home/test/workspace/code/optee_3.16/optee_os/core/crypto/sm4-ecb.c:76
[all …]

Completed in 247 milliseconds