Comments (3)
ciph
and prf
should have a signature closer to
func (f *Cipher) ciph(output, input []byte) error
to reduce escapes to the heap for the return value.
from fpe.
Majority of allocations are coming from the fact that everything in this library operates on strings. In theory, the operations can be changed to using utf8 package backed by byte slices.
from fpe.
#8 partially completes this, however I'm leaving this open as there are opportunities for more improvement with regards to strings and big integers.
from fpe.
Related Issues (20)
- Panic on strings with trailing zeros
- Addition of FF2 algorithm
- Plaintext is not equal to Original HOT 4
- Docs bug: "recent cryptanalysis" link is broken HOT 2
- Question: Does this library preserve SSN format, Phone format, Date format? HOT 2
- Arbitrary alphabet and radix support HOT 21
- The difference between output and input length of FPE HOT 2
- are there any restrictions on using this project HOT 2
- IV was not an issue HOT 7
- One non-reversible FPE HOT 6
- Codeowners file
- Unused `R` in decryption HOT 5
- FF3-1 HOT 2
- ff3: duplicate numY calculation
- ff3: fix maxLen calculation
- FF3: redundant maxLen check
- FF3 - Tweak Fix HOT 2
- Root repo directory is not a valid Go package HOT 4
- Should tweak be input to Encrypt/Decrypt rather than NewCipher? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fpe.