• Home
  • Raw
  • Download

Lines Matching refs:blake2b

68 :func:`sha512`, :func:`blake2b`, and :func:`blake2s`.
81 :func:`blake2b` and :func:`blake2s` were added.
294 single: blake2b, blake2s
318 .. function:: blake2b(data=b'', *, digest_size=64, key=b'', salt=b'', \
398 .. data:: blake2b.SALT_SIZE
404 .. data:: blake2b.PERSON_SIZE
410 .. data:: blake2b.MAX_KEY_SIZE
416 .. data:: blake2b.MAX_DIGEST_SIZE
429 calling the appropriate constructor function (:func:`blake2b` or
434 >>> from hashlib import blake2b
435 >>> h = blake2b()
444 >>> from hashlib import blake2b
445 >>> blake2b(b'Hello world').hexdigest()
451 >>> from hashlib import blake2b
453 >>> h = blake2b()
467 >>> from hashlib import blake2b
468 >>> h = blake2b(digest_size=20)
481 >>> from hashlib import blake2b, blake2s
482 >>> blake2b(digest_size=10).hexdigest()
484 >>> blake2b(digest_size=11).hexdigest()
504 >>> from hashlib import blake2b
505 >>> h = blake2b(key=b'pseudorandom key', digest_size=16)
514 >>> from hashlib import blake2b
521 ... h = blake2b(digest_size=AUTH_SIZE, key=SECRET_KEY)
591 >>> from hashlib import blake2b
594 >>> salt1 = os.urandom(blake2b.SALT_SIZE)
595 >>> h1 = blake2b(salt=salt1)
598 >>> salt2 = os.urandom(blake2b.SALT_SIZE)
599 >>> h2 = blake2b(salt=salt2)
626 >>> from hashlib import blake2b
629 >>> h = blake2b(digest_size=32, person=FILES_HASH_PERSON)
633 >>> h = blake2b(digest_size=32, person=BLOCK_HASH_PERSON)
663 >>> from hashlib import blake2b
673 ... h00 = blake2b(buf[0:LEAF_SIZE], fanout=FANOUT, depth=DEPTH,
677 ... h01 = blake2b(buf[LEAF_SIZE:], fanout=FANOUT, depth=DEPTH,
681 ... h10 = blake2b(digest_size=32, fanout=FANOUT, depth=DEPTH,