Lines Matching defs:rand_bytes
23 def rand_bytes(length):
151 return AesCmac(rand_bytes(AES_256_KEY_SIZE))
153 return Ghash(rand_bytes(GHASH_BLOCK_SIZE))
155 return Poly1305(rand_bytes(POLY1305_KEY_SIZE))
157 return Polyval(rand_bytes(POLYVAL_BLOCK_SIZE))
201 data = rand_bytes(data_len)
208 data = rand_bytes(4096)
218 in_data = rand_bytes(max_len)
229 ctx = hmac.new(rand_bytes(32), digestmod=alg)
230 data = rand_bytes(4096)
234 key = rand_bytes(key_len)
251 h = hashlib.new(alg, digest_size=out_len, key=rand_bytes(key_len))
252 h.update(rand_bytes(100))
288 key = rand_bytes(NH_KEY_BYTES)
289 msg = rand_bytes(NH_MESSAGE_BYTES)