Search found 4240 matches

by deltarho[1859]
Jun 18, 2024 21:13
Forum: Sources, Examples, Tips and Tricks
Topic: tinyAES
Replies: 16
Views: 968

Re: tinyAES

srvaldez wrote:ok, I will make my ignorance shine, isn't that what you can do with AES_ECB ?
Yes. At one time, AES CTR was not available at Microsoft. So many years ago I used their AES ECB, tweaked it, and got AES CTR. It was then that I realized how powerful AES CTR is.
by deltarho[1859]
Jun 18, 2024 19:35
Forum: Sources, Examples, Tips and Tricks
Topic: tinyAES
Replies: 16
Views: 968

Re: tinyAES

AES CTR comes into its own with large messages where we can decrypt targeted sections of the ciphertext. With my timing test above it took just over three seconds to encrypt 100MiB. Decrypting a 1MiB section of the ciphertext may then take only 30ms. So how do we target a section of the ciphertext? ...
by deltarho[1859]
Jun 17, 2024 1:56
Forum: Sources, Examples, Tips and Tricks
Topic: tinyAES
Replies: 16
Views: 968

Re: tinyAES

I don't know what makes tinyAES tiny compared to the standard AES. AES-NI were designed for AES and not tinyAES. If we can use AES-NI in tinyAES AES.bi may be smaller, but the binaries may be much larger, defeating the whole point of tinyAES. My guess is that will probably happen. For small messages...
by deltarho[1859]
Jun 15, 2024 6:12
Forum: Sources, Examples, Tips and Tricks
Topic: tinyAES
Replies: 16
Views: 968

Re: tinyAES

adeyblue wrote:I don't know how to use them, but somebody must.
With Windows 7 or later, if our CPU supports AES-NI, then it will be used automatically when we use a encrypt/decrypt API.
by deltarho[1859]
Jun 15, 2024 5:01
Forum: Sources, Examples, Tips and Tricks
Topic: tinyAES
Replies: 16
Views: 968

Re: tinyAES

Firstly, AES.bi is a masterclass of clean classical BASIC. I am now going to debunk a myth about secret versus top secret. Some people seem to think that top secret is more secret than secret. We cannot get more secret than secret. Secret is secret and that is it. The question is how long should som...
by deltarho[1859]
May 08, 2024 9:09
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

We could allow a rotation of the counter by a fixed amount, avoiding another reading. Concatenating the first reading with the second 'reading' will give a 64-bit seed for a PRNG. Not a good idea. The distribution is poor. I am now using two 32-bit seeds combined into a 64-bit seed. To further 'mud...
by deltarho[1859]
May 08, 2024 7:09
Forum: Community Discussion
Topic: cppreference as a chm
Replies: 1
Views: 262

Re: cppreference as a chm

Thanks for that. :wink:
by deltarho[1859]
Apr 22, 2024 21:50
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

It follows for me then that time existed before the Bang, although it was ticking 'slowly'. Professor Brian Cox, here , is saying the same. We use a different language, but he is effectively saying that the Big Bang was a natural singularity and not a mathematical singularity. Prof Cox theorises th...
by deltarho[1859]
Apr 22, 2024 2:45
Forum: Community Discussion
Topic: free Basic - just curious?
Replies: 21
Views: 1966

Re: free Basic - just curious?

@codeWrapped Develop using gas/gas64; compilations are much faster than gcc32/gcc64. If you limit the frames per second to 60 you may find there is no need for gcc. If you need to squeeze more out of your CPU, then up the ante to gcc; it can be remarkable what a C-optimizing compiler can do. With fb...
by deltarho[1859]
Apr 21, 2024 19:26
Forum: Community Discussion
Topic: free Basic - just curious?
Replies: 21
Views: 1966

Re: free Basic - just curious?

Also wondering if free Basic is actually being used professionally for building applications? To answer your question, which nobody has yet, I very much doubt that to be true. About twenty years ago, I wrote if ever I published an application I would charge whatever I thought that I could get away ...
by deltarho[1859]
Apr 18, 2024 19:46
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

SARG wrote:Maybe I'm too 'punctilious' :-)
That goes with the territory of being a master asm coder. :wink:
by deltarho[1859]
Apr 18, 2024 19:05
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

SARG wrote:Why 2^32 ? as 2 32bit registers are used (EDX:EAX).
From opening post:
“Taking the lower 32 bits of the counter, 'spinnng' at a faster rate than the upper 32 bis, will be a good way of getting a 32-bit seed for a PRNG.”
by deltarho[1859]
Apr 17, 2024 23:55
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

True randomness exists in mathematics. Infinity exists in mathematics. In the natural world, I do not believe either exist. I allowed a coin to be tossed an infinite number of times, which of course is not possible. It is often written that at the centre of a black hole space is curved to such an ex...
by deltarho[1859]
Apr 17, 2024 13:36
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

.. and I don't know which world I am in. :P That is easy enough. If it is raining outside when you go outside, then the world that you are currently in is the one where it is raining outside and the chance of being in that world is 75%. :) We could be talking true randomness here, as the outcome is...
by deltarho[1859]
Apr 16, 2024 20:12
Forum: Community Discussion
Topic: Seeding PRNGs with the Time Stamp Counter
Replies: 13
Views: 1703

Re: Seeding PRNGs with the Time Stamp Counter

And I also think that randomness, compression and intelligence are linked somehow. In Star Trek 'Space-Time continuum' is mentioned several times. Being set in the 23rd century, they should have known better or, perhaps, Gene Roddenberry should have known better. There is no such thing as 'Space-Ti...