Home
last modified time | relevance | path

Searched refs:pbytes (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_sign_hash.c42 unsigned long pbits, pbytes, i, shift_right; in ecc_sign_hash_ex() local
63 pbytes = (pbits+7) >> 3; in ecc_sign_hash_ex()
68 … if ((err = mp_read_unsigned_bin(e, (unsigned char *)in, pbytes)) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
72 for (i=0, ch=0; i<pbytes; i++) { in ecc_sign_hash_ex()
77 … if ((err = mp_read_unsigned_bin(e, (unsigned char *)buf, pbytes)) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
134 if (*outlen < 2*pbytes) { err = CRYPT_MEM; goto errnokey; } in ecc_sign_hash_ex()
135 zeromem(out, 2*pbytes); in ecc_sign_hash_ex()
137 if ((err = mp_to_unsigned_bin(r, out + (pbytes - i))) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
139 if ((err = mp_to_unsigned_bin(s, out + (2*pbytes - i))) != CRYPT_OK) { goto errnokey; } in ecc_sign_hash_ex()
140 *outlen = 2*pbytes; in ecc_sign_hash_ex()
A Decc_verify_hash.c40 unsigned long pbits, pbytes, i, shift_right; in ecc_verify_hash_ex() local
137 pbytes = (pbits+7) >> 3; in ecc_verify_hash_ex()
142 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)hash, pbytes)) != CRYPT_OK) … in ecc_verify_hash_ex()
146 for (i=0, ch=0; i<pbytes; i++) { in ecc_verify_hash_ex()
151 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)buf, pbytes)) != CRYPT_OK) … in ecc_verify_hash_ex()
A Decc_recover_key.c43 unsigned long pbits, pbytes, i, shift_right; in ecc_recover_key() local
157 pbytes = (pbits+7) >> 3; in ecc_recover_key()
162 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)hash, pbytes)) != CRYPT_OK) … in ecc_recover_key()
166 for (i=0, ch=0; i<pbytes; i++) { in ecc_recover_key()
171 …if ((err = mp_read_unsigned_bin(e, (unsigned char *)buf, pbytes)) != CRYPT_OK) … in ecc_recover_key()

Completed in 4 milliseconds