3 ms·
None of that is an actual implementation of the cryptography, that's just the interfaces. The actual implementations are elsewhere and use architecture specific
by ecnahc515 3y ago
None of that is an actual implementation of the cryptography, that's just the interfaces. The actual implementations are elsewhere and use architecture specific assembly for anything that needs constant time properties.
- FiloSottile 3y agoNo, we use assembly for access to specialized (e.g. AES-NI) or vector instructions, and we do so reluctantly. We much prefer writing cross-platform constant time Go. https://go.dev/wiki/AssemblyPolicy https://go.dev/wiki/AssemblyPolicy The actual implementations are in that tree, too: https://cs.opensource.google/go/go/+/master:src/crypto/ https://cs.opensource.google/go/go/+/master:src/crypto/