42 code results in briansmith/ring or view all results on GitHub
STYLE.md
Markdown
Showing the top three matches
Last indexed Jan 23, 2019
| 91 | `ring::bssl::Result` should be converted to a `std::result::Result` using the |
| 92 | pattern in the following example (note the placement of `unsafe`): |
| 93 | |
| 94 | [transparent]: https://doc.rust-lang.org/nightly/reference/type-layout.html#the-transparent-representation |
| … | |
| 97 | extern { |
| 98 | unsafe_fn1() -> bssl::Result; |
| 99 | /* ... */ |
| 100 | } |
| 101 | |
| 102 | fn foo() -> Result<(), ()> { |
| 103 | Result::from(unsafe { |
src/ec/suite_b/ops/elem.rs
Rust
Showing the top two matches
Last indexed Dec 6, 2018
src/aead/block.rs
Rust
Showing the top three matches
Last indexed Jan 29, 2019
src/aead/gcm.rs
Rust
Showing the top two matches
Last indexed Jan 29, 2019
src/polyfill/convert.rs
Rust
Showing the top two matches
Last indexed Dec 14, 2018
src/cpu.rs
Rust
Showing the top two matches
Last indexed Feb 2, 2019
src/aead/chacha.rs
Rust
Showing the top two matches
Last indexed Feb 2, 2019
src/aead/aes.rs
Rust
Showing the top two matches
Last indexed Feb 2, 2019
src/ec/suite_b/ops.rs
Rust
Showing the top two matches
Last indexed Feb 2, 2019
src/limb.rs
Rust
Showing the top two matches
Last indexed Dec 13, 2018
| 64 | fn LIMBS_equal(a: *const Limb, b: *const Limb, num_limbs: c::size_t) -> LimbMask; |
| 65 | } |
| 66 | |
| 67 | assert_eq!(a.len(), b.len()); |
| 68 | unsafe { LIMBS_equal(a.as_ptr(), b.as_ptr(), a.len()) } |
| … | |
| 72 | pub fn limbs_less_than_limbs_consttime(a: &[Limb], b: &[Limb]) -> LimbMask { |
| 73 | assert_eq!(a.len(), b.len()); |
| 74 | unsafe { LIMBS_less_than(a.as_ptr(), b.as_ptr(), b.len()) } |