1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/models/rsa_key.rb

12 lines
205 B
Ruby
Raw Normal View History

2019-09-10 08:08:23 -04:00
# frozen_string_literal: true
class RSAKey < AsymmetricKey
2019-09-10 08:08:23 -04:00
###############
# Validations #
###############
validates :bits, inclusion: { in: [2048, 4096] }
2019-09-13 19:20:47 -04:00
validates :curve, absence: true
2019-09-10 08:08:23 -04:00
end