Lines Matching refs:blake2s
68 :func:`sha512`, :func:`blake2b`, and :func:`blake2s`.
81 :func:`blake2b` and :func:`blake2s` were added.
344 single: blake2b, blake2s
373 .. function:: blake2s(data=b'', *, digest_size=32, key=b'', salt=b'', \
450 .. data:: blake2s.SALT_SIZE
456 .. data:: blake2s.PERSON_SIZE
462 .. data:: blake2s.MAX_KEY_SIZE
468 .. data:: blake2s.MAX_DIGEST_SIZE
481 :func:`blake2s`), then update it with the data by calling :meth:`update` on the
532 >>> from hashlib import blake2b, blake2s
537 >>> blake2s(digest_size=10).hexdigest()
539 >>> blake2s(digest_size=11).hexdigest()
595 >>> m = hmac.new(b'secret key', digestmod=hashlib.blake2s)
692 >>> from hashlib import blake2s
695 >>> enc_key = blake2s(key=orig_key, person=b'kEncrypt').digest()
696 >>> mac_key = blake2s(key=orig_key, person=b'kMAC').digest()