Home
last modified time | relevance | path

Searched refs:f9 (Results 1 – 12 of 12) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/mac/f9/
A Df9_process.c29 LTC_ARGCHK(f9 != NULL); in f9_process()
37 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_process()
38 (f9->buflen > f9->blocksize) || (f9->buflen < 0)) { in f9_process()
43 if (f9->buflen == 0) { in f9_process()
48 cipher_descriptor[f9->cipher]->ecb_encrypt(f9->IV, f9->IV, &f9->key); in f9_process()
50 *(LTC_FAST_TYPE_PTR_CAST(&(f9->ACC[x]))) ^= *(LTC_FAST_TYPE_PTR_CAST(&(f9->IV[x]))); in f9_process()
59 if (f9->buflen == f9->blocksize) { in f9_process()
60 cipher_descriptor[f9->cipher]->ecb_encrypt(f9->IV, f9->IV, &f9->key); in f9_process()
62 f9->ACC[x] ^= f9->IV[x]; in f9_process()
64 f9->buflen = 0; in f9_process()
[all …]
A Df9_done.c28 LTC_ARGCHK(f9 != NULL); in f9_done()
36 if ((f9->blocksize > cipher_descriptor[f9->cipher]->block_length) || (f9->blocksize < 0) || in f9_done()
37 (f9->buflen > f9->blocksize) || (f9->buflen < 0)) { in f9_done()
41 if (f9->buflen != 0) { in f9_done()
43 cipher_descriptor[f9->cipher]->ecb_encrypt(f9->IV, f9->IV, &f9->key); in f9_done()
44 f9->buflen = 0; in f9_done()
46 f9->ACC[x] ^= f9->IV[x]; in f9_done()
51 … if ((err = cipher_descriptor[f9->cipher]->setup(f9->akey, f9->keylen, 0, &f9->key)) != CRYPT_OK) { in f9_done()
56 cipher_descriptor[f9->cipher]->ecb_encrypt(f9->ACC, f9->ACC, &f9->key); in f9_done()
57 cipher_descriptor[f9->cipher]->done(&f9->key); in f9_done()
[all …]
A Df9_init.c26 int f9_init(f9_state *f9, int cipher, const unsigned char *key, unsigned long keylen) in f9_init() argument
30 LTC_ARGCHK(f9 != NULL); in f9_init()
44 if ((err = cipher_descriptor[cipher]->setup(key, keylen, 0, &f9->key)) != CRYPT_OK) { in f9_init()
50 f9->akey[x] = key[x] ^ 0xAA; in f9_init()
54 zeromem(f9->IV, cipher_descriptor[cipher]->block_length); in f9_init()
55 zeromem(f9->ACC, cipher_descriptor[cipher]->block_length); in f9_init()
56 f9->blocksize = cipher_descriptor[cipher]->block_length; in f9_init()
57 f9->cipher = cipher; in f9_init()
58 f9->buflen = 0; in f9_init()
59 f9->keylen = keylen; in f9_init()
A Df9_memory.c34 f9_state *f9; in f9_memory() local
47 f9 = XCALLOC(1, sizeof(*f9)); in f9_memory()
48 if (f9 == NULL) { in f9_memory()
52 if ((err = f9_init(f9, cipher, key, keylen)) != CRYPT_OK) { in f9_memory()
56 if ((err = f9_process(f9, in, inlen)) != CRYPT_OK) { in f9_memory()
60 err = f9_done(f9, out, outlen); in f9_memory()
62 XFREE(f9); in f9_memory()
A Df9_memory_multi.c38 f9_state *f9; in f9_memory_multi() local
49 f9 = XMALLOC(sizeof(f9_state)); in f9_memory_multi()
50 if (f9 == NULL) { in f9_memory_multi()
55 if ((err = f9_init(f9, cipher, key, keylen)) != CRYPT_OK) { in f9_memory_multi()
63 if ((err = f9_process(f9, curptr, curlen)) != CRYPT_OK) { in f9_memory_multi()
73 if ((err = f9_done(f9, out, outlen)) != CRYPT_OK) { in f9_memory_multi()
78 zeromem(f9, sizeof(f9_state)); in f9_memory_multi()
80 XFREE(f9); in f9_memory_multi()
A Df9_file.c45 f9_state f9; in f9_file()
58 if ((err = f9_init(&f9, cipher, key, keylen)) != CRYPT_OK) { in f9_file()
70 if ((err = f9_process(&f9, buf, (unsigned long)x)) != CRYPT_OK) { in f9_file()
81 err = f9_done(&f9, out, outlen); in f9_file()
87 zeromem(&f9, sizeof(f9_state)); in f9_file()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_mac.h221 int f9_init(f9_state *f9, int cipher, const unsigned char *key, unsigned long keylen);
222 int f9_process(f9_state *f9, const unsigned char *in, unsigned long inlen);
223 int f9_done(f9_state *f9, unsigned char *out, unsigned long *outlen);
/optee_os/out/arm/core/
A Dtee.dmp15939 e10a464: 910203f9 add x25, sp, #0x80
16278 e10a800: 910203f9 add x25, sp, #0x80
16516 e10aa64: 910143f9 add x25, sp, #0x50
17031 e10af98: 910243f9 add x25, sp, #0x90
17368 e10b304: 910143f9 add x25, sp, #0x50
24494 e10fab8: 910143f9 add x25, sp, #0x50
24532 e10fb20: 910143f9 add x25, sp, #0x50
26526 e110f00: 910303f9 add x25, sp, #0xc0
28663 e1125e8: 910183f9 add x25, sp, #0x60
38112 e118640: 910223f9 add x25, sp, #0x88
[all …]
/optee_os/out/arm/ldelf/
A Dldelf.dmp858 4f0: 940007f9 bl 24d4 <ta_elf_load_main>
4853 2f80: 910203f9 add x25, sp, #0x80
6850 44dc: 910223f9 add x25, sp, #0x88
/optee_os/out/arm/ta/trusted_keys/
A Df04a0fe7-1f5d-4b9b-abf7-619b85b4ce8c.dmp6915 2a6c: 44f9 add r9, pc
7491 2e02: 44f9 add r9, pc
7796 2ffe: 44f9 add r9, pc
18647 7a84: f040 80f9 bne.w 7c7a <mbedtls_mpi_exp_mod+0x41c>
20777 8a2c: 60f9 str r1, [r7, #12]
21535 8fc4: 44f9 add r9, pc
/optee_os/out/arm/ta/avb/
A D023f8f1a-292a-432b-8fc4-de8471358067.dmp13246 55fc: f040 80f9 bne.w 57f2 <mbedtls_mpi_exp_mod+0x41c>
15376 65a4: 60f9 str r1, [r7, #12]
16134 6b3c: 44f9 add r9, pc
19394 8180: 44f9 add r9, pc
19970 8516: 44f9 add r9, pc
20275 8712: 44f9 add r9, pc
/optee_os/out/arm/ta/pkcs11/
A Dfd02c9da-306c-48c7-a49c-bbd827ae86ee.dmp5936 2024: 44f9 add r9, pc
7607 2cd4: 44f9 add r9, pc
19676 8020: 68f9 ldr r1, [r7, #12]
28809 beb8: 44f9 add r9, pc
29385 c24e: 44f9 add r9, pc
29690 c44a: 44f9 add r9, pc
40541 10ed0: f040 80f9 bne.w 110c6 <mbedtls_mpi_exp_mod+0x41c>
42671 11e78: 60f9 str r1, [r7, #12]
42793 11f4c: 000064f9 .word 0x000064f9
43429 12410: 44f9 add r9, pc

Completed in 317 milliseconds