Home
last modified time | relevance | path

Searched refs:Sha256 (Results 1 – 25 of 2510) sorted by relevance

12345678910>>...101

/dports/security/tor/tor-0.4.6.8/src/rust/crypto/digests/
H A Dsha2.rs38 pub struct Sha256 { struct
55 impl Default for Sha256 { implementation
56 fn default() -> Sha256 { in default()
57 Sha256 { in default()
63 impl BlockInput for Sha256 { implementation
79 impl Input for Sha256 { implementation
91 impl FixedOutput for Sha256 { implementation
181 let _: Sha256 = Sha256::default(); in sha256_default()
187 let mut h: Sha256 = Sha256::new(); in sha256_digest()
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/cargo-util-0.1.1/src/
H A Dsha256.rs8 pub struct Sha256(Hasher); struct
10 impl Sha256 { impl
11 pub fn new() -> Sha256 { in new()
13 Sha256(hasher) in new()
16 pub fn update(&mut self, bytes: &[u8]) -> &mut Sha256 { in update() argument
21 pub fn update_file(&mut self, mut file: &File) -> io::Result<&mut Sha256> { in update_file() argument
32 pub fn update_path<P: AsRef<Path>>(&mut self, path: P) -> Result<&mut Sha256> { in update_path() argument
52 impl Default for Sha256 { implementation
/dports/lang/rust/rustc-1.58.1-src/src/tools/cargo/crates/cargo-util/src/
H A Dsha256.rs8 pub struct Sha256(Hasher); struct
10 impl Sha256 { impl
11 pub fn new() -> Sha256 { in new()
13 Sha256(hasher) in new()
16 pub fn update(&mut self, bytes: &[u8]) -> &mut Sha256 { in update() argument
21 pub fn update_file(&mut self, mut file: &File) -> io::Result<&mut Sha256> { in update_file() argument
32 pub fn update_path<P: AsRef<Path>>(&mut self, path: P) -> Result<&mut Sha256> { in update_path() argument
52 impl Default for Sha256 { implementation
/dports/devel/cargo-generate/cargo-generate-0.9.0/cargo-crates/cargo-util-0.1.1/src/
H A Dsha256.rs8 pub struct Sha256(Hasher); struct
10 impl Sha256 { implementation
11 pub fn new() -> Sha256 { in new()
13 Sha256(hasher) in new()
16 pub fn update(&mut self, bytes: &[u8]) -> &mut Sha256 { in update() argument
21 pub fn update_file(&mut self, mut file: &File) -> io::Result<&mut Sha256> { in update_file() argument
32 pub fn update_path<P: AsRef<Path>>(&mut self, path: P) -> Result<&mut Sha256> { in update_path() argument
52 impl Default for Sha256 { implementation
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Net.Security/src/System/Net/Security/
H A DSslConnectionInfo.OSX.cs149 case HashAlgorithmType.Sha256: in GetHashSize()
404 TlsMapping.Rsa(CipherAlgorithmType.None, HashAlgorithmType.Sha256)
409 TlsMapping.Rsa(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
414 TlsMapping.Rsa(CipherAlgorithmType.Aes256, HashAlgorithmType.Sha256)
429 TlsMapping.DhEphem(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
434 TlsMapping.DhEphem(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
529 TlsMapping.Rsa(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
609 TlsMapping.Rsa(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
649 TlsMapping.DhEphem(CipherAlgorithmType.None, HashAlgorithmType.Sha256)
659 TlsMapping.Rsa(CipherAlgorithmType.Aes128, HashAlgorithmType.Sha256)
[all …]
/dports/net-im/libsignal-client/libsignal-client-0.9.6/rust/crypto/src/
H A Dhash.rs10 use sha2::{Digest, Sha256, Sha512};
14 HmacSha256(Hmac<Sha256>),
25 Hmac::<Sha256>::new_varkey(key).expect("HMAC accepts any key length"), in new()
50 Sha256(Sha256), enumerator
58 "SHA-256" | "SHA256" | "Sha256" => Ok(Self::Sha256(Sha256::new())), in new()
67 Self::Sha256(sha256) => sha256.update(input), in update()
76 Self::Sha256(sha256) => sha256.finalize_reset().to_vec(), in finalize()
/dports/devel/aws-sdk-cpp/aws-sdk-cpp-1.9.129/aws-cpp-sdk-core/source/utils/crypto/
H A DSha256.cpp13 Sha256::Sha256() : in Sha256() function in Sha256
18 Sha256::~Sha256() in ~Sha256()
22 HashResult Sha256::Calculate(const Aws::String& str) in Calculate()
27 HashResult Sha256::Calculate(Aws::IStream& stream) in Calculate()
/dports/multimedia/gstreamer1-plugins-rust/gst-plugins-rs-d0466b3eee114207f851b37cae0015c0e718f021/cargo-crates/signature-1.3.1/tests/
H A Dsignature_derive.rs6 use sha2::Sha256;
20 struct DummySignature(GenericArray<u8, <Sha256 as Digest>::OutputSize>);
37 type Digest = Sha256;
44 impl DigestSigner<Sha256, DummySignature> for DummySigner {
45 fn try_sign_digest(&self, digest: Sha256) -> Result<DummySignature, Error> { in try_sign_digest()
57 impl DigestVerifier<Sha256, DummySignature> for DummyVerifier {
58 fn verify_digest(&self, digest: Sha256, signature: &DummySignature) -> Result<(), Error> { in verify_digest() argument
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/signature-1.4.0/tests/
H A Dsignature_derive.rs6 use sha2::Sha256;
20 struct DummySignature(GenericArray<u8, <Sha256 as Digest>::OutputSize>);
37 type Digest = Sha256;
44 impl DigestSigner<Sha256, DummySignature> for DummySigner {
45 fn try_sign_digest(&self, digest: Sha256) -> Result<DummySignature, Error> { in try_sign_digest()
57 impl DigestVerifier<Sha256, DummySignature> for DummyVerifier {
58 fn verify_digest(&self, digest: Sha256, signature: &DummySignature) -> Result<(), Error> { in verify_digest() argument
/dports/security/sequoia/sequoia-383133f6be990237044900a4df676488bf8dd71e/cargo-crates/signature-1.2.2/tests/
H A Dsignature_derive.rs6 use sha2::Sha256;
20 struct DummySignature(GenericArray<u8, <Sha256 as Digest>::OutputSize>);
37 type Digest = Sha256;
44 impl DigestSigner<Sha256, DummySignature> for DummySigner {
45 fn try_sign_digest(&self, digest: Sha256) -> Result<DummySignature, Error> { in try_sign_digest()
57 impl DigestVerifier<Sha256, DummySignature> for DummyVerifier {
58 fn verify_digest(&self, digest: Sha256, signature: &DummySignature) -> Result<(), Error> { in verify_digest() argument
/dports/devel/pijul/pijul-1.0.0.a55/cargo-crates/signature-1.3.1/tests/
H A Dsignature_derive.rs6 use sha2::Sha256;
20 struct DummySignature(GenericArray<u8, <Sha256 as Digest>::OutputSize>);
37 type Digest = Sha256;
44 impl DigestSigner<Sha256, DummySignature> for DummySigner {
45 fn try_sign_digest(&self, digest: Sha256) -> Result<DummySignature, Error> { in try_sign_digest()
57 impl DigestVerifier<Sha256, DummySignature> for DummyVerifier {
58 fn verify_digest(&self, digest: Sha256, signature: &DummySignature) -> Result<(), Error> { in verify_digest() argument
/dports/devel/dtool/dtool-0.11.0/cargo-crates/signature-1.3.1/tests/
H A Dsignature_derive.rs6 use sha2::Sha256;
20 struct DummySignature(GenericArray<u8, <Sha256 as Digest>::OutputSize>);
37 type Digest = Sha256;
44 impl DigestSigner<Sha256, DummySignature> for DummySigner {
45 fn try_sign_digest(&self, digest: Sha256) -> Result<DummySignature, Error> { in try_sign_digest()
57 impl DigestVerifier<Sha256, DummySignature> for DummyVerifier {
58 fn verify_digest(&self, digest: Sha256, signature: &DummySignature) -> Result<(), Error> { in verify_digest() argument
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/sha2-0.8.0/src/
H A Dsha256.rs74 pub struct Sha256 { struct
78 impl Default for Sha256 { argument
79 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
82 impl BlockInput for Sha256 { implementation
86 impl Input for Sha256 { implementation
92 impl FixedOutput for Sha256 { implementation
103 impl Reset for Sha256 { implementation
148 impl_opaque_debug!(Sha256);
151 impl_write!(Sha256);
/dports/editors/xi-core/xi-editor-0.3.0/rust/cargo-crates/sha2-0.8.0/src/
H A Dsha256.rs74 pub struct Sha256 { struct
78 impl Default for Sha256 { implementation
79 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
82 impl BlockInput for Sha256 { implementation
86 impl Input for Sha256 { implementation
92 impl FixedOutput for Sha256 { implementation
103 impl Reset for Sha256 { implementation
148 impl_opaque_debug!(Sha256);
151 impl_write!(Sha256);
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/rust/sha2/src/
H A Dsha256.rs74 pub struct Sha256 { struct
78 impl Default for Sha256 { argument
79 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
82 impl BlockInput for Sha256 { implementation
86 impl Input for Sha256 { implementation
92 impl FixedOutput for Sha256 { implementation
103 impl Reset for Sha256 { implementation
148 impl_opaque_debug!(Sha256);
151 impl_write!(Sha256);
/dports/security/fizz/fizz-2021.12.27.00/fizz/protocol/test/
H A DHandshakeContextTest.cpp23 HandshakeContextImpl<Sha256> context(kHkdfLabelPrefix.str()); in TEST_F()
29 HandshakeContextImpl<Sha256> context(kHkdfLabelPrefix.str()); in TEST_F()
36 HandshakeContextImpl<Sha256> context(kHkdfLabelPrefix.str()); in TEST_F()
38 std::vector<uint8_t> baseKey(Sha256::HashLen); in TEST_F()
43 HandshakeContextImpl<Sha256> context(kHkdfLabelPrefix.str()); in TEST_F()
45 std::array<uint8_t, Sha256::HashLen> key{4}; in TEST_F()
/dports/sysutils/zbackup/zbackup-1.4.4/
H A Dsha256.cc6 Sha256::Sha256() in Sha256() function in Sha256
11 void Sha256::add( void const * data, size_t size ) in add()
16 void Sha256::finish( void * result ) in finish()
21 string Sha256::finish() in finish()
/dports/security/fizz/fizz-2021.12.27.00/fizz/crypto/test/
H A DKeyDerivationTest.cpp38 auto deriver = KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()); in TEST_P()
51 KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()).hashLength()); in TEST()
53 KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()).hashLength()); in TEST()
54 auto deriver = KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()); in TEST()
60 KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()).hashLength()); in TEST()
62 Sha256::hash(blankBuf, MutableByteRange(computed.data(), computed.size())); in TEST()
64 StringPiece(KeyDerivationImpl::create<Sha256>(kHkdfLabelPrefix.str()) in TEST()
/dports/security/fizz/fizz-2021.12.27.00/fizz/experimental/crypto/test/
H A DMerkleTreeTest.cpp23 BatchSignatureMerkleTree<Sha256> mt(2); in TEST()
44 size_t hashLen = Sha256::HashLen; in TEST()
56 BatchSignatureMerkleTree<Sha256> mt(2); in TEST()
75 BatchSignatureMerkleTree<Sha256> mt(2); in TEST()
115 BatchSignatureMerkleTree<Sha256> mt(2); in TEST()
128 EXPECT_EQ(path.path->computeChainDataLength() / Sha256::HashLen, 2); in TEST()
132 path.path->data() + Sha256::HashLen, in TEST()
136 path.path->data() + Sha256::HashLen, in TEST()
137 path.path->data() + 2 * Sha256::HashLen, in TEST()
142 auto root2 = BatchSignatureMerkleTree<Sha256>::computeRootFromPath( in TEST()
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sha2-0.8.2/src/
H A Dsha256.rs88 pub struct Sha256 { struct
92 impl Default for Sha256 { implementation
93 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
96 impl BlockInput for Sha256 { implementation
100 impl Input for Sha256 { implementation
106 impl FixedOutput for Sha256 { implementation
117 impl Reset for Sha256 { implementation
162 impl_opaque_debug!(Sha256);
165 impl_write!(Sha256);
/dports/net-im/zkgroup/zkgroup-0.7.4/cargo-crates/sha2-0.8.2/src/
H A Dsha256.rs88 pub struct Sha256 { struct
92 impl Default for Sha256 { argument
93 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
96 impl BlockInput for Sha256 { implementation
100 impl Input for Sha256 { implementation
106 impl FixedOutput for Sha256 { implementation
117 impl Reset for Sha256 { implementation
162 impl_opaque_debug!(Sha256);
165 impl_write!(Sha256);
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/sha2-0.9.8/src/
H A Dsha256.rs52 pub struct Sha256 { struct
56 impl Default for Sha256 { argument
58 Sha256 { in default()
64 impl BlockInput for Sha256 { implementation
68 impl Update for Sha256 { implementation
74 impl FixedOutputDirty for Sha256 { implementation
86 impl Reset for Sha256 { implementation
136 opaque_debug::implement!(Sha256);
139 digest::impl_write!(Sha256);
/dports/lang/gleam/gleam-0.18.2/cargo-crates/sha2-0.9.8/src/
H A Dsha256.rs52 pub struct Sha256 { struct
56 impl Default for Sha256 { argument
58 Sha256 { in default()
64 impl BlockInput for Sha256 { implementation
68 impl Update for Sha256 { implementation
74 impl FixedOutputDirty for Sha256 { implementation
86 impl Reset for Sha256 { implementation
136 opaque_debug::implement!(Sha256);
139 digest::impl_write!(Sha256);
/dports/net-im/libsignal-client/libsignal-client-0.9.6/cargo-crates/sha2-0.9.3/src/
H A Dsha256.rs52 pub struct Sha256 { struct
56 impl Default for Sha256 { implementation
58 Sha256 { in default()
64 impl BlockInput for Sha256 { implementation
68 impl Update for Sha256 { implementation
74 impl FixedOutputDirty for Sha256 { implementation
86 impl Reset for Sha256 { implementation
136 opaque_debug::implement!(Sha256);
139 digest::impl_write!(Sha256);
/dports/net-im/fractal/fractal-4.4.0/vendor/sha2/src/
H A Dsha256.rs88 pub struct Sha256 { struct
92 impl Default for Sha256 { implementation
93 fn default() -> Self { Sha256 { engine: Engine256::new(&H256) } } in default()
96 impl BlockInput for Sha256 { implementation
100 impl Input for Sha256 { implementation
106 impl FixedOutput for Sha256 { implementation
117 impl Reset for Sha256 { implementation
162 impl_opaque_debug!(Sha256);
165 impl_write!(Sha256);

12345678910>>...101