qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] f3c835: crypto: use /dev/[u]random as a final


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] f3c835: crypto: use /dev/[u]random as a final fallback ran...
Date: Thu, 21 Jul 2016 05:00:04 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: f3c8355c7aaa89a5c5676756d4ba6139ea26b446
      
https://github.com/qemu/qemu/commit/f3c8355c7aaa89a5c5676756d4ba6139ea26b446
  Author: Daniel P. Berrange <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M crypto/Makefile.objs
    A crypto/random-platform.c
    R crypto/random-stub.c

  Log Message:
  -----------
  crypto: use /dev/[u]random as a final fallback random source

If neither gcrypt or gnutls are available to provide a
cryptographic random number generator, fallback to consuming
bytes directly from /dev/[u]random.

Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5
      
https://github.com/qemu/qemu/commit/2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5
  Author: Daniel P. Berrange <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M crypto/Makefile.objs
    A crypto/hash-glib.c
    R crypto/hash-stub.c

  Log Message:
  -----------
  crypto: use glib as fallback for hash algorithm

GLib >= 2.16 provides GChecksum API which is good enough
for md5, sha1, sha256 and sha512. Use this as a final
fallback if neither nettle or gcrypt are available. This
lets us remove the stub hash impl, and so callers can
be sure those 4 algs are always available at compile
time. They may still be disabled at runtime, so a check
for qcrypto_hash_supports() is still best practice to
report good error messages.

Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 760328971218bace4ab14b01f619825607fab9c3
      
https://github.com/qemu/qemu/commit/760328971218bace4ab14b01f619825607fab9c3
  Author: Daniel P. Berrange <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M crypto/hash-gcrypt.c
    M crypto/hash-glib.c
    M crypto/hash-nettle.c

  Log Message:
  -----------
  crypto: don't open-code qcrypto_hash_supports

Call the existing qcrypto_hash_supports method from
qcrypto_hash_bytesv instead of open-coding it again.

Signed-off-by: Daniel P. Berrange <address@hidden>


  Commit: 7239247a2ba2fd1c269edda3b6fd816c5fd51baf
      
https://github.com/qemu/qemu/commit/7239247a2ba2fd1c269edda3b6fd816c5fd51baf
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-21 (Thu, 21 Jul 2016)

  Changed paths:
    M crypto/Makefile.objs
    M crypto/hash-gcrypt.c
    A crypto/hash-glib.c
    M crypto/hash-nettle.c
    R crypto/hash-stub.c
    A crypto/random-platform.c
    R crypto/random-stub.c

  Log Message:
  -----------
  Merge remote-tracking branch 
'remotes/berrange/tags/pull-qcrypto-2016-07-21-1' into staging

Merge qcrypto-next 2016/07/21 v1

# gpg: Signature made Thu 21 Jul 2016 11:07:36 BST
# gpg:                using RSA key 0xBE86EBB415104FDF
# gpg: Good signature from "Daniel P. Berrange <address@hidden>"
# gpg:                 aka "Daniel P. Berrange <address@hidden>"
# Primary key fingerprint: DAF3 A6FD B26B 6291 2D0E  8E3F BE86 EBB4 1510 4FDF

* remotes/berrange/tags/pull-qcrypto-2016-07-21-1:
  crypto: don't open-code qcrypto_hash_supports
  crypto: use glib as fallback for hash algorithm
  crypto: use /dev/[u]random as a final fallback random source

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/61ead113ae53...7239247a2ba2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]