Home
last modified time | relevance | path

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

12

/optee_os/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c27 unsigned char pad; in padding_depad() local
38 pad = data[padded_length - 1]; in padding_depad()
40 if (pad > padded_length || pad == 0) return CRYPT_INVALID_ARG; in padding_depad()
42 unpadded_length = padded_length - pad; in padding_depad()
45 pad = 0x0; in padding_depad()
51 pad = 0x0; in padding_depad()
55 if (data[n] != pad) return CRYPT_INVALID_PACKET; in padding_depad()
A Dpadding_pad.c24 unsigned char pad, block_length, r, t; in _padding_padded_length() local
64 pad = (t * block_length) - r; in _padding_padded_length()
66 if ((pad == 0) && (padding != LTC_PAD_ZERO)) { in _padding_padded_length()
67 pad = block_length; in _padding_padded_length()
70 *length += pad; in _padding_padded_length()
/optee_os/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c111 LOAD32L(st->pad[0], key + 16); in poly1305_init()
112 LOAD32L(st->pad[1], key + 20); in poly1305_init()
113 LOAD32L(st->pad[2], key + 24); in poly1305_init()
114 LOAD32L(st->pad[3], key + 28); in poly1305_init()
235 f = (ulong64)h0 + st->pad[0] ; h0 = (ulong32)f; in poly1305_done()
236 f = (ulong64)h1 + st->pad[1] + (f >> 32); h1 = (ulong32)f; in poly1305_done()
237 f = (ulong64)h2 + st->pad[2] + (f >> 32); h2 = (ulong32)f; in poly1305_done()
256 st->pad[0] = 0; in poly1305_done()
257 st->pad[1] = 0; in poly1305_done()
258 st->pad[2] = 0; in poly1305_done()
[all …]
/optee_os/scripts/
A Dgen_ldelf_hex.py45 pad = 0
54 pad = segment['p_vaddr'] - (prev_segment['p_vaddr'] +
64 pad = 0
71 if pad > 31:
77 'segment {}, please check'.format(pad, n-1))
78 pad_size.append(pad)
/optee_os/core/drivers/crypto/caam/include/
A Dcaam_desc_ccb_defines.h38 #define NFIFO_PTYPE(pad) SHIFT_U32(NFIFO_PTYPE_##pad & 0x7, 16) argument
48 #define NFIFO_PAD(cla, options, data, pad, len) \ argument
50 NFIFO_PTYPE(pad) | NFIFO_PAD_LENGTH(len))
/optee_os/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_encrypt.c41 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_encrypt()
47 …if ((err = cipher_descriptor[cfb->cipher]->ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK)… in cfb_encrypt()
52 cfb->pad[cfb->padlen] = (*ct = *pt ^ cfb->IV[cfb->padlen]); in cfb_encrypt()
A Dcfb_decrypt.c41 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_decrypt()
47 …if ((err = cipher_descriptor[cfb->cipher]->ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK)… in cfb_decrypt()
52 cfb->pad[cfb->padlen] = *ct; in cfb_decrypt()
/optee_os/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_process.c46 XMEMCPY(prod, lrw->pad, 16); in lrw_process()
62 …*(LTC_FAST_TYPE_PTR_CAST(lrw->pad + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][lrw->IV[x]][y])) ^… in lrw_process()
66 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process()
71 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process()
A Dlrw_setiv.c66 XMEMCPY(lrw->pad, T, 16); in lrw_setiv()
68 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
A Dlrw_test.c90 if (compare_testvector(tests[x].expected_tweak, 16, lrw.pad, 16, "LRW Tweak", x)) { in lrw_test()
/optee_os/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_encrypt.c56 …if ((err = cipher_descriptor[ctr->cipher]->ecb_encrypt(ctr->ctr, ctr->pad, &ctr->key)) != CRYPT_OK… in _ctr_encrypt()
65 … *(LTC_FAST_TYPE_PTR_CAST((unsigned char *)ctr->pad + x)); in _ctr_encrypt()
74 *ct++ = *pt++ ^ ctr->pad[ctr->padlen++]; in _ctr_encrypt()
108 (ctr->padlen < 0) || (ctr->padlen > (int)sizeof(ctr->pad))) { in ctr_encrypt()
A Dctr_setiv.c47 return cipher_descriptor[ctr->cipher]->ecb_encrypt(IV, ctr->pad, &ctr->key); in ctr_setiv()
A Dctr_start.c93 return cipher_descriptor[ctr->cipher]->ecb_encrypt(ctr->ctr, ctr->pad, &ctr->key); in ctr_start()
/optee_os/core/arch/arm/include/sm/
A Dsm.h42 uint32_t pad; member
88 uint32_t pad; member
92 uint32_t pad; member
/optee_os/core/lib/libtomcrypt/src/misc/base64/
A Dbase64_encode.c33 const char *codes, int pad) in _base64_encode_internal() argument
64 if (pad) { in _base64_encode_internal()
/optee_os/core/arch/arm/kernel/
A Dthread_private.h29 uint64_t pad; member
221 uint32_t pad[THREAD_RPC_NUM_ARGS]; member
/optee_os/core/mm/
A Dvm.c59 size_t pad = 0; in select_va_in_range() local
67 pad = SMALL_PAGE_SIZE; in select_va_in_range()
69 pad = 0; in select_va_in_range()
79 ADD_OVERFLOW(begin_va, pad, &begin_va) || in select_va_in_range()
90 pad = SMALL_PAGE_SIZE; in select_va_in_range()
92 pad = 0; in select_va_in_range()
101 ADD_OVERFLOW(end_va, pad, &end_va) || in select_va_in_range()
A Dfobj.c44 uint64_t pad; member
/optee_os/core/include/
A Doptee_msg.h209 uint32_t pad; member
/optee_os/core/lib/libtomcrypt/src/hashes/
A Dsha3.c202 static LTC_INLINE int _done(hash_state *md, unsigned char *hash, ulong64 pad) in _done() argument
209 md->sha3.s[md->sha3.word_index] ^= (md->sha3.saved ^ (pad << (md->sha3.byte_index * 8))); in _done()
/optee_os/core/arch/arm/include/kernel/
A Dthread.h105 uint32_t pad; member
214 uint64_t pad; member
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h267 pad[MAXBLOCKSIZE]; member
321 pad[MAXBLOCKSIZE]; member
341 pad[16]; member
A Dtomcrypt_mac.h113 ulong32 pad[4]; member
/optee_os/lib/libmbedtls/mbedtls/library/
A Dssl_msg.c360 size_t pad ) in ssl_build_inner_plaintext() argument
371 if( remaining < pad ) in ssl_build_inner_plaintext()
373 memset( content + len, 0, pad ); in ssl_build_inner_plaintext()
374 len += pad; in ssl_build_inner_plaintext()
375 remaining -= pad; in ssl_build_inner_plaintext()
/optee_os/lib/libutils/isoc/
A Dbget_malloc.c473 uint64_t pad; member

Completed in 51 milliseconds

12