Print this page
Integrated Edon-R hash function.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/sys/zio_checksum.h
          +++ new/usr/src/uts/common/fs/zfs/sys/zio_checksum.h
↓ open down ↓ 54 lines elided ↑ open up ↑
  55   55          uint8_t                 zbc_injected;
  56   56          uint8_t                 zbc_has_cksum;  /* expected/actual valid */
  57   57  } zio_bad_cksum_t;
  58   58  
  59   59  extern zio_checksum_info_t zio_checksum_table[ZIO_CHECKSUM_FUNCTIONS];
  60   60  
  61   61  /*
  62   62   * Checksum routines.
  63   63   */
  64   64  extern zio_checksum_t zio_checksum_SHA256;
       65 +extern zio_checksum_t zio_checksum_EdonR512_256;
       66 +extern zio_checksum_t zio_checksum_EdonR512_256_byteswap;
  65   67  
  66   68  extern void zio_checksum_compute(zio_t *zio, enum zio_checksum checksum,
  67   69      void *data, uint64_t size);
  68   70  extern int zio_checksum_error(zio_t *zio, zio_bad_cksum_t *out);
  69   71  extern enum zio_checksum spa_dedup_checksum(spa_t *spa);
  70   72  
  71   73  #ifdef  __cplusplus
  72   74  }
  73   75  #endif
  74   76  
  75   77  #endif  /* _SYS_ZIO_CHECKSUM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX