[DRBD-user] 'cram-hmac-alg' you specified is not a digest.

Dietmar Maurer dietmar at proxmox.com
Tue Dec 22 08:34:59 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Strange - seems that the type in linux/crypto/sha1_generic.c has changed to CRYPTO_ALG_TYPE_SHASH with newer kernels (was type CRYPTO_ALG_TYPE_DIGEST)?

> -----Original Message-----
> From: Dietmar Maurer
> Sent: Montag, 21. Dezember 2009 15:20
> To: 'drbd-user at lists.linbit.com'
> Subject: 'cram-hmac-alg' you specified is not a digest.
> 
> Using drbd 8.3.4 on kernel 2.6.32 we get:
> 
> # /etc/init.d/drbd start
> Starting DRBD resources:[ n(r0) 0: Failure: (121) The 'cram-hmac-alg'
> you specified is not a digest.
> 
> [r0] cmd /sbin/drbdsetup 0 net 10.0.7.105:7788 10.0.7.106:7788 C --set-
> defaults --create-device --cram-hmac-alg=sha1 --shared-secret=XXX --
> allow-two-primaries --after-sb-0pri=discard-zero-changes --after-sb-
> 1pri=discard-secondary --after-sb-2pri=disconnect  failed - continuing!
> 
> # cat /proc/crypto
> name         : hmac(sha1)
> driver       : hmac(sha1-generic)
> module       : kernel
> priority     : 0
> refcnt       : 1
> selftest     : passed
> type         : shash
> blocksize    : 64
> digestsize   : 20
> 
> name         : sha1
> driver       : sha1-generic
> module       : sha1_generic
> priority     : 0
> refcnt       : 1
> selftest     : passed
> type         : shash
> blocksize    : 64
> digestsize   : 20
> ...
> 
> So what is wrong here?
> 
> - Dietmar




More information about the drbd-user mailing list