cmpa 0.1.2

Multiprecision arithmetic primitives commonly needed for asymmetric cryptography
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0
// Copyright 2023 SUSE LLC
// Author: Nicolai Stange <nstange@suse.de>

#![macro_use]

macro_rules! tst_mk_mp_backing_vec {
    ($mpt:ty, $len:expr) => {{
        extern crate alloc;
        let mut v = alloc::vec::Vec::<<$mpt>::BackingSliceElementType>::new();
        v.resize(<$mpt>::n_backing_elements_for_len($len), 0u8.into());
        v
    }};
}