code: func (w *wrappedWAL) ReadAll() ([]byte, raftpb.HardState, []raftpb.Entry, error) {
  	metadata, state, ents, err := w.WAL.ReadAll()
  	if err != nil {
  		return metadata, state, ents, err
  	}
  	for i, ent := range ents {
  		ents[i].Data, err = encryption.Decrypt(ent.Data, w.decrypter)
  		if err != nil {
  			return nil, raftpb.HardState{}, nil, err
  		}
  	}
  
  	return metadata, state, ents, nil
  }
docs: // ReadAll wraps the wal.WAL.ReadAll() function, but it first checks to see if the
  // metadata indicates that the entries are encryptd, and if so, decrypts them.