Home
last modified time | relevance | path

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

12

/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c20 unsigned char pad; in padding_depad() local
31 pad = data[padded_length - 1]; in padding_depad()
33 if (pad > padded_length || pad == 0) return CRYPT_INVALID_ARG; in padding_depad()
35 unpadded_length = padded_length - pad; in padding_depad()
38 pad = 0x0; in padding_depad()
44 pad = 0x0; in padding_depad()
48 if (data[n] != pad) return CRYPT_INVALID_PACKET; in padding_depad()
57 pad = 0x1; in padding_depad()
59 if (data[n] != pad++) return CRYPT_INVALID_PACKET; in padding_depad()
A Dpadding_pad.c17 unsigned char pad, block_length, r, t; in s_padding_padded_length() local
58 pad = (t * block_length) - r; in s_padding_padded_length()
60 if ((pad == 0) && (padding != LTC_PAD_ZERO)) { in s_padding_padded_length()
61 pad = block_length; in s_padding_padded_length()
64 *length += pad; in s_padding_padded_length()
85 unsigned char diff, pad; in padding_pad() local
130 pad = 0x1; in padding_pad()
132 data[n] = pad++; in padding_pad()
/optee_os-3.20.0/core/include/drivers/
A Dversal_nvm.h73 uint8_t pad[53]; member
83 uint8_t pad[25]; member
93 uint8_t pad[89]; member
98 uint8_t pad[63]; member
104 uint8_t pad[89]; member
110 uint8_t pad[89]; member
117 uint8_t pad[48]; member
138 uint8_t pad[12]; member
152 uint8_t pad[54]; member
161 uint8_t pad[59]; member
[all …]
A Dversal_puf.h59 uint8_t pad[8]; member
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/misc/base64/
A Dbase64_encode.c26 pad = 1, enumerator
83 if (mode & pad) { in s_base64_encode_internal()
112 return s_base64_encode_internal(in, inlen, out, outlen, codes_base64, pad); in base64_encode()
129 int use_crlf = flags & BASE64_PEM_CRLF ? pad | crlf : pad | lf; in base64_encode_pem()
154 return s_base64_encode_internal(in, inlen, out, outlen, codes_base64url, pad); in base64url_strict_encode()
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/modes/cfb/
A Dcfb_encrypt.c34 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_encrypt()
40 …if ((err = cipher_descriptor[cfb->cipher]->ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK)… in cfb_encrypt()
45 cfb->pad[cfb->padlen] = (*ct = *pt ^ cfb->IV[cfb->padlen]); in cfb_encrypt()
A Dcfb_decrypt.c34 cfb->padlen < 0 || cfb->padlen > (int)sizeof(cfb->pad)) { in cfb_decrypt()
40 …if ((err = cipher_descriptor[cfb->cipher]->ecb_encrypt(cfb->pad, cfb->IV, &cfb->key)) != CRYPT_OK)… in cfb_decrypt()
45 cfb->pad[cfb->padlen] = *ct; in cfb_decrypt()
/optee_os-3.20.0/core/lib/libtomcrypt/src/mac/poly1305/
A Dpoly1305.c104 LOAD32L(st->pad[0], key + 16); in poly1305_init()
105 LOAD32L(st->pad[1], key + 20); in poly1305_init()
106 LOAD32L(st->pad[2], key + 24); in poly1305_init()
107 LOAD32L(st->pad[3], key + 28); in poly1305_init()
228 f = (ulong64)h0 + st->pad[0] ; h0 = (ulong32)f; in poly1305_done()
229 f = (ulong64)h1 + st->pad[1] + (f >> 32); h1 = (ulong32)f; in poly1305_done()
230 f = (ulong64)h2 + st->pad[2] + (f >> 32); h2 = (ulong32)f; in poly1305_done()
249 st->pad[0] = 0; in poly1305_done()
250 st->pad[1] = 0; in poly1305_done()
251 st->pad[2] = 0; in poly1305_done()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/lrw/
A Dlrw_process.c39 XMEMCPY(prod, lrw->pad, 16); in lrw_process()
55 …*(LTC_FAST_TYPE_PTR_CAST(lrw->pad + y)) ^= *(LTC_FAST_TYPE_PTR_CAST(&lrw->PC[x][lrw->IV[x]][y])) ^… in lrw_process()
59 lrw->pad[y] ^= lrw->PC[x][lrw->IV[x]][y] ^ lrw->PC[x][(lrw->IV[x]-1)&255][y]; in lrw_process()
64 gcm_gf_mult(lrw->tweak, lrw->IV, lrw->pad); in lrw_process()
A Dlrw_setiv.c59 XMEMCPY(lrw->pad, T, 16); in lrw_setiv()
61 gcm_gf_mult(lrw->tweak, IV, lrw->pad); in lrw_setiv()
A Dlrw_test.c83 if (compare_testvector(tests[x].expected_tweak, 16, lrw.pad, 16, "LRW Tweak", x)) { in lrw_test()
/optee_os-3.20.0/core/lib/libtomcrypt/src/modes/ctr/
A Dctr_encrypt.c49 …if ((err = cipher_descriptor[ctr->cipher]->ecb_encrypt(ctr->ctr, ctr->pad, &ctr->key)) != CRYPT_OK… in s_ctr_encrypt()
58 … *(LTC_FAST_TYPE_PTR_CAST((unsigned char *)ctr->pad + x)); in s_ctr_encrypt()
67 *ct++ = *pt++ ^ ctr->pad[ctr->padlen++]; in s_ctr_encrypt()
101 (ctr->padlen < 0) || (ctr->padlen > (int)sizeof(ctr->pad))) { in ctr_encrypt()
A Dctr_setiv.c40 return cipher_descriptor[ctr->cipher]->ecb_encrypt(IV, ctr->pad, &ctr->key); in ctr_setiv()
A Dctr_start.c86 return cipher_descriptor[ctr->cipher]->ecb_encrypt(ctr->ctr, ctr->pad, &ctr->key); in ctr_start()
/optee_os-3.20.0/core/arch/arm/include/sm/
A Dsm.h42 uint32_t pad; member
88 uint32_t pad; member
92 uint32_t pad; member
/optee_os-3.20.0/core/drivers/crypto/aspeed/
A Dhace_ast2600.c222 uint8_t pad[HASH_BLK_BUFSZ * 2] = { }; in ast2600_hace_final() local
231 memset(pad, 0, sizeof(pad)); in ast2600_hace_final()
232 pad[0] = 0x80; in ast2600_hace_final()
250 rc = ast2600_hace_update(ctx, pad, padn); in ast2600_hace_final()
266 rc = ast2600_hace_update(ctx, pad, padn); in ast2600_hace_final()
/optee_os-3.20.0/core/drivers/crypto/versal/
A Decc.c105 uint8_t pad[66] = { 0 }; in crypto_bignum_bn2bin_eswap() local
116 crypto_bignum_bn2bin(from, pad + bytes - len); in crypto_bignum_bn2bin_eswap()
118 tmp = pad[i]; in crypto_bignum_bn2bin_eswap()
119 pad[i] = pad[j]; in crypto_bignum_bn2bin_eswap()
120 pad[j] = tmp; in crypto_bignum_bn2bin_eswap()
122 memcpy(to, pad, bytes); in crypto_bignum_bn2bin_eswap()
/optee_os-3.20.0/core/arch/arm/include/kernel/
A Dthread_private_arch.h72 uint64_t pad; member
215 uint32_t pad[THREAD_RPC_NUM_ARGS]; member
A Dthread_arch.h118 uint32_t pad; member
235 uint64_t pad; member
/optee_os-3.20.0/core/include/
A Doptee_msg.h209 uint32_t pad; member
/optee_os-3.20.0/core/lib/libtomcrypt/src/hashes/
A Dsha3.c195 static LTC_INLINE int ss_done(hash_state *md, unsigned char *hash, ulong64 pad) in ss_done() argument
202 md->sha3.s[md->sha3.word_index] ^= (md->sha3.saved ^ (pad << (md->sha3.byte_index * 8))); in ss_done()
/optee_os-3.20.0/core/mm/
A Dvm.c58 size_t pad = 0; in select_va_in_range() local
66 pad = SMALL_PAGE_SIZE; in select_va_in_range()
68 pad = 0; in select_va_in_range()
78 ADD_OVERFLOW(begin_va, pad, &begin_va) || in select_va_in_range()
89 pad = SMALL_PAGE_SIZE; in select_va_in_range()
91 pad = 0; in select_va_in_range()
100 ADD_OVERFLOW(end_va, pad, &end_va) || in select_va_in_range()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_cipher.h269 pad[MAXBLOCKSIZE]; member
323 unsigned char pad[MAXBLOCKSIZE] LTC_ALIGN(16); member
343 pad[16]; member

Completed in 25 milliseconds

12