aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.c
diff options
context:
space:
mode:
authorame <[email protected]>2024-03-26 12:12:53 -0500
committerame <[email protected]>2024-03-26 12:12:53 -0500
commit28df133ace7e3f0f899413972fde78a7f6a9c148 (patch)
treeb9a1fe4e4a3fb6306ca3d9b48d50ff2692fc3aac /src/crypto.c
parentcf36c993ba4bb931ecf9c84de41ab0bc5fc915e4 (diff)
blake!
Diffstat (limited to 'src/crypto.c')
-rw-r--r--src/crypto.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/crypto.c b/src/crypto.c
index b99add7..8070eee 100644
--- a/src/crypto.c
+++ b/src/crypto.c
@@ -1,17 +1,17 @@
#include "crypto.h"
-unsigned i_lr(unsigned y, unsigned offset){
+unsigned rotl32(unsigned y, unsigned offset){
return ( y << offset ) | ( y >> (32 - offset));
}
-unsigned i_rr(unsigned x, unsigned n) {
+unsigned rotr32(unsigned x, unsigned n) {
return (x >> n % 32) | (x << (32-n) % 32);
}
-uint64_t i_lr64(uint64_t y, uint64_t offset){
+uint64_t rotl64(uint64_t y, uint64_t offset){
return ( y << offset ) | ( y >> (64 - offset));
}
-uint64_t i_rr64(uint64_t x, uint64_t n) {
+uint64_t rotr64(uint64_t x, uint64_t n) {
return (x >> n) | (x << (64-n));
-}
+} \ No newline at end of file