Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<Driver> Implement PRNG/TRNG (soft device) #236

Open
akashkollipara opened this issue Feb 23, 2023 · 0 comments
Open

<Driver> Implement PRNG/TRNG (soft device) #236

akashkollipara opened this issue Feb 23, 2023 · 0 comments
Assignees
Labels
cyancore framework Cyancore framework feature request FR Add new feature or request
Milestone

Comments

@akashkollipara
Copy link
Member

akashkollipara commented Feb 23, 2023

Is your feature request related to a problem? Please describe.

libc: rand() is a very simple and crude implementation of random number generator.
Cyancore needs a true random number generator which should have a soft and hard implementation provision.

Describe the solution you'd like

Implement a driver which provides 2 apis

  • void srng(long num)
  • long rng()

which should have software algorithm and simultaneously should have hardware acceleration plugin.

Soft RNG

  • Should be very fast 32bit RNG
  • Try using bitwise operations to speed up computation
  • minimal use of pointers, mul and div ops
@akashkollipara akashkollipara added cyancore framework Cyancore framework feature request FR Add new feature or request labels Feb 23, 2023
@akashkollipara akashkollipara added this to the Boron milestone Feb 23, 2023
@akashkollipara akashkollipara modified the milestones: Boron, Carbon Dec 31, 2023
shubhangi47 added a commit that referenced this issue Jan 3, 2024
akashkollipara added a commit that referenced this issue Jan 3, 2024
…om_capture

Added support for unique random number generation for avr platform

Issue: #236
@akashkollipara akashkollipara removed their assignment Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cyancore framework Cyancore framework feature request FR Add new feature or request
Projects
None yet
Development

No branches or pull requests

2 participants