MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / new

Method new

src/ciphers/hill_cipher.rs:51–80  ·  view source on GitHub ↗

Creates a new Hill Cipher with the given encryption key matrix. # Arguments `encrypt_key` - An NxN square matrix # Returns `Err` if the matrix is invalid or determinant is not coprime with 36

(mut encrypt_key: Vec<Vec<i32>>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

check_determinantMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected