- Source:
Methods
(static) add(a, b) → {uint64|buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
-
- Type
- uint64
-
out
- Type
- buffer(uint64)
(static) add_mod(n, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) bn_to_bytes_be(b) → {buffer}
Parameters:
Name | Type | Description |
---|---|---|
b |
buffer(uint64) |
- Source:
Returns:
out - size len
- Type
- buffer
(static) bn_to_bytes_le(b) → {buffer}
Parameters:
Name | Type | Description |
---|---|---|
b |
buffer(uint64) |
- Source:
Returns:
out - size len
- Type
- buffer
(static) eq_mask(a, b) → {uint64}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
- Type
- uint64
(static) lt_mask(a, b) → {uint64}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
- Type
- uint64
(static) mod(n, a) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_exp_consttime(n, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_exp_consttime_precomp(ctx, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64 | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_exp_vartime(n, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_exp_vartime_precomp(ctx, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64 | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_inv_prime_vartime(n, a) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_inv_prime_vartime_precomp(ctx, a) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64 | |
a |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mod_precomp(ctx, a) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
ctx |
Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64 | |
a |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) mont_ctx_init(limbs) → {Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64}
Parameters:
Name | Type | Description |
---|---|---|
limbs |
buffer(uint64) |
- Source:
Returns:
- Type
- Hacl_Bignum_MontArithmetic_bn_mont_ctx_u64
(static) mul(a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) new_bn_from_bytes_be(bytes) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
bytes |
buffer | size len |
- Source:
Returns:
- Type
- buffer(uint64)
(static) new_bn_from_bytes_le(bytes) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
bytes |
buffer | size len |
- Source:
Returns:
- Type
- buffer(uint64)
(static) sqr(a) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)
(static) sub(a, b) → {uint64|buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
-
- Type
- uint64
-
out
- Type
- buffer(uint64)
(static) sub_mod(n, a, b) → {buffer(uint64)}
Parameters:
Name | Type | Description |
---|---|---|
n |
buffer(uint64) | |
a |
buffer(uint64) | |
b |
buffer(uint64) |
- Source:
Returns:
out
- Type
- buffer(uint64)