Comments (2)
CCM is defined only for the specified sizes, so I think that the sealed trait approach is a correct one in this case. But I agree that inability of being generic over tag size is an oversight. I think we should follow the byteorder
example here, i.e. introduce a public trait bounded by a sealed trait. In byteorder
's case it's ByteOrder
and Sealed
traits respectively.
from aeads.
This does seem problematic.
@newpavlov do we really need sealed traits for this? It seems like it wouldn't be possible for someone to add an impl of these traits in a problematic way, or at least, if they were to do that they'd really have to go out of their way to do so (e.g. create their own fake typenum
type)
from aeads.
Related Issues (20)
- how to add tag/additionalData HOT 2
- Using streamed data with ChaCha20Poly1305 HOT 2
- Support for nonce omission in AES-SIV HOT 4
- chacha20poly1305 decode issue HOT 2
- trap at Instance error with codegen-backend = "cranelift" HOT 2
- Cannot build with no-std HOT 1
- Lack of immediate access to GenericArray to view associated functions and trait impls leads to confusion and annoyance. HOT 13
- Requesting an example HOT 3
- Question about nonce size in xchacha20poly1305 HOT 2
- Extremely poor performance on AES256Gcm with anything but opt-level=3 HOT 2
- Consider exposing AesGcm::compute_tag HOT 3
- OCB3: restrict short nonces
- Enable and fix `missing_debug_implementations`
- `bytes` feature of `aead` is not re-exported by AEADs HOT 1
- Performance on Apple Silicon HOT 5
- Seeking help for encrypt files HOT 1
- How to serialize / deserialize `Nonce` HOT 1
- How to serialize a `Nonce` in `aes_gcm` HOT 3
- Get NonceSize from the algorithm HOT 4
- Q: nonce in ChaCha20Poly1305 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 aeads.