browserify / browserify/cipher-base

Different behavior on Endianness platforms

Open
#27 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Hi,

as proven by [Debian test on S390x](https://bugs.debian.org/1112009), this library has a different behavior in Big-Endian platforms: `cipher.update(new Uint16Array([1234, 512])).finalName('hex')` gives:
- `04d20200` on Big-Endian platforms
- `d2040002` on Little-Endian platforms like amd64

What should be fixed, the test of the `toBuffer()` method ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.