5 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_ECC_P256_COMMON_H_
6 #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_ECC_P256_COMMON_H_
11 #include "sw/device/lib/crypto/drivers/otbn.h"
12 #include "sw/device/lib/crypto/impl/status.h"
26 kP256CoordBytes = kP256CoordBits / 8,
30 kP256CoordWords = kP256CoordBytes /
sizeof(uint32_t),
34 kP256ScalarBits = 256,
38 kP256ScalarBytes = kP256ScalarBits / 8,
42 kP256ScalarWords = kP256ScalarBytes /
sizeof(uint32_t),
48 kP256MaskedScalarShareBits = kP256ScalarBits + 64,
52 kP256MaskedScalarShareBytes = kP256MaskedScalarShareBits / 8,
56 kP256MaskedScalarShareWords = kP256MaskedScalarShareBytes /
sizeof(uint32_t),
71 uint32_t
share0[kP256MaskedScalarShareWords];
75 uint32_t
share1[kP256MaskedScalarShareWords];
85 uint32_t
x[kP256CoordWords];
89 uint32_t
y[kP256CoordWords];
106 const otbn_addr_t share0_addr,
107 const otbn_addr_t share1_addr);
111 #endif // __cplusplus
113 #endif // OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_ECC_P256_COMMON_H_