/** Return 1 if the bytes of `lhs` and `rhs` do not exactly match and 0 otherwise.
*/ static uint8_t
compare(Eurydice_slice lhs, Eurydice_slice rhs)
{
uint8_t r = 0U; for (size_t i = (size_t)0U; i < Eurydice_slice_len(lhs, uint8_t); i++) {
size_t i0 = i;
r = (uint32_t)r |
((uint32_t)Eurydice_slice_index(lhs, i0, uint8_t, uint8_t *) ^
(uint32_t)Eurydice_slice_index(rhs, i0, uint8_t, uint8_t *));
} return is_non_zero(r);
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPublicKey<SIZE>)#14}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_b6 with const generics - SIZE= 1568
*/
libcrux_ml_kem_types_MlKemPublicKey_1f
libcrux_ml_kem_types_from_b6_961(
uint8_t value[1568U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[1568U];
memcpy(copy_of_value, value, (size_t)1568U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPublicKey_1f lit;
memcpy(lit.value, copy_of_value, (size_t)1568U * sizeof(uint8_t)); return lit;
}
/** Create a new [`MlKemKeyPair`] from the secret and public key.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemKeyPair<PRIVATE_KEY_SIZE, PUBLIC_KEY_SIZE>}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_17 with const generics - PRIVATE_KEY_SIZE= 3168 - PUBLIC_KEY_SIZE= 1568
*/
libcrux_ml_kem_mlkem1024_MlKem1024KeyPair
libcrux_ml_kem_types_from_17_821(
libcrux_ml_kem_types_MlKemPrivateKey_95 sk,
libcrux_ml_kem_types_MlKemPublicKey_1f pk)
{ return (
CLITERAL(libcrux_ml_kem_mlkem1024_MlKem1024KeyPair){ .sk = sk, .pk = pk });
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPrivateKey<SIZE>)#8}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_05 with const generics - SIZE= 3168
*/
libcrux_ml_kem_types_MlKemPrivateKey_95
libcrux_ml_kem_types_from_05_891(
uint8_t value[3168U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[3168U];
memcpy(copy_of_value, value, (size_t)3168U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPrivateKey_95 lit;
memcpy(lit.value, copy_of_value, (size_t)3168U * sizeof(uint8_t)); return lit;
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#2}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_01 with const generics - SIZE= 1568
*/
libcrux_ml_kem_mlkem1024_MlKem1024Ciphertext
libcrux_ml_kem_types_from_01_331(
uint8_t value[1568U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[1568U];
memcpy(copy_of_value, value, (size_t)1568U * sizeof(uint8_t));
libcrux_ml_kem_mlkem1024_MlKem1024Ciphertext lit;
memcpy(lit.value, copy_of_value, (size_t)1568U * sizeof(uint8_t)); return lit;
}
/** A reference to the raw byte slice.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemPublicKey<SIZE>#18}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_slice_cb with const generics - SIZE= 1568
*/
uint8_t *
libcrux_ml_kem_types_as_slice_cb_3d1(
libcrux_ml_kem_types_MlKemPublicKey_1f *self)
{ return self->value;
}
/** This function found in impl {(core::convert::AsRef<@Slice<u8>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#1}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_ref_00 with const generics - SIZE= 1568
*/
Eurydice_slice
libcrux_ml_kem_types_as_ref_00_d81(
libcrux_ml_kem_mlkem1024_MlKem1024Ciphertext *self)
{ return Eurydice_array_to_slice((size_t)1568U, self->value, uint8_t);
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 1600
*/ void
libcrux_ml_kem_utils_into_padded_array_6d4(Eurydice_slice slice,
uint8_t ret[1600U])
{
uint8_t out[1600U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)1600U * sizeof(uint8_t));
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPublicKey<SIZE>)#14}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_b6 with const generics - SIZE= 1184
*/
libcrux_ml_kem_types_MlKemPublicKey_15
libcrux_ml_kem_types_from_b6_960(
uint8_t value[1184U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[1184U];
memcpy(copy_of_value, value, (size_t)1184U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPublicKey_15 lit;
memcpy(lit.value, copy_of_value, (size_t)1184U * sizeof(uint8_t)); return lit;
}
/** Create a new [`MlKemKeyPair`] from the secret and public key.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemKeyPair<PRIVATE_KEY_SIZE, PUBLIC_KEY_SIZE>}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_17 with const generics - PRIVATE_KEY_SIZE= 2400 - PUBLIC_KEY_SIZE= 1184
*/
libcrux_ml_kem_mlkem768_MlKem768KeyPair
libcrux_ml_kem_types_from_17_820(
libcrux_ml_kem_types_MlKemPrivateKey_55 sk,
libcrux_ml_kem_types_MlKemPublicKey_15 pk)
{ return (
CLITERAL(libcrux_ml_kem_mlkem768_MlKem768KeyPair){ .sk = sk, .pk = pk });
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPrivateKey<SIZE>)#8}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_05 with const generics - SIZE= 2400
*/
libcrux_ml_kem_types_MlKemPrivateKey_55
libcrux_ml_kem_types_from_05_890(
uint8_t value[2400U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[2400U];
memcpy(copy_of_value, value, (size_t)2400U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPrivateKey_55 lit;
memcpy(lit.value, copy_of_value, (size_t)2400U * sizeof(uint8_t)); return lit;
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#2}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_01 with const generics - SIZE= 1088
*/
libcrux_ml_kem_mlkem768_MlKem768Ciphertext
libcrux_ml_kem_types_from_01_330(
uint8_t value[1088U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[1088U];
memcpy(copy_of_value, value, (size_t)1088U * sizeof(uint8_t));
libcrux_ml_kem_mlkem768_MlKem768Ciphertext lit;
memcpy(lit.value, copy_of_value, (size_t)1088U * sizeof(uint8_t)); return lit;
}
/** A reference to the raw byte slice.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemPublicKey<SIZE>#18}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_slice_cb with const generics - SIZE= 1184
*/
uint8_t *
libcrux_ml_kem_types_as_slice_cb_3d0(
libcrux_ml_kem_types_MlKemPublicKey_15 *self)
{ return self->value;
}
/** This function found in impl {(core::convert::AsRef<@Slice<u8>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#1}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_ref_00 with const generics - SIZE= 1088
*/
Eurydice_slice
libcrux_ml_kem_types_as_ref_00_d80(
libcrux_ml_kem_mlkem768_MlKem768Ciphertext *self)
{ return Eurydice_array_to_slice((size_t)1088U, self->value, uint8_t);
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 1120
*/ void
libcrux_ml_kem_utils_into_padded_array_6d3(Eurydice_slice slice,
uint8_t ret[1120U])
{
uint8_t out[1120U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)1120U * sizeof(uint8_t));
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPublicKey<SIZE>)#14}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_b6 with const generics - SIZE= 800
*/
libcrux_ml_kem_types_MlKemPublicKey_be
libcrux_ml_kem_types_from_b6_96(
uint8_t value[800U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[800U];
memcpy(copy_of_value, value, (size_t)800U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPublicKey_be lit;
memcpy(lit.value, copy_of_value, (size_t)800U * sizeof(uint8_t)); return lit;
}
/** Create a new [`MlKemKeyPair`] from the secret and public key.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemKeyPair<PRIVATE_KEY_SIZE, PUBLIC_KEY_SIZE>}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_17 with const generics - PRIVATE_KEY_SIZE= 1632 - PUBLIC_KEY_SIZE= 800
*/
libcrux_ml_kem_types_MlKemKeyPair_cb
libcrux_ml_kem_types_from_17_82(
libcrux_ml_kem_types_MlKemPrivateKey_5e sk,
libcrux_ml_kem_types_MlKemPublicKey_be pk)
{ return (CLITERAL(libcrux_ml_kem_types_MlKemKeyPair_cb){ .sk = sk, .pk = pk });
}
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemPrivateKey<SIZE>)#8}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_05 with const generics - SIZE= 1632
*/
libcrux_ml_kem_types_MlKemPrivateKey_5e
libcrux_ml_kem_types_from_05_89(
uint8_t value[1632U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[1632U];
memcpy(copy_of_value, value, (size_t)1632U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemPrivateKey_5e lit;
memcpy(lit.value, copy_of_value, (size_t)1632U * sizeof(uint8_t)); return lit;
}
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types uint8_t[32size_t], core_array_TryFromSliceError
/** This function found in impl {(core::convert::From<@Array<u8, SIZE>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#2}
*/ /** A monomorphic instance of libcrux_ml_kem.types.from_01 with const generics - SIZE= 768
*/
libcrux_ml_kem_types_MlKemCiphertext_e8
libcrux_ml_kem_types_from_01_33(
uint8_t value[768U])
{ /* Passing arrays by value in Rust generates a copy in C */
uint8_t copy_of_value[768U];
memcpy(copy_of_value, value, (size_t)768U * sizeof(uint8_t));
libcrux_ml_kem_types_MlKemCiphertext_e8 lit;
memcpy(lit.value, copy_of_value, (size_t)768U * sizeof(uint8_t)); return lit;
}
/** A reference to the raw byte slice.
*/ /** This function found in impl {libcrux_ml_kem::types::MlKemPublicKey<SIZE>#18}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_slice_cb with const generics - SIZE= 800
*/
uint8_t *
libcrux_ml_kem_types_as_slice_cb_3d(
libcrux_ml_kem_types_MlKemPublicKey_be *self)
{ return self->value;
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 33
*/ void
libcrux_ml_kem_utils_into_padded_array_6d2(Eurydice_slice slice,
uint8_t ret[33U])
{
uint8_t out[33U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)33U * sizeof(uint8_t));
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 34
*/ void
libcrux_ml_kem_utils_into_padded_array_6d1(Eurydice_slice slice,
uint8_t ret[34U])
{
uint8_t out[34U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)34U * sizeof(uint8_t));
}
/** This function found in impl {(core::convert::AsRef<@Slice<u8>> for libcrux_ml_kem::types::MlKemCiphertext<SIZE>)#1}
*/ /** A monomorphic instance of libcrux_ml_kem.types.as_ref_00 with const generics - SIZE= 768
*/
Eurydice_slice
libcrux_ml_kem_types_as_ref_00_d8(
libcrux_ml_kem_types_MlKemCiphertext_e8 *self)
{ return Eurydice_array_to_slice((size_t)768U, self->value, uint8_t);
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 800
*/ void
libcrux_ml_kem_utils_into_padded_array_6d0(Eurydice_slice slice,
uint8_t ret[800U])
{
uint8_t out[800U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)800U * sizeof(uint8_t));
}
/** Pad the `slice` with `0`s at the end.
*/ /** A monomorphic instance of libcrux_ml_kem.utils.into_padded_array with const generics - LEN= 64
*/ void
libcrux_ml_kem_utils_into_padded_array_6d(Eurydice_slice slice,
uint8_t ret[64U])
{
uint8_t out[64U] = { 0U };
uint8_t *uu____0 = out;
Eurydice_slice_copy(
Eurydice_array_to_subslice2(uu____0, (size_t)0U,
Eurydice_slice_len(slice, uint8_t), uint8_t),
slice, uint8_t);
memcpy(ret, out, (size_t)64U * sizeof(uint8_t));
}
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types uint8_t[24size_t], core_array_TryFromSliceError
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types uint8_t[20size_t], core_array_TryFromSliceError
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types uint8_t[10size_t], core_array_TryFromSliceError
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types int16_t[16size_t], core_array_TryFromSliceError
/** This function found in impl {core::result::Result<T, E>}
*/ /** A monomorphic instance of core.result.unwrap_41 with types uint8_t[8size_t], core_array_TryFromSliceError
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.