Home
last modified time | relevance | path

Searched refs:hash_obj (Results 1 – 25 of 110) sorted by relevance

12345

/dports/security/py-pycryptodomex/pycryptodome-3.10.1/lib/Crypto/SelfTest/Signature/
H A Dtest_dss.py106 hash_obj = RIPEMD160.new()
124 hash_obj = SHA1.new()
171 hash_obj = hash_module.new(tv.msg) variable
177 def positive_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
180 def negative_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
214 def new_test(self, signer=signer, hash_obj=hash_obj, signature=tv.r+tv.s): argument
241 hash_obj = SHA1.new()
269 hash_obj = SHA256.new()
308 def positive_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
311 def negative_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
[all …]
H A Dtest_pkcs1_15.py86 hash_obj = hash_module.new(tv.msg) variable
90 def positive_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
91 verifier.verify(hash_obj, signature)
93 def negative_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
94 self.assertRaises(ValueError, verifier.verify, hash_obj, signature)
139 hash_obj = hash_module.new(tv.msg) variable
141 def new_test(self, hash_obj=hash_obj, signer=signer, result=tv.s): argument
142 signature = signer.sign(hash_obj)
H A Dtest_pss.py134 hash_obj = hash_module.new(tv.msg) variable
142 def positive_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
143 verifier.verify(hash_obj, signature)
145 def negative_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
146 self.assertRaises(ValueError, verifier.verify, hash_obj, signature)
190 hash_obj = hash_module.new(tv.msg) variable
197 def new_test(self, hash_obj=hash_obj, signer=signer, result=tv.s): argument
198 signature = signer.sign(hash_obj)
/dports/security/py-pycryptodome/pycryptodome-3.10.1/lib/Crypto/SelfTest/Signature/
H A Dtest_dss.py106 hash_obj = RIPEMD160.new()
124 hash_obj = SHA1.new()
171 hash_obj = hash_module.new(tv.msg) variable
177 def positive_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
180 def negative_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
214 def new_test(self, signer=signer, hash_obj=hash_obj, signature=tv.r+tv.s): argument
241 hash_obj = SHA1.new()
269 hash_obj = SHA256.new()
308 def positive_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
311 def negative_test(self, verifier=verifier, hash_obj=hash_obj, signature=tv.r+tv.s): argument
[all …]
H A Dtest_pkcs1_15.py86 hash_obj = hash_module.new(tv.msg) variable
90 def positive_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
91 verifier.verify(hash_obj, signature)
93 def negative_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
94 self.assertRaises(ValueError, verifier.verify, hash_obj, signature)
139 hash_obj = hash_module.new(tv.msg) variable
141 def new_test(self, hash_obj=hash_obj, signer=signer, result=tv.s): argument
142 signature = signer.sign(hash_obj)
H A Dtest_pss.py134 hash_obj = hash_module.new(tv.msg) variable
142 def positive_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
143 verifier.verify(hash_obj, signature)
145 def negative_test(self, hash_obj=hash_obj, verifier=verifier, signature=tv.s): argument
146 self.assertRaises(ValueError, verifier.verify, hash_obj, signature)
190 hash_obj = hash_module.new(tv.msg) variable
197 def new_test(self, hash_obj=hash_obj, signer=signer, result=tv.s): argument
198 signature = signer.sign(hash_obj)
/dports/security/aws-c-cal/aws-c-cal-0.5.12/source/windows/
H A Dbcrypt_hash.c56 uint8_t *hash_obj; member
92 uint8_t *hash_obj = NULL; in aws_sha256_default_new() local
105 bcrypt_hash->hash_obj = hash_obj; in aws_sha256_default_new()
107 …s_sha256_alg, &bcrypt_hash->hash_handle, bcrypt_hash->hash_obj, (ULONG)s_sha256_obj_len, NULL, 0, … in aws_sha256_default_new()
121 uint8_t *hash_obj = NULL; in aws_sha1_default_new() local
122 …aws_mem_acquire_many(allocator, 2, &bcrypt_hash, sizeof(struct bcrypt_hash_handle), &hash_obj, s_s… in aws_sha1_default_new()
134 bcrypt_hash->hash_obj = hash_obj; in aws_sha1_default_new()
136 … s_sha1_alg, &bcrypt_hash->hash_handle, bcrypt_hash->hash_obj, (ULONG)s_sha1_obj_len, NULL, 0, 0); in aws_sha1_default_new()
150 uint8_t *hash_obj = NULL; in aws_md5_default_new() local
151 …aws_mem_acquire_many(allocator, 2, &bcrypt_hash, sizeof(struct bcrypt_hash_handle), &hash_obj, s_m… in aws_md5_default_new()
[all …]
H A Dbcrypt_hmac.c33 uint8_t *hash_obj; member
56 uint8_t *hash_obj; in aws_sha256_hmac_default_new() local
58 … allocator, 2, &bcrypt_hmac, sizeof(struct bcrypt_hmac_handle), &hash_obj, s_sha256_hmac_obj_len); in aws_sha256_hmac_default_new()
70 bcrypt_hmac->hash_obj = hash_obj; in aws_sha256_hmac_default_new()
74 bcrypt_hmac->hash_obj, in aws_sha256_hmac_default_new()
/dports/devel/py-pyhashxx/pyhashxx-0.1.3/pyhashxx/
H A Dpyhashxx.c226 PyObject* hash_obj = PyTuple_GetItem(args, 0); in pyhashxx_hashxx() local
229 if (PyBytes_Check(hash_obj)) { in pyhashxx_hashxx()
230 digest = XXH32(PyBytes_AsString(hash_obj), PyBytes_Size(hash_obj), seed); in pyhashxx_hashxx()
233 if (PyString_Check(hash_obj)) { in pyhashxx_hashxx()
234 digest = XXH32(PyString_AsString(hash_obj), PyString_Size(hash_obj), seed); in pyhashxx_hashxx()
237 else if (PyByteArray_Check(hash_obj)) { in pyhashxx_hashxx()
238 digest = XXH32(PyByteArray_AsString(hash_obj), PyByteArray_Size(hash_obj), seed); in pyhashxx_hashxx()
240 else if (hash_obj == Py_None) { in pyhashxx_hashxx()
/dports/security/py-asyncssh/asyncssh-2.8.1/asyncssh/
H A Dkex_rsa.py72 hash_obj = self._hash_alg()
73 hash_obj.update(self._conn.get_hash_prefix())
74 hash_obj.update(String(self._host_key_data))
75 hash_obj.update(String(self._trans_key_data))
76 hash_obj.update(String(self._encrypted_k))
77 hash_obj.update(MPInt(self._k))
78 return hash_obj.digest()
H A Dkex.py65 hash_obj = self._hash_alg()
66 hash_obj.update(MPInt(k))
67 hash_obj.update(h)
68 hash_obj.update(key if key else x + session_id)
69 key += hash_obj.digest()
/dports/www/firefox-esr/firefox-91.8.0/security/nss/lib/freebl/
H A Dalghmac.c83 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
93 cx->hashobj = hash_obj; in HMAC_Init()
110 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
117 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()
129 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_ReInit() argument
137 if ((cx->hashobj == hash_obj) && (cx->hash != NULL)) { in HMAC_ReInit()
146 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_ReInit()
H A Dalghmac.h25 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
30 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj,
36 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj,
/dports/security/ca_root_nss/nss-3.71/nss/lib/freebl/
H A Dalghmac.c83 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
93 cx->hashobj = hash_obj; in HMAC_Init()
110 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
117 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()
129 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_ReInit() argument
137 if ((cx->hashobj == hash_obj) && (cx->hash != NULL)) { in HMAC_ReInit()
146 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_ReInit()
H A Dalghmac.h25 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
30 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj,
36 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj,
/dports/www/firefox/firefox-99.0/security/nss/lib/freebl/
H A Dalghmac.c83 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
93 cx->hashobj = hash_obj; in HMAC_Init()
110 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
117 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()
129 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_ReInit() argument
137 if ((cx->hashobj == hash_obj) && (cx->hash != NULL)) { in HMAC_ReInit()
146 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_ReInit()
H A Dalghmac.h25 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
30 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj,
36 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj,
/dports/security/nss/nss-3.76.1/nss/lib/freebl/
H A Dalghmac.c83 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
93 cx->hashobj = hash_obj; in HMAC_Init()
110 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
117 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()
129 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_ReInit() argument
137 if ((cx->hashobj == hash_obj) && (cx->hash != NULL)) { in HMAC_ReInit()
146 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_ReInit()
H A Dalghmac.h25 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
30 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj,
36 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj,
/dports/mail/thunderbird/thunderbird-91.8.0/security/nss/lib/freebl/
H A Dalghmac.c83 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
93 cx->hashobj = hash_obj; in HMAC_Init()
110 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
117 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()
129 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_ReInit() argument
137 if ((cx->hashobj == hash_obj) && (cx->hash != NULL)) { in HMAC_ReInit()
146 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_ReInit()
H A Dalghmac.h25 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret,
30 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj,
36 HMAC_ReInit(HMACContext *cx, const SECHashObject *hash_obj,
/dports/net-p2p/namecoin/namecoin-core-nc0.21.0.1/src/node/
H A Dcoinstats.cpp77 static bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, const std::function<void… in GetUTXOStats() argument
89 PrepareHash(hash_obj, stats); in GetUTXOStats()
99 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
111 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
114 FinalizeHash(hash_obj, stats); in GetUTXOStats()
/dports/net-p2p/namecoin-daemon/namecoin-core-nc0.21.0.1/src/node/
H A Dcoinstats.cpp77 static bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, const std::function<void… in GetUTXOStats() argument
89 PrepareHash(hash_obj, stats); in GetUTXOStats()
99 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
111 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
114 FinalizeHash(hash_obj, stats); in GetUTXOStats()
/dports/net-p2p/namecoin-utils/namecoin-core-nc0.21.0.1/src/node/
H A Dcoinstats.cpp77 static bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, const std::function<void… in GetUTXOStats() argument
89 PrepareHash(hash_obj, stats); in GetUTXOStats()
99 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
111 ApplyStats(stats, hash_obj, prevkey, outputs); in GetUTXOStats()
114 FinalizeHash(hash_obj, stats); in GetUTXOStats()
/dports/lang/spidermonkey60/firefox-60.9.0/security/nss/lib/freebl/
H A Dalghmac.c41 HMAC_Init(HMACContext *cx, const SECHashObject *hash_obj, in HMAC_Init() argument
48 if (isFIPS && secret_len < hash_obj->length / 2) { in HMAC_Init()
57 cx->hashobj = hash_obj; in HMAC_Init()
94 HMAC_Create(const SECHashObject *hash_obj, const unsigned char *secret, in HMAC_Create() argument
101 rv = HMAC_Init(cx, hash_obj, secret, secret_len, isFIPS); in HMAC_Create()

12345