Comments (4)
Probably not a problem of bouncy castle, but of another library that I use (CoAP.NET) that handles some of the DTLS session management. I'll close this issue until I can be certain
from bc-csharp.
We call GetReceiveLimit on the DtlsTransport to size the receive buffer, so it's important to return an appropriate value there. In any case a call to DtlsTransport.Receive should never return a value larger than the available space in the buffer. I've added an extra guard for the latter case.
Note that individual datagrams may contain one or more complete records (no record splitting across datagrams); this usually only happens during the handshake. Individual handshake messages may also be fragmented across multiple records.
from bc-csharp.
I just found out that this issue is not happening because of fragmentation, but because the buffer of the previous (smaller) message is used and it tries to push the new message in a wrong buffer. I'll continue my investigation on how this is happening. This only happens when the messages are received at quite a high interval
from bc-csharp.
For now, I think you shouldn't put any work in, as I can't guarantee that it's not because of my CoAP library
from bc-csharp.
Related Issues (20)
- Convert Ed25519PrivateKeyParameters to X25519PrivateKeyParameters HOT 5
- Issues with ECC, S/MIME and BouncyCastle HOT 3
- Warning using Bouncy Castle v.2.3.0 HOT 3
- Release notes for v2.3.0 HOT 2
- SPHINCS+ key info encoding fails HOT 2
- SECG Key Agreement / Key Derivation functions not supported? HOT 4
- RSA/ECB/OAEPWithSHA-256AndMGF1Padding HOT 3
- Set Licence type expression on package info HOT 1
- Problem reading nested Octet Strings HOT 22
- Allow removal of "Version" header in PGP encryption HOT 6
- Where is IESCipher.ECIESwithAESCBC?
- I need SM9
- `NullReferenceException` error when trying to get a recipient based on `SubjectKeyIdentifier` HOT 1
- Broken space handling in Common Name since version 2.3.0 HOT 1
- CmsEnvelope decryption ECCP256 / AES128CBC failed HOT 2
- PgpPublicKey.RemoveCert can delete wrong items.
- DsaParametersGenerator can't initialize size greater than 1024...
- Consider referencing System.Memory
- "PrivateKeyFactory. CreateKey" encountered an error "illegal object in GetInstance: Org.BouncyCastle.Asn1.DerOctetString (Parameter 'obj')” 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 bc-csharp.