Skip to content

Commit

Permalink
run v fmt -w .
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Aug 17, 2024
1 parent f2fb4a2 commit e0b088b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aead/xchacha20poly1305_ietf/xchacha20poly1305_ietf.v
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn encrypt_using_password_and_nonce(hashed_password HashedPassword, data_to_encr

return Encrypted{
encrypted_array: encrypted
nonce: nonce
nonce: nonce
additional_data: additional_data
}
}
Expand Down
8 changes: 4 additions & 4 deletions aead_xchacha20poly1305_ietf_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn test_aead_xchacha20poly1305_without_additional_data_ietf_verify() {
encrypted_array: [u8(16), 38, 240, 142, 126, 206, 231, 94, 73, 66, 116, 107, 174, 189,
107, 181, 172, 78, 247, 105, 88, 189, 67, 74, 231, 87, 126, 64, 146, 30, 114, 31, 163,
200]
nonce: nonce
nonce: nonce
additional_data: []
}

Expand Down Expand Up @@ -72,7 +72,7 @@ fn test_aead_xchacha20poly1305_with_additional_data_ietf_verify() {
encrypted_array: [u8(16), 38, 240, 142, 126, 206, 231, 94, 73, 66, 116, 107, 174, 189,
107, 181, 172, 78, 10, 24, 184, 80, 175, 219, 9, 252, 229, 91, 119, 51, 202, 67, 125,
31]
nonce: nonce
nonce: nonce
additional_data: [u8(1), 2, 3]
}

Expand All @@ -98,7 +98,7 @@ fn test_aead_xchacha20poly1305_without_additional_data_tampering_detection_works

encrypted_tampered := aeadmod.Encrypted{
encrypted_array: tampered_encrypted_bytes
nonce: encrypted.nonce
nonce: encrypted.nonce
}

mut failed := false
Expand Down Expand Up @@ -141,7 +141,7 @@ fn test_aead_xchacha20poly1305_with_additional_data_tampering_detection_works_fo

encrypted_tampered := aeadmod.Encrypted{
encrypted_array: tampered_encrypted_bytes
nonce: encrypted.nonce
nonce: encrypted.nonce
}

mut failed := false
Expand Down
2 changes: 1 addition & 1 deletion private_key.v
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn crypto_kx_seed_keypair(seed []u8) PrivateKey {

pub fn new_box(private_key PrivateKey, public_key []u8) Box {
box := Box{
key: private_key
key: private_key
public_key: public_key
}
return box
Expand Down
2 changes: 1 addition & 1 deletion secretbox/secretbox.v
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn encrypt_using_password_and_nonce(hashed_password HashedPassword, data_to_encr

return Encrypted{
encrypted_array: encrypted
nonce: nonce
nonce: nonce
}
}

Expand Down
2 changes: 1 addition & 1 deletion secretbox_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn test_authenticated_encryption_aka_secretbox_tampering_detection_works() ! {

encrypted_tampered := sb.Encrypted{
encrypted_array: tampered_encrypted_bytes
nonce: encrypted.nonce
nonce: encrypted.nonce
}

mut failed := false
Expand Down

0 comments on commit e0b088b

Please sign in to comment.