45 unsigned int multiplicand_size,
47 unsigned int multiplier_size,
49 unsigned int result_size = ( multiplicand_size + multiplier_size );
51 *multiplicand = ( (
const void * ) multiplicand0 );
53 *
multiplier = ( (
const void * ) multiplier0 );
55 *
result = ( (
void * ) result0 );
69 for ( i = 0 ; i < multiplicand_size ; i++ ) {
70 multiplicand_element = multiplicand->element[i];
71 for ( j = 0 ; j < multiplier_size ; j++ ) {
73 result_elements = &
result->element[ i + j ];
83 "addl %%eax, (%6,%2,4)\n\t" 84 "adcl %%edx, 4(%6,%2,4)\n\t" 86 "adcl $0, 8(%6,%2,4)\n\t" 90 :
"=&a" ( discard_a ),
94 :
"0" ( multiplicand_element ),
95 "g" ( multiplier_element ),
96 "r" ( result_elements ),
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
void bigint_multiply_raw(const uint32_t *multiplicand0, unsigned int multiplicand_size, const uint32_t *multiplier0, unsigned int multiplier_size, uint32_t *result0)
Multiply big integers.
uint8_t multiplier
Port multiplier number.
__asm__ __volatile__("call *%9" :"=a"(result), "=c"(discard_ecx), "=d"(discard_edx) :"d"(0), "a"(code), "b"(0), "c"(in_phys), "D"(0), "S"(out_phys), "m"(hypercall))
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
typedef bigint_t(X25519_SIZE) x25519_t
An X25519 unsigned big integer used in internal calculations.
void * memset(void *dest, int character, size_t len) __nonnull