commit | 59f38b3c7792043e09232bf902664185ba438dd0 | [log] [tgz] |
---|---|---|
author | Ankur <ataly@google.com> | Sat Oct 10 16:54:55 2015 -0700 |
committer | Ankur <ataly@google.com> | Sat Oct 10 16:54:55 2015 -0700 |
tree | 2a076d216dc8dd27f0a64f698192dfc91989df25 | |
parent | b5dd1d263e7dda3d44b5475b0740e682956e50f4 [diff] |
"x/lib": IBE plaintext and ciphtertext must be []byte The IBE library interface currently has the plaintext and ciphertext as a pointer to an array of bytes of lengths 32 and 160 respectively. This does not work well for callers of this library who would commonly have ciphertext bytes in the form of a byte slice. (Casting from a byte slice to a byte array incurs a copy.) Therefore, this CL changes the interface types for plaintext and ciphertext to []byte. The encrypt and decrypte operations have runtime checks to ensure that the slices are of the right size. MultiPart: 2/5 Change-Id: Icdb7f29db762a78869b29ecc537a9516c861d2d3
This repository contains general purpose libraries used by the Vanadium project. TEST