(input: BoxedUint, padded_len: usize)
| 60 | /// [draft-irtf-cfrg-rsa-guidance-10 §7.2]: https://www.ietf.org/archive/id/draft-irtf-cfrg-rsa-guidance-10.html#section-7.2 |
| 61 | #[inline] |
| 62 | pub(crate) fn i2osp_zeroizing(input: BoxedUint, padded_len: usize) -> Zeroizing<Vec<u8>> { |
| 63 | let input = Zeroizing::new(input); |
| 64 | let bytes = Zeroizing::new(input.to_be_bytes()); |
| 65 | let mut out = Zeroizing::new(vec![0u8; padded_len]); |
| 66 | be_pad_into(&bytes, &mut out); |
| 67 | out |
| 68 | } |
| 69 | |
| 70 | /// Octet-String-to-Integer Primitive (OS2IP) from [RFC8017 §4.2]. |
| 71 | /// |