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

adding a clean function and a prealloc buffer support #64

Open
vitock opened this issue Apr 12, 2022 · 0 comments
Open

adding a clean function and a prealloc buffer support #64

vitock opened this issue Apr 12, 2022 · 0 comments

Comments

@vitock
Copy link

vitock commented Apr 12, 2022

in some case , using prealloced memory would be a better choice

it would be appreciated that if you offer a clean function to reset the limbs to zero .
keeping temp sensitive data on memory is not a good choice

maybe codes below say more

func afunction(b:inout Bint){
    var temporaryObjects = BInt alloc from Buffer Pool user provide
    .
    .
    .
    
    /// do the CLEAN job, 
    temporaryBints.SetLimbsBytesToZero()

    temporaryBints set all the storage data to 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant