comp.lang.ada
 help / color / mirror / Atom feed
* Should Ada runtime provide special primitives for cryptography?
@ 2014-10-01  8:42 Natasha Kerensikova
  2014-10-01  9:16 ` Dirk Heinrichs
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Natasha Kerensikova @ 2014-10-01  8:42 UTC (permalink / raw)


Hello,

I recently thought that Ada general strictness and integration with
proof systems would make it a good language for cryptographic
primitives.

However, when actually implementing cryptographic stuff, cleverness from
compiler and optimizer are often enemies. For example, overwriting a
buffer with zeroes might be optimized out when the buffer is not
accessed again.

I believe it would not be difficult for a compiler vendor to provide, as
part of the runtime, a zeroing procedure guaranteed to not be optimized
away, a (generic) array comparison guaranteed to execute in a constant
number of operations and/or branches, etc. And such subprograms would be
difficult to write externally, and the guarantees difficult to make
without tight compiler integration.

Would it be useful to propose an AI for the addition of such subprograms
to Ada standard library?



Natasha


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-09  3:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-01  8:42 Should Ada runtime provide special primitives for cryptography? Natasha Kerensikova
2014-10-01  9:16 ` Dirk Heinrichs
2014-10-01  9:24 ` Georg Bauhaus
2014-10-09  3:12   ` Randy Brukardt
2014-10-01 13:22 ` Dennis Lee Bieber
2014-10-01 15:15   ` Brad Moore
2014-10-02  2:13     ` Dennis Lee Bieber
2014-10-01 21:07 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox