From 1c5a444633352d4c9133210e2247cb7485344a9e Mon Sep 17 00:00:00 2001 From: Didactic Drunk <1479616+didactic-drunk@users.noreply.github.com> Date: Fri, 13 May 2022 11:03:43 -0700 Subject: [PATCH] Reformat Crypto::Secret::Stateful --- src/crypto-secret/stateful.cr | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crypto-secret/stateful.cr b/src/crypto-secret/stateful.cr index 0823e4c..44d8fc7 100644 --- a/src/crypto-secret/stateful.cr +++ b/src/crypto-secret/stateful.cr @@ -1,6 +1,5 @@ require "./secret" -abstract class Crypto::Secret # Development guide: # 1. Create your initialize method and optionally allocate memory # 2. Create a finalize method to deallocate memory if necessary @@ -9,7 +8,7 @@ abstract class Crypto::Secret # 5. Provide and test a dup method or raise on dup if not possible # # When state changes are required (such as using #noaccess) and the buffer is accessed from multiple threads wrap each #readonly/#readwrite block in a lock. - module Stateful +module Crypto::Secret::Stateful @state = State::Readwrite @pre_wipe_state = State::Readwrite @@ -121,4 +120,3 @@ abstract class Crypto::Secret protected abstract def readonly_impl : Nil protected abstract def noaccess_impl : Nil end -end