Home
last modified time | relevance | path

Searched refs:decrypt_data_unit (Results 1 – 7 of 7) sorted by relevance

/external/rust/beto-rust/nearby/presence/xts_aes/tests/
Dtests.rs32 assert_eq!(dec.decrypt_data_unit(tweak.into(), &mut payload), Err(XtsError::DataTooShort)); in too_small_payload()
39 assert_eq!(dec.decrypt_data_unit(tweak.into(), &mut payload), Err(XtsError::DataTooShort)); in too_small_payload()
51 assert!(dec.decrypt_data_unit(tweak.into(), &mut payload).is_ok()); in block_size_payload()
58 assert!(dec.decrypt_data_unit(tweak.into(), &mut payload).is_ok()); in block_size_payload()
70 assert!(dec.decrypt_data_unit(tweak.into(), payload.as_mut_slice()).is_ok()); in max_xts_sized_payload()
77 assert!(dec.decrypt_data_unit(tweak.into(), payload.as_mut_slice()).is_ok()); in max_xts_sized_payload()
93 dec.decrypt_data_unit(tweak.into(), payload.as_mut_slice()), in too_large_payload()
106 dec.decrypt_data_unit(tweak.into(), payload.as_mut_slice()), in too_large_payload()
Dxts_nist_test_vectors.rs80 xts_dec.decrypt_data_unit(tc.tweak.clone(), &mut buf).unwrap(); in run_test_cases()
85 xts_dec.decrypt_data_unit(tc.tweak.clone(), &mut buf).unwrap(); in run_test_cases()
Dxts_roundtrip_tests.rs73 xts_dec.decrypt_data_unit(tweak, &mut ciphertext).unwrap(); in roundtrip_self()
Dwycheproof_test_vectors.rs74 xts_dec.decrypt_data_unit(tweak, &mut buf).unwrap(); in run_tests()
Dcompare_with_xts_mode_test.rs102 xts_dec.decrypt_data_unit(tweak, &mut ciphertext).unwrap(); in identical_to_xtsmode_crate()
/external/rust/beto-rust/nearby/presence/xts_aes/fuzz/src/bin/
Dxts_roundtrip.rs42 xts_dec.decrypt_data_unit(tweak, &mut buffer[..]).unwrap(); in test()
/external/rust/beto-rust/nearby/presence/xts_aes/src/
Dlib.rs188 pub fn decrypt_data_unit(&self, tweak: Tweak, data_unit: &mut [u8]) -> Result<(), XtsError> { in decrypt_data_unit() method