Learn R Programming

openfhe.R (version 1.6.1)

set_length: Set the effective length of a plaintext

Description

Set the effective length of a plaintext

Usage

set_length(pt, len)

Value

Invisibly, the pt plaintext that was passed in. Called for its side effect: the plaintext is truncated in place so that the accessors report only the first len slots, which is how the padding introduced by encoding is trimmed after decryption.

Arguments

pt

A Plaintext

len

Integer length